Ext


Go Back   Ext JS Forums > Ext General Forums > Ext: Examples and Extras

Reply
 
Thread Tools
  #1  
Old 07-09-2007, 04:35 PM
rodiniz's Avatar
rodiniz rodiniz is offline
Ext User
 
Join Date: Mar 2007
Location: Rio de Janeiro, Brazil
Posts: 276
rodiniz is on a distinguished road
Send a message via MSN to rodiniz
Default Control to integrate ExtJs Grid and Subsonic DAL

Click here to see it.There are plans to implement editing and a scaffolding control.
__________________
ExtJsExtender Controls
http://www.extendersamples.qsh.eu
My Blog
http://rodiniz.blogspot.com
Reply With Quote
  #2  
Old 07-10-2007, 07:39 AM
jgarcia@tdg-i.com's Avatar
jgarcia@tdg-i.com jgarcia@tdg-i.com is offline
Ext User
 
Join Date: Mar 2007
Location: Frederick MD, NYC, DC
Posts: 11,448
jgarcia@tdg-i.com is on a distinguished road
Send a message via AIM to jgarcia@tdg-i.com Send a message via Skype™ to jgarcia@tdg-i.com
Default

What is the point of this post?

Your code doesn't use the control nor is the control available for download. How is this useful to the community?

"For now the code for the control is not avaiable for download"

your grid is using EXTJS code
Quote:
var reader= new Ext.data.XmlReader({
record: 'ROWS',
totalRecords: 'TotalCount'}, ['TITLE','RATING']);
var ds = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({url: location.href}),
reader:reader,remoteSort: true});
var cm = new Ext.grid.ColumnModel([
{header:'TITLE', dataIndex: 'TITLE'}
,
{header:'RATING', dataIndex: 'RATING'}
]);
cm.defaultSortable = true;
grdPaging = new Ext.grid.Grid('ExtGrid1', {ds: ds,
cm: cm,
selModel: new Ext.grid.RowSelectionModel({singleSelect:true}),
enableDragDrop:true});
grdPaging.autosizeColumns = true;
grdPaging.render();

ds.load({params:{start:0, limit:10}});
var gridFoot = grdPaging.getView().getFooterPanel(true);var paging = new Ext.PagingToolbar(gridFoot, ds, {
pageSize: 10,
displayInfo: true,

displayMsg: 'Displaying records {0} - {1} of {2}',
emptyMsg: "No record to display"});})

i don't get it.
__________________
Get 42% off by using coupon code n2442 valid until (11/24/09) -> [Book] - Ext JS In Action

My Blog || Ext JS screencasts || ext-doc || twitter

My free extensions/plugins:
Progressbar inside paging toolbar || Tab panel scroller menu || Window drawers || Icon Manager
Grid view custom 'view' filter || PanelHeaderToolbar

JavaScript Magazine August article now available.
Reply With Quote
  #3  
Old 07-10-2007, 08:49 AM
rodiniz's Avatar
rodiniz rodiniz is offline
Ext User
 
Join Date: Mar 2007
Location: Rio de Janeiro, Brazil
Posts: 276
rodiniz is on a distinguished road
Send a message via MSN to rodiniz
Default

The control is avaiable for download there is a link just above the grid, the code you posted is generated by the control.
The only code that is on the page is :
<cc1:ExtGrid width="500" ID="ExtGrid1" TableName="TB_MOVIE" ColumnList="TITLE,RATING" pagesize="10" runat="server" />
You can see with the view source that Ext is included using web resources which means it is inside the control dll.
The control source-code will be available soon.
__________________
ExtJsExtender Controls
http://www.extendersamples.qsh.eu
My Blog
http://rodiniz.blogspot.com

Last edited by rodiniz; 07-10-2007 at 10:34 AM.. Reason: put more information
Reply With Quote
  #4  
Old 07-10-2007, 03:09 PM
jgarcia@tdg-i.com's Avatar
jgarcia@tdg-i.com jgarcia@tdg-i.com is offline
Ext User
 
