function Validate(sender, args)
{
var DataItems = $find("<%=RadGrid3.ClientID %>").get_masterTableView().get_dataItems();
var index =??????????????????????
var cb1 = $telerik.findControl(DataItems[index].get_element(), "RadComboBox1");
var cb2 = $telerik.findControl(DataItems[index].get_element(), "RadComboBox2");
}
When the grid runs in a german version of IE on a german version of the operating system, date columns show their dates using periods separating the day, month and year. What I really want is the format to be whatever I set it to be on the server using whatever regional setting applies to the user. The regional setting is independent of the browser's language or the language of the operating system. It is a web application setting specific for the user. Here is my code example:
| DateTimeFormatInfo dateTimeFormat = new CultureInfo("en-us", false).DateTimeFormat; |
| GridDateTimeColumn colSessionStartTime = this.RadGridSkillsData.Columns.FindByUniqueName("SessionStartTimeLocal") as GridDateTimeColumn; |
| colSessionStartTime.DataFormatString = "{0:" + dateTimeFormat.ShortDatePattern + " " + dateTimeFormat.LongTimePattern + "}"; |
When I view what colSessionStartTime.DataFormatString is set to, it shows up as:
"{0:M/d/yyyy h:mm:ss tt}"
Yet the values that appear in the grid are showing periods rather than slashes for the date.
How can I get the date to format according to any culture code?
Johann
Hello,
I have a small problem with using Telerik Ajax in a dynamically loaded uses control.
In the beginning the page had 3 user controls with Ajax and all of them were loaded at runtime. Everything was working as expected. The main page had a RadAjax Manager and the user controls had RadAjax Manager Proxy controls on them.
After implementing the user control loading thru Ajax based on this http://www.telerik.com/help/aspnet/ajax/ajxloadusercontrols.html. There were no more changes to the main page.
Now when I click on a control inside user control that should update something in the same user control with the help of Ajax my entire user control just disappears from the page completely without any errors, or execution of the code in the user control.
What have I forgotten to add/modify in the page to make it work?
Thank you for your time
int
hoursOffset = -5;
RadScheduler1.TimeZoneOffset = TimeSpan.Parse(hoursOffset.ToString());
Is this correct and where do I put such code? I've tried it on a little test project in onload but it doesn't seem to have any effect on the appointment times.
Thanks
Gary