This has to be a super simple answer...I'm just not finding it. I'm using the below from code behind to display the RadConfirm window.
aeWindowManager.RadConfirm("Are you sure you want to remove?", "InitiateAjaxRequest", 330, 100, null, "Confirm Remove");
Once a choice is made in the RadConfirm window, this javascript function is called...
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">
function InitiateAjaxRequest(arguments) {
var ajaxManager = $find("<%= aeAjaxManager1.ClientID %>");
ajaxManager.ajaxRequest(arguments);
}
</script>
</telerik:RadCodeBlock>
I can then handle the response using this in the code behind...
protected void aeAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
//logic here
}
I'm able to access the bool value of the RadConfirm choice using e.Argument. My problem here is that I need to pass multiple parameters to aeAjaxManager1_AjaxRequest instead of just true or false. I have no problem splitting a comma seperated string here but I'm not sure to add the multiple arguments to pass to the AjaxRequest. In this particular case I need to pass the bool value of the selection along with 2 other strings. I've tried this...
aeWindowManager.RadConfirm("Are you sure you want to remove?", "InitiateAjaxRequest('string1')", 330, 100, null, "Confirm Remove");
...and it works but I loose the bool response from the radconfirm window. I need to capture the response as well as specify 2 strings.
Please advise how I should go about this. Your time is much appreciated!!
aeWindowManager.RadConfirm("Are you sure you want to remove?", "InitiateAjaxRequest", 330, 100, null, "Confirm Remove");
Once a choice is made in the RadConfirm window, this javascript function is called...
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">
function InitiateAjaxRequest(arguments) {
var ajaxManager = $find("<%= aeAjaxManager1.ClientID %>");
ajaxManager.ajaxRequest(arguments);
}
</script>
</telerik:RadCodeBlock>
I can then handle the response using this in the code behind...
protected void aeAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
//logic here
}
I'm able to access the bool value of the RadConfirm choice using e.Argument. My problem here is that I need to pass multiple parameters to aeAjaxManager1_AjaxRequest instead of just true or false. I have no problem splitting a comma seperated string here but I'm not sure to add the multiple arguments to pass to the AjaxRequest. In this particular case I need to pass the bool value of the selection along with 2 other strings. I've tried this...
aeWindowManager.RadConfirm("Are you sure you want to remove?", "InitiateAjaxRequest('string1')", 330, 100, null, "Confirm Remove");
...and it works but I loose the bool response from the radconfirm window. I need to capture the response as well as specify 2 strings.
Please advise how I should go about this. Your time is much appreciated!!