Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>[begin edit]</p> <p>On your Primary control, you could make an event handler. When you want to execute that event handler from the primary control (on button click for example) it will execute the code on the sending page.</p> <p>Declare the custom Event Handler</p> <pre><code>public delegate void ControlChangedEventHandler(string QueryString); </code></pre> <p>Then in my your second control, delcare a public eventhandler for the change:</p> <pre><code>public ControlChangedEventHandler OnControlChanged; </code></pre> <p>Then on submission of your control, check to see if OnControlChanged has been set and then execute.</p> <pre><code> if (OnControlChanged != null) { OnControlChanged(QueryStringParameter); } </code></pre> <p>Now in your main control, create a function to handle the work</p> <pre><code>public void OnControlChanged(string QueryString) { RadTabStrip1.SelectedIndex = 1; rmpProgressReports.SelectedIndex = 1; PRDetails.LoadFromQuery(QueryString); } </code></pre> <p>and then assign that function as the event handler for the OnAddressChanged for the usercontrol.</p> <pre><code>PRDashBoards.OnControlChanged += new ControlChangedEventHandler(OnControlChanged); </code></pre> <p>[old answer based on clicking on the tabs]</p> <p>You can set the AutoPostBack property of the RadTabStrip to True to allow the OnTabClick function to fire. </p> <p>From inside of the OnTabClick function, you can access a public property or function of the UserControl and pass data to it, for example, creating a public function to then cause the data to be rebound based on a parameter. For example: </p> <pre><code>protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e) { if (e.Tab.TabIndex == 0) { PRDashBoards.DoSomething(); } else if (e.Tab.TabIndex == 1) { PRDetails.DoSomethingElse(); } } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload