Skip to main content

Posts

Showing posts from January 24, 2021

Add and delete in array

 if ($("#" + id).attr("checked") == true)                             {                                                                if (!elems.includes(val))                                 {                                                                          elems.push(val)                                 }                             ...

datalist rows count and find checkbox inside it

        function displayButtonRights()         {             debugger;             var datalist = document.getElementById("<%= dlistBranchDetails.ClientID %>");             var j = 0;             for (var i = 0; i <= datalist.rows.length ; i++)             {                 debugger;                            alert(datalist.rows.length);                 if ($("#" + "ctl00_hldPage_dlistBranchDetails_ctl0" + i + "_chkBranchName").attr("checked") ==true && j==0)                 {                     $("#ctl00_hldPage_dvbtnRights").css("display", "blo...

nested grid 0n heading and multiple subheading

nested grid 0n heading and multiple subheading        private void BindBtnRights()         {             long UserId = 0;             DataSet _dsMenu = ((DataSet)Session["MenuDS"]);             DataView dvMenu = new DataView(_dsMenu.Tables[0]);             dvMenu.RowFilter = "ModuleId=3 AND  MenuId=77";             if (dvMenu.Count > 0)             {                 if (hfUserId.Value != "" && hfUserId.Value != null)                 {                     UserId = Convert.ToInt64(hfUserId.Value);                 }                     dvbtnR...