or
function FillTelerikGrid() { var GridData; GridData = "{\"Contacts\": {\"Contact\": [{\"ID\": \"1\",\"Name\": \"John Doe\",\"Age\": \"21\",\"Email\": \"johndoe@example.com\"}]}}"; var tableView = $find("<%= RadGrid1.ClientID %>").get_masterTableView(); tableView.set_dataSource(GridData); tableView.dataBind();} <div id="<%=this.ClientID%>_ContextContainer" class="divContextContainer" style="float: left; height: 400px; overflow-y: auto; width: 33.3%;"> <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="false" Skin="Metro"> <MasterTableView> <Columns> <telerik:GridBoundColumn DataField="ID" UniqueName="ID" HeaderText="ID"> </telerik:GridBoundColumn> </Columns> </MasterTableView> </telerik:RadGrid> </div>protected void Page_Load(object sender, EventArgs e) { try { if (!IsPostBack) { dynamic data = new[] { new { ID = "1", Name ="Name11",Age = "0"}, new { ID = "2", Name ="Name11",Age = "0"}, new { ID = "3", Name ="Name11",Age = "0"}, new { ID = "4", Name ="Name11",Age = "0"} }; RadGrid1.MasterTableView.DataSource = data; RadGrid1.DataBind(); } } catch (Exception ex) { Platform.WebUI.DiagnosticsHelper.ReportError(ex); throw ex; } }Uncaught TypeError: Cannot read property 'style' of null ScriptResource.axd:6507Telerik.Web.UI.RadGrid._getAllChildItemsRecursive ScriptResource.axd:6507Telerik.Web.UI.RadGrid._getPositionedDataItems ScriptResource.axd:6499Telerik.Web.UI.GridTableView.dataBind ScriptResource.axd:3831FillTelerikGrid Notes.aspx:695getContextView Notes.aspx:637(anonymous function) Notes.aspx:608f.event.dispatch jquery.js:3h.handle.i[21:29:29.778] TypeError: m.get_element(...).parentNode.parentNode is null @ https://www.....(...)
dsmyods.SelectParameters.Clear();dsmyods.SelectParameters.Add("Param", 123);protected void dsmyods_Selecting(object sender, ObjectDataSourceSelectingEventArgs e) { e.InputParameters.Clear(); e.InputParameters.Add("Param", 123); }