What i want it to do is have it so when i click on Save in the toolbar it first checks if all the controls are validated in the Panel bar and if not focus on the first control not found.
Even better is if this validation could occur on the client side before postback.
I tried to set it up as per the example in the demo of the Toolbar using the ValidationGroups but it doesn't work as i suppose the Validators in the Panel Items aren't visible to the Toolbar.
I can explicitly fire the Validator using the demo example in the Panelbar validation section, but i don't want to post back if i can help it.
any ideas?
Jordan
RecurrenceRule
parsedRule;
if (parsedRule != null)
{
String strType = parsedRule.Pattern.Frequency.ToString();
switch (strType)
{
case "Hourly":
{
String strInterval = parsedRule.Pattern.Interval.ToString();
txtHourly.Text = strInterval;
if (!rbHourly.Checked && !rbDaily.Checked && !rbWeekly.Checked && !rbMonthly.Checked && !rbYearly.Checked)
{
Recurrence_HidePanels();
rbHourly.Checked = true;
pnlHourly.Visible = true;
}
break;
}
case
"Daily":
{
String strInterval = parsedRule.Pattern.Interval.ToString();
RecurrenceDay rDays = new RecurrenceDay();
rDays = parsedRule.Pattern.DaysOfWeekMask;
if (!rbHourly.Checked && !rbDaily.Checked && !rbWeekly.Checked && !rbMonthly.Checked && !rbYearly.Checked)
{
Recurrence_HidePanels();
rbDaily.Checked = true;
pnlDaily.Visible = true;
if (rDays == RecurrenceDay.WeekDays)
{
rbDaily_Weekday.Checked = true;
rbDaily_Days.Checked = false;
}
else
{
rbDaily_Days.Checked = true;
rbDaily_Weekday.Checked = false;
txtDaily_Days.Text = strInterval;
}
}
break;
}
}
In the same way I want the code for 'Monthly' and 'Yearly'. Please do send me the code. Thanks
RadGrid.MasterTableView.SortExpressions.Clear();
RadGrid.Rebind();
LoadGrid();