
PLEASE DISREGARD THIS POST... PROBLEM RESOLVED ITSELF...
On my .aspx page I declare my datepicker control as follows:
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<telerik:RadDatePicker ID="calender" AutoPostBack="true" runat="server" onselecteddatechanged="calender_SelectedDateChanged"> </telerik:RadDatePicker>
Then on my code behind page I have the following event declared:
protected void calender_SelectedDateChanged(object sender, Telerik.Web.UI.Calendar.SelectedDateChangedEventArgs e)
{
int x = 0;
}
Now when I select a new date on the datepicker control the page does a post back however... this event on the code behind page does NOT fire.
Any Ideas?
~N
Hi.
I have trouble with my masterpage after changing to Q1 2008 of the RadControls for asp.net Ajax
In my masterpage I have a calender and a grid working together. When I click the calendar the grid updates with som data. in the grid i have 2 imagebuttons in each row, theese two takes me to a "register" page. During itemdatabound each button is given a spesific postbackurl according to the dataId of that row.
So far so good. But when I click one of the buttons the new page is loaded just fine, but if I click either of the buttons a second time(in case I wanted the other item) then a Javascript or a server error occurs. in both the server error and the javascript error the same thing is presented. EnableEventValidation=true. set the event validation false. I dont want to do that, can you help me? I've pasted the stacktrase from the serverside error:
System.Web.UI.ClientScriptManager.ValidateEvent(String uniqueId, String argument) +2132728
System.Web.UI.Control.ValidateEvent(String uniqueID, String eventArgument) +108
System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +32
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
function ShowEditTree(rowIndex)
{
var grid = window["<%= RadGrid1.ClientID %>"];
var rowControl = grid.MasterTableView.Rows[rowIndex].Control;
grid.MasterTableView.SelectRow(rowControl,
true);
var tf = grid.MasterTableView.GetCellByColumnUniqueName(grid.MasterTableView.Rows[rowIndex], "CourseID");
var CourseID = tf.innerHTML ;
}
I've changed the client setting required by prometheus to enable AllowRowSelect(which was a change from the previous version).
<
ClientSettings EnableRowHoverStyle="True" >
<
Selecting AllowRowSelect="True" />
<
ClientEvents OnRowClick="Dummy"></ClientEvents>
</
ClientSettings>
What am I missing?