+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Using a RadGrid in a widget designer

Using a RadGrid in a widget designer

2 posts, 0 answered
  1. Kurren
    Kurren avatar
    23 posts
    Registered:
    08 Jun 2013
    03 Feb 2014
    Link to this post
    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
  2. Pavel Benov
    Pavel Benov avatar
    341 posts
    Registered:
    14 Mar 2016
    05 Feb 2014
    Link to this post
    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
2 posts, 0 answered