var behavior = RadInputManager1.GetSettingByBehaviorID("BlankTest");
foreach (Telerik.Web.UI.TargetInput item in behavior.TargetControls)
{
if (item.ControlID == "medlemsnummer")
{
item.Enabled = setIt;
}
}
Are there a "short hand", tried with LINQ - but no go?
3 Answers, 1 is accepted
0
Sebastian
Telerik team
answered on 14 Apr 2009, 08:48 AM
Hello Hessner,
Performing a loop through the items in the TargetControls collection of a given RadInputManager behavior is a valid approach to set their Enabled property. I am not sure how you would like to accomplish the same task with LINQ - can you please elaborate a bit more on your idea? Thus I will be able to provide more definite answer.
Best regards,
Sebastian
the Telerik team
Check out Telerik Trainer , the state of the art learning tool for Telerik products.