|
Jun 22, 09 -11:20 PM
Hi,I've been trying to load data to Nitobi grid but it just keeps showing the loading img.Here's the code for Samples.aspx: <ntb:Grid ID="grdMain1" runat="server" AllowAddRow="True" AllowDeleteRow="True" Theme="Vista" PageSize="50" Width="800" Height="300" Mode="NonPaging" Resizable="HeightOnly" MinHeight="300" MinWidth="400" GetDataUrl="Samples.aspx"> </ntb:Grid>and for Samples.aspx.vb: Imports Nitobi Imports Nitobi.XmlDataHandler Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.LoadIf (Not Page.IsPostBack) Then Dim da As XmlDataHandler = New XmlDataHandler AddHandler da.provider.GetData, AddressOf grd1_GetData da.checkForAndProcessAjaxRequest(Request, Response) grdMain1.Data = daEndIf End Sub Public Function grd1_GetData(ByVal request As HttpRequest, ByVal args As AjaxGetDataHandlerEventArgs) As Object Dim dtSubModulesData As New DataTable dtSubModulesData = GetData(<spname>) ' Here GetData(<spname>) connects to a database and retrieves and returns data as a datatable. dtSubModulesData.TableName = "SubModules" Return dtSubModulesData End Function Can someone let me know what's missing? How can I make the grid show the data retrieved?I've added reference of NitobiControls dll to my project and added NitobiStyles directory at the root directory of the project. Regards,Mohan.
|
gmmurali
Joined:
Jun 22, 09
|
|