This is a migrated thread and some comments may be shown as answers.

Java Script Return value in RadGrid1_ItemCommand

1 Answer 41 Views
Grid
This is a migrated thread and some comments may be shown as answers.
mohamed
Top achievements
Rank 1
mohamed asked on 16 May 2011, 08:16 AM
Hello .

ScriptManager.RegisterStartupScript(this, this.GetType(), "Key", "radconfirm('This Asset Make Use Ticket, Are Sure Delete This Asset?',confirmCallBackFn, 330, 100, null,'Send Message?');", true);

i call that script

 function confirmCallBackFn(sender, arg) {
                debugger;
                var sample
                if (arg == true) {
                    var lbltxt = "0";
                    var hdnval = document.getElementById("MainContent_hdnval");
                    hdnval.innerText = lbltxt;
                }
                else {
                    var hdnval = document.getElementById("MainContent_hdnval");
                    hdnval.innerText = "1";            
                }
            }

after execute this script
i want go to server side after that only i check
hdnval = 0 i check some process

please reply soon



Thanks,
Mohamed.

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 19 May 2011, 07:42 AM
Hi,

To get back to the server you can use RadAjaxManager's ajaxRequest method:
http://www.telerik.com/help/aspnet-ajax/ajax-client-side-api.html

All the best,

Tsvetoslav
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
mohamed
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or