Using a RadGrid in a widget designer
Hi
I want the person designing the widget to enter data into a RadGrid, then my Javascript can retrieve data from the grid to populate the widget. The radGrid doesn't seem to show up in the widget designer.
In WidgetDesigner1.ascx:
<telerik:RadGrid ID="RadGrid1" runat="server"></telerik:RadGrid>
In WidgetDesigner1.js, under the refreshUI function:
var item1 = id: 1, color: "red" ;
var item2 = id: 2, color: "green" ;
var gridData = [item1, item2];
var tableView = jQuery("<%= RadGrid1.ClientID %>").get_masterTableView();
tableView.set_dataSource(gridData);
tableView.dataBind();
Please tell me if there is something I am missing out, or if this not possible.
Thanks,
Kurren
Hello Kurren,
You have been provided an answer in the support ticket you have opened for this.
Regards,
Pavel Benov
Telerik