PDA

View Full Version : Rows of GridPanel



egof
Oct 14, 2008, 3:25 PM
How i can get all rows (read row by row, like using a FOREACH) of a GRIDPANEL?

heysol
Oct 14, 2008, 3:45 PM
hi does anybody have idea how to make the button works because it sent me an error message my code below:



<ext:Button ID="Button1" runat="server" Text="Click Me">


<AjaxEvents>


<Click OnEvent="UpdateTimeStamp">


<EventMask ShowMask="true" MinDelay="500" Msg="Updating TimeStamp..." />


</Click>


</AjaxEvents>


</ext:Button>

mindcore1
Oct 14, 2008, 4:19 PM
egof:

I don't think you would ever need to iterate through the contents of a user interface control to gather and/or manipulate the data bound to it. The GridPanel is for presentation, not backend logic so I would think that you would do this against the Store or DataSource that is bound to the GridPanel.

Can you give everyone a small sample of code on what you are trying to do and maybe someone can help you out?

Thanks!

egof
Oct 14, 2008, 4:33 PM
In this moment my code is so complex.
But my intention is LOAD a SQLTABLE from DATABASE in a GRIDPANEL, then ALTER the data and SAVE the NEW DATA in DATABASE, but i have a framework to do a interface with a DATABASE, and i want freedom to manipulate the data.

Vladimir
Oct 14, 2008, 4:51 PM
Hi egof,

The Examples Explorer contains the examples which show how to save changed rows

http://examples1.ext.net/#/GridPanel/DataSource_Update/SqlDataSource/
http://examples1.ext.net/#/GridPanel/WebService_Connections/HandlerUsing/