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

Problems using Controls nested inside of RadControls

3 Answers 60 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Nelson
Top achievements
Rank 1
Nelson asked on 08 Dec 2010, 04:06 PM
Hello,

I am new to using RadControls. I do get the concept of having to cast a nested control using the .FindControl method. However, I am noticing that if I wish to start coding for an event for a button nested inside of a RadControlPanel, for example, since I can not see my button listed as an available control, I can not view and select any of its events either.

I do notice that in a tutorial, there is an example showing how events may be wired up to a nested control, however I am unsure how one comes up with the first block of say the Button_Click event. I am hoping coding for all nested controls will be as easy as coding with .net has always been... I want to be able to choose the "Click" event of my Button and then begin coding with the Button_Click event code block being generated as it always has been. I definitely do NOT want to have to copy and paste this from any where else, or start coding with the control outside of the panel and then simply move the control inside of the panel when done. This seems awkward and a step backward and I am really hoping there is a better way to go about this. If not, this would likely be a deal breaker for us.

Thanks,
Nelson

3 Answers, 1 is accepted

Sort by
0
Nelson
Top achievements
Rank 1
answered on 10 Dec 2010, 02:30 PM
Hello,

It has been a couple of days now and I am still stuck with the same question as before. Can this question be answered?

Thanks,
Nelson
0
Nelson
Top achievements
Rank 1
answered on 13 Dec 2010, 06:44 PM
???
0
Nikolay Tsenkov
Telerik team
answered on 14 Dec 2010, 04:06 PM
Hello Nelson,

Simply:
  1. find the control;
  2. cast it to the right type;
  3. assign it to an identifier (variable);
  4. write this identifier on a new line;
  5. press the "."-key (to visualize the intellisense menu), select the right event;
  6. write "+=";
  7. without doing anything else, double Tab fast.

Keep in mind that some events require "protected" (as modifier) handlers.


Regards,
Nikolay Tsenkov
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
General Discussions
Asked by
Nelson
Top achievements
Rank 1
Answers by
Nelson
Top achievements
Rank 1
Nikolay Tsenkov
Telerik team
Share this question
or