Okay I have a couple questions, please dont be afraid to tell me its not possible or if you have a solution please let me know. I am trying to prototype this site, fast so I can propose it to managment, get funding for your controls and embark on a larger project. However I need to cross this bridge first, and before my trial runs out.
First:
I have a User control which consists of a RadMenu (loaded from a database), and 2 RadComboBoxes.
I then put this control in my master page. So that it would be formatted the same on every page, would keep a consistent look and feel, and above all limit my over head on changes.
So that is the contents of the master page, on the actual pages I have a grid and a couple graphs. Which are date sensitive. (the 2 RadComboBoxes are for date types) So as the dates are changed in the drop down I wanted to change the data binding of the grid and the charts.
The first drop down is ('Year', 'Week', 'Month', 'Quarter') and the second drop down is the valid data ranges based on the first drop down. Using this example it works great!
http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multiplecomboboxes/defaultcs.aspx
However, I want the 2nd Drop Down to relate to the grid, which because of the user control and master page it is hidden. I can access it programatically and obtain the values, however because of the AJax the selected value of the second drop down never changes. It stays the selected value at page load. I know this might just me failure on my part to be an Ajax guru, but I was hoping to get some ideas or help on how to do this efficently. I mean i can code it all and it works fine, I was just trying to leverage the funtionality of your controls so I can create a better app, and postback a little less, as I dont think its need that much for the data that I am trying to display.
Second:
In my RadMenu I have a Heading Export. I was trying to have the menuItem when selected export the grid and the chart images. Again I have this working when I click a button, I was just trying to add this to the RadMenu as it will be used on 30 or so pages with the same functionality, just differnt SQL. I can not see how to pass the value of the radgrid properly so that the eport function could be called. Or is there a way to leverage the export feature ouside of a control, and pass it the SQL?
I technicly could just put my user control code in the master page and remove one layer, however I am still drawing blanks on how to past postback or an ajax request across the child/master page barrier and have the data line up accruatly. I mean the export buttons should be able to be dynamically changed to point to the child control on the page and execute its export feature, and the drop downs should be able to cause the grids and charts to change, I just cant seem to wrap my head around how to tackle this appropriatly. Any help or ideas would be greatluy appreciated. Let me know if more data is needed too.
Thanks for your time!!!
First:
I have a User control which consists of a RadMenu (loaded from a database), and 2 RadComboBoxes.
I then put this control in my master page. So that it would be formatted the same on every page, would keep a consistent look and feel, and above all limit my over head on changes.
So that is the contents of the master page, on the actual pages I have a grid and a couple graphs. Which are date sensitive. (the 2 RadComboBoxes are for date types) So as the dates are changed in the drop down I wanted to change the data binding of the grid and the charts.
The first drop down is ('Year', 'Week', 'Month', 'Quarter') and the second drop down is the valid data ranges based on the first drop down. Using this example it works great!
http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multiplecomboboxes/defaultcs.aspx
However, I want the 2nd Drop Down to relate to the grid, which because of the user control and master page it is hidden. I can access it programatically and obtain the values, however because of the AJax the selected value of the second drop down never changes. It stays the selected value at page load. I know this might just me failure on my part to be an Ajax guru, but I was hoping to get some ideas or help on how to do this efficently. I mean i can code it all and it works fine, I was just trying to leverage the funtionality of your controls so I can create a better app, and postback a little less, as I dont think its need that much for the data that I am trying to display.
Second:
In my RadMenu I have a Heading Export. I was trying to have the menuItem when selected export the grid and the chart images. Again I have this working when I click a button, I was just trying to add this to the RadMenu as it will be used on 30 or so pages with the same functionality, just differnt SQL. I can not see how to pass the value of the radgrid properly so that the eport function could be called. Or is there a way to leverage the export feature ouside of a control, and pass it the SQL?
I technicly could just put my user control code in the master page and remove one layer, however I am still drawing blanks on how to past postback or an ajax request across the child/master page barrier and have the data line up accruatly. I mean the export buttons should be able to be dynamically changed to point to the child control on the page and execute its export feature, and the drop downs should be able to cause the grids and charts to change, I just cant seem to wrap my head around how to tackle this appropriatly. Any help or ideas would be greatluy appreciated. Let me know if more data is needed too.
Thanks for your time!!!