Hi,
I am trying out the lastest release of RadGrid Q2 2008 client side dataBind feature. When I tried to bind the data received from the Webservices the RadGrid doesn't bind. First it clears the current Grid data and it stays empty and when i tried to load for the 2nd time the data get loaded (i can see the data loaded) and then immediatly get cleared. Also one observation is that when i tried to add some alert before i bind the data then the Grid bind correctly. The sample code is given below. Can someone help me explain how to resolve this?
//Javascript
function ClientLoadGrid(){
GridService.Search(LoadGrid);
}
function LoadGrid(result){
var ctrlID = "<%= RadGrid1.ClientID %>";
//alert(ctrlID + ' ' + result)
var masterTable = $find(ctrlID).get_masterTableView();
masterTable.set_dataSource(result);
masterTable.dataBind();
}
//HTML
<telerik:RadGrid ID="RadGrid1" runat="server" PageSize="20" EnableViewState="true" Skin="Sunset" AllowPaging="true" AllowSorting="True" GridLines="Horizontal" Width="100%" >
<MasterTableView AllowMultiColumnSorting="True" AutoGenerateColumns="False" HierarchyLoadMode="Client" ClientDataKeyNames="EmployeeID" DataKeyNames="EmployeeID" EnableViewState="False" >
<Columns>
<telerik:GridBoundColumn DataField="EmployeeID" HeaderText="Employee ID" UniqueName="EmployeeID">
<ItemStyle Width="80px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Title" HeaderText="Title" UniqueName="Title" />
</Columns>
</MasterTableView>
<PagerStyle AlwaysVisible="true" />
<FilterMenu EnableTheming="True" Skin="Sunset">
<CollapseAnimation Duration="200" Type="OutQuint" />
</FilterMenu>
</telerik:RadGrid>
Thanks in advance
Sundar
| UpdateCommand="UPDATE [LabUser] SET [Username]=@Username,[Enabled]=@Enabled,[RemoteAccess]=@RemoteAccess WHERE [UserID] = @UserID" |
| Dim gct As New GridTemplateColumn |
| With gct |
| .HeaderText = "Schema" |
| .DataField = "Name" |
| .ItemTemplate = LoadTemplate("~/DynamicData/FieldTemplates/Text_List.ascx") |
| End With |
| GridView1.MasterTableView.Columns.Add(gct) |

| function OnClientSelectedIndexChanging_Handler(sender, args) { |
| args.set_cancel(true); |
| } |
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
Timestamp: Tue, 20 Apr 2010 15:02:54 UTC
Message: Unspecified error.
Line: 1
Char: 14114
Code: 0
URI: http://localhost/mysite/RadCalendar.js
Message: Object doesn't support this property or method
Line: 1
Char: 59048
Code: 0
URI: http://localhost/mysite/RadControls/Calendar/Scripts/1_7_2/RadCalendar.js
Message: 'RadHelperUtils' is null or not an object
Line: 1
Char: 3021
Code: 0
URI: http://localhost/mysite//RadControls/Calendar/Scripts/1_7_2/RadCalendar.js
Message: Object doesn't support this property or method
Line: 1
Char: 59048
Code: 0
URI: http://localhost/mysite/RadControls/Calendar/Scripts/1_7_2/RadCalendar.js
Message: 'RadHelperUtils' is null or not an object
Line: 1
Char: 3021
Code: 0
URI: http://localhost/mysite/RadControls/Calendar/Scripts/1_7_2/RadCalendar.js
Message: Object doesn't support this property or method
Line: 1
Char: 59048
Code: 0
URI: http://localhost/mysite/RadControls/Calendar/Scripts/1_7_2/RadCalendar.js
Can somebody help please.
Best regards