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

[Solved] Master Pages + Intering acting with other Rad Controls

1 Answer 113 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Luke Shields
Top achievements
Rank 1
Luke Shields asked on 16 Feb 2010, 09:56 PM
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!!!
  

1 Answer, 1 is accepted

Sort by
0
Dimitar Milushev
Telerik team
answered on 19 Feb 2010, 06:31 PM
Hi Luke,

Thank you for your interest in RadControls.

I am getting the general idea of what you are trying to do and I believe it should be possible to implement it. The first problem sounds like the dropdown is not being updated, but since there are multiple approaches when implementing AJAX updates (for example RadAjaxPanel vs. RadAjaxManager) it's difficult to say what is going wrong in this case. If this is a confined prototype project, can you please open a support ticket and send it to us? I'll be glad to look at it and give you more specific suggestions. It's similar with the second issue - it would be much easier to suggest an approach if we can see the project and the exact scenario.

As for performing AJAX updates in master/child page scenarios - we have a few help articles dealing with the subject, including tips on how to update one ContentPlaceHolder from another. If your questions are not covered by these articles, please feel free to post here on the forums or open a support ticket.

Regards,
Dimitar Milushev
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
Luke Shields
Top achievements
Rank 1
Answers by
Dimitar Milushev
Telerik team
Share this question
or