Dynamic Data, UpdatePanels, RadGrid, RadChart, and Dropdowns?

2 posts, 0 answers
  1. John
    John avatar
    41 posts
    Member since:
    Jun 2008

    Posted 22 Nov 2015 Link to this post

    Hello all:
    I am trying to build a page that has a RadGrid, some dropdowns, and a RadChart. When the page loads, the data is read from the backend CRM system and used to populate the grid and the drop-downs (which are Start Date, End Date, and Chart Type), and then the idea is for the user to select a Start Date, an End Date, and the Chart Type, and then the chart is supposed to render from the CRM data. 

    The issue is that when the selection is made from one of the drop downs, the autopostback occurs and either clears the dropdowns, or they retain the data but sloe whatever selection the user made. 
    I have tried putting the Grid in one UpdatePanel and then the drop-downs and charts in another, but that didn't work. I also tried putting each drop-down in it's own UpdatePanel and the chart in another, and then the drop-down retained the selection, but the OnSelectedIndexChanged did not fire. I was initializing the CRM connection and reading the data from CRM in Page_Load, but then I realized that means this happens on every postback. When I put if (!IsPostback) around the data read, then when a selection was made from a drop-down and postback fired, all the data disappeared.

    Can anyone make a suggestion and/or point me at documentation that can help me with this? The functionality I need is
    Read the CRM data, populate the drop-downs, render the grid
    Enable Grid paging
    From the drop-downs, User selects Start Date, End Date, and Chart Type, and then either from ChartType_OnSelectedIndexChanged or a button, the chart renders from the CRM data read at the start.

    Thanks in advance for any and all help.
    John.

  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 23 Nov 2015 Link to this post

    Hi John,

    Please refer to the answer provided in the first ticket you have opened for the same issue and see if it helps. I would suggest you to continue our communication in the initial ticket so that we can better track the case by having all the information in one place.

    Regards,
    Maria Ilieva
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top