Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9043393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T10:43:25+00:00 2026-06-16T10:43:25+00:00

I have a checkbox that, when clicked, checks or un-checks all the checkboxes that

  • 0

I have a checkbox that, when clicked, checks or un-checks all the checkboxes that exists in a Telerik RadGrid.

function CheckAll(sender, args) {
        // Set all the checkboxes according to the master
        $(":checkbox").attr("checked", sender.get_checked());

        // If "check all", do some other stuff
        if(sender.get_checked())
        {
            var masterTable = $find("<%=gridSubmittedRequests.ClientID%>").get_masterTableView();
            var rows = masterTable.get_dataItems(); // row collection
            // do some other stuff                
        }
    }
}

This all works fine until I open (and close) a jquery dialog, after which

$find("<%=gridSubmittedRequests.ClientID%>")

returns null. Hence, I can never get to the important // do some other stuff part.

The jQuery dialog close function doesn’t do anything special:

$("#divProcessModal").dialog(
        {
            height: 300,
            width: 400,
            modal: true,
            resizable: false,
            buttons: { 
                "Process request(s)": function (e) { 
                    // process requests
                },
                "Close without processing": function (e) { 
                    $(this).dialog("close"); 
                    e.preventDefault(); 
                }
            },
            title: "Process Request(s)",
        });

All I do is click the Close without processing button.
Things I’ve tried include registering the script on the server side, and setting the mastertable as a global variable, but without success.

Update

I figured out what the cause is. The content of the jquery dialog is another page

$("#divProcessModal").load("/ProcessRequests.aspx?requestList="+requestList);

This page has its own form, code-behind and all that, and that seems to cause the problem. I guess I can move all the functionality in ProcessRequests.aspx to the current aspx page, but if anyone can explain what is happening and why my initial approach doesn’t work, I would appreciate it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T10:43:26+00:00Added an answer on June 16, 2026 at 10:43 am

    I figured out what the cause is. The content of the jquery dialog is another page

    $("#divProcessModal").load("/ProcessRequests.aspx?requestList="+requestList);
    This page has its own form, code-behind and all that, and that seems to cause the problem. Moving all the functionality in ProcessRequests.aspx to the current aspx page solves the problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have disabled all the checkboxes except one. On click of that checkbox i
I have a javascript function that sets a variable everytime a checkbox is clicked:
I have a checkbox that when it is clicked it submits the form to
The purpose is to have a checkbox, that if clicked, will send via post
I have a checkbox that when clicked shows a drop down list. i just
I have a checkbox in a jsp page, when i clicked that checkbox control
I have a bunch of checkboxes, and then this master checkbox that will uncheck,
I'm trying to create a check/uncheck all CheckBox for a number of CheckBoxes that
I have a checkbox that I do not want the user to have direct
In my html.beginform I have this checkbox that I want to persist. I'm not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.