Join Date: Mar 2007
Location: Frederick MD, NYC, DC
Posts: 11,448
jgarcia@tdg-i.com is on a distinguished road
Send a message via AIM to jgarcia@tdg-i.com Send a message via Skype™ to jgarcia@tdg-i.com
Default

See your source page uses Ext.Grid.grid

i'm confused

oh, you might want to change the word "samples" to Examples

Sample is not the same as an example.
http://dictionary.reference.com/browse/example
http://dictionary.reference.com/browse/sample



//HTML

        
<div id="ExtGrid1" style="height:300px;width:500px;"

<script language='JavaScript'>Ext.onReady(function(){

var 
reader= new Ext.data.XmlReader({
record'ROWS',
totalRecords'TotalCount'}, ['TITLE','RATING']);
var 
ds = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({urllocation.href}),
reader:reader,remoteSorttrue}); 
var 
cm = new Ext.grid.ColumnModel([
{
header:'TITLE'dataIndex'TITLE'}
,
{
header:'RATING'dataIndex'RATING'}
]);
cm.defaultSortable true;
grdPaging = new Ext.grid.Grid('ExtGrid1', {dsds,
cmcm,
 
selModel: new Ext.grid.RowSelectionModel({singleSelect:true}),
enableDragDrop:true});
grdPaging.autosizeColumns true;
grdPaging.render();

ds.load({params:{start:0limit:10}});
var 
gridFoot grdPaging.getView().getFooterPanel(true);var paging = new Ext.PagingToolbar(gridFootds, {
pageSize10,
displayInfotrue,

displayMsg'Displaying records {0} - {1} of {2}',
emptyMsg"No record to display"});})
</script> 
__________________
Get 42% off by using coupon code n2442 valid until (11/24/09) -> [Book] - Ext JS In Action

My Blog || Ext JS screencasts || ext-doc || twitter

My free extensions/plugins:
Progressbar inside paging toolbar || Tab panel scroller menu || Window drawers || Icon Manager
Grid view custom 'view' filter || PanelHeaderToolbar

JavaScript Magazine August article now available.
Reply With Quote
  #5  
Old 07-10-2007, 03:40 PM
rodiniz's Avatar
rodiniz rodiniz is offline
Ext User
 
Join Date: Mar 2007
Location: Rio de Janeiro, Brazil
Posts: 276
rodiniz is on a distinguished road
Send a message via MSN to rodiniz
Default

You put the control and it generates the extjs code for you. You don't write the code, you just set control properties. When you see the page with view source you see the generated code not the source-code of the aspx page.
__________________
ExtJsExtender Controls
http://www.extendersamples.qsh.eu
My Blog
http://rodiniz.blogspot.com
Reply With Quote
  #6  
Old 07-10-2007, 04:08 PM
jgarcia@tdg-i.com's Avatar
jgarcia@tdg-i.com jgarcia@tdg-i.com is offline
Ext User
 
Join Date: Mar 2007
Location: Frederick MD, NYC, DC
Posts: 11,448
jgarcia@tdg-i.com is on a distinguished road
Send a message via AIM to jgarcia@tdg-i.com Send a message via Skype™ to jgarcia@tdg-i.com
Default

Quote:
Originally Posted by rodiniz View Post
You put the control and it generates the extjs code for you. You don't write the code, you just set control properties. When you see the page with view source you see the generated code not the source-code of the aspx page.
aaaah, so this is a server side control sorry.
__________________
Get 42% off by using coupon code n2442 valid until (11/24/09) -> [Book] - Ext JS In Action

My Blog || Ext JS screencasts || ext-doc || twitter

My free extensions/plugins:
Progressbar inside paging toolbar || Tab panel scroller menu || Window drawers || Icon Manager
Grid view custom 'view' filter || PanelHeaderToolbar

JavaScript Magazine August article now available.
Reply With Quote
Reply

Thread Tools

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT -5. The time now is 12:22 AM.

© 2006-2009 Ext, LLC
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.