View Full Version : For .net developers
rodiniz
10-03-2006, 02:05 PM
This is an sample of a control I am developing for use with Atlas.
The purpose of the control is to completely hide the javascript from the developer, yet giving him the Grid made in this site.
Come see and let me know what you think.
http://www.rodrigodiniz.qsh.eu/AtlasYuiGrid.aspx
jack.slocum
10-03-2006, 11:41 PM
I get a parse error when visiting the link.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: The ID 'ScriptManager1' is already used by another control.
Source Error:
Line 71: </Columns>
Line 72: </cc1:YuiGrid>
Line 73: <atlas:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="True">
Line 74: </atlas:ScriptManager>
Line 75:
Source File: /AtlasYuiGrid.aspx Line: 73
irishdunn
10-04-2006, 10:36 AM
once you get the error worked out I will be very interested in what your working on!
rodiniz
10-04-2006, 04:18 PM
The page is working now.
I have also published the source code.
I accept any help I can ...I don't have many time to develop this...
jack.slocum
10-04-2006, 04:27 PM
That looks nice Rodrigo. Very simple for people without javascript knowledge.
rodiniz
10-09-2006, 11:58 AM
NOw my grid is a codeplex project so anybody is welcome to join.
I have created a new helper function for the grid.
/*
Helper gets the data in the selected row as an object
with properties names that match the FIELDS
*/
YAHOO.ext.grid.Grid.prototype.getRowData=function(){
var dm = this.dataModel;
var node = dm.getNode(this.getSelectedRowIndex());
var fields=dm.schema.fields
var objRet= new Object();
for(var i=0;i< fields.length;i++){
objRet[fields[i]]=dm.getNamedValue(node,fields[i]);
}
return objRet;
}
It returns the grid selected line as an object with properties that match the schema.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.