This is a migrated thread and some comments may be shown as answers.

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

1 Answer 47 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 22 Nov 2015, 01:09 PM

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.

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 23 Nov 2015, 03:25 PM
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
Tags
Ajax
Asked by
John
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or