function getElements(calendarInstance, args) {
1 var grid = $get('<%= grdElectives.ClientID %>');
2 alert(
'gridElectives found: ' + grid);
3 var dates = calendarInstance.get_selectedDates();
4 var i = 0;
5 for (i = 0; i < dates.length; i++) {
6 alert(dates[i]);
7 }
8 var todaysDate = new Date();
9 var todayTriplet = [todaysDate.getFullYear(), todaysDate.getMonth() + 1, todaysDate.getDate()];
10 var tomorrowTriplet = [todaysDate.getFullYear(), todaysDate.getMonth() + 1, todaysDate.getDate() + 1];
11 var selectedDates = [todayTriplet, tomorrowTriplet];
12 calendarInstance.selectDates(selectedDates,
true);
}
Line 1 gets the grid instance correctly (as line 2 is showing Grid Electives found: OBJECT in the alert box)
But i need to find the listbox control that is within that grid (the name of the listbox is lstDates)
I know that once i have an instance of the listbox i can read/write to it.... which is what i need to do despirately
Cannot for the life of me get this to work.
Any help is appreciated.
I have client grouping on and am not able to group by the gridButtonColumn. Here is the line am am using. I have Groupable set to true. Am I missing something here?
<
telerik:GridButtonColumn Groupable="true" HeaderText="View Letter" DataTextField="LetterID" GroupByExpression="LetterID" UniqueName="vLetter" ButtonType="LinkButton">
</telerik:GridButtonColumn>
| if ( IsInAsyncPostBack && ( AjaxManager != null ) ) |
| { |
| if ( url.StartsWith("~/") ) |
| url = ResolveClientUrl(url); |
| AjaxManager.Redirect(url); |
| } |
| else |
| Response.Redirect(url,endResponse); |
