Using a RadGrid in a widget designer

Posted by Community Admin on 03-Aug-2018 14:43

Using a RadGrid in a widget designer

All Replies

Posted by Community Admin on 03-Feb-2014 00:00

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

Posted by Community Admin on 05-Feb-2014 00:00

Hello Kurren,

You have been provided an answer in the support ticket you have opened for this.

Regards,
Pavel Benov
Telerik

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items

This thread is closed