Wednesday, February 29, 2012

http://dl.dropbox.com/u/62906804/C.zip


http://dl.dropbox.com/u/62906804/C.rar

Friday, February 24, 2012

auto scroll

http://dl.dropbox.com/u/62906804/Auto%20Scrolling%20Fit%20on%20index.zip

Thursday, February 23, 2012

Script of Check Box

function DeSelectAllCheckBox() {

for (var i = 0; i < document.forms[0].elements.length; i++) {
var e = document.forms[0].elements[i];

if ((e.type == 'checkbox')) {

e.checked = false;
}
}

}


function SelectAllCheckBoxSuper() {

var count = document.getElementById('MainContent_lblRecordCount').firstChild.nodeValue;

var j = 0;
if (document.getElementById('ctl00_MainContent_rptAdvanceSearchSuper_ctl00_ctl02_ctl01_chkOuterSelected').checked == true) {
for (var i = 2; j < count; i++, j++) {
if (i * 2 > 9) {
document.getElementById('ctl00_MainContent_rptAdvanceSearchSuper_ctl00_ctl' + i * 2 + '_chkInnerSelected').checked = true;
}
else {
document.getElementById('ctl00_MainContent_rptAdvanceSearchSuper_ctl00_ctl0' + i * 2 + '_chkInnerSelected').checked = true;
}

}

}
else {
for (var i = 2; j < count; i++, j++) {
if (i * 2 > 9) {

document.getElementById('ctl00_MainContent_rptAdvanceSearchSuper_ctl00_ctl' + i * 2 + '_chkInnerSelected').checked = false;
}
else {

document.getElementById('ctl00_MainContent_rptAdvanceSearchSuper_ctl00_ctl0' + i * 2 + '_chkInnerSelected').checked = false;

}
}
}
}








function SelectAllCheckBox() {

var count = document.getElementById('MainContent_lblRecordCount').firstChild.nodeValue;

var j = 0;
if (document.getElementById('ctl00_MainContent_rptAdvanceSearch_ctl00_ctl02_ctl01_chkOuterSelected').checked == true) {
for (var i = 2; j < count; i++, j++) {
if (i * 2 > 9) {
document.getElementById('ctl00_MainContent_rptAdvanceSearch_ctl00_ctl' + i * 2 + '_chkInnerSelected').checked = true;
}
else {
document.getElementById('ctl00_MainContent_rptAdvanceSearch_ctl00_ctl0' + i * 2 + '_chkInnerSelected').checked = true;
}

}

}
else {
for (var i = 2; j < count; i++, j++) {
if (i * 2 > 9) {

document.getElementById('ctl00_MainContent_rptAdvanceSearch_ctl00_ctl' + i * 2 + '_chkInnerSelected').checked = false;
}
else {

document.getElementById('ctl00_MainContent_rptAdvanceSearch_ctl00_ctl0' + i * 2 + '_chkInnerSelected').checked = false;

}
}
}
}

Radio Button

function CheckAll(val)
{
var GridView = document.getElementById('<%=grdPaymentTransaction.ClientID%>');
var checkbox1 = document.getElementById("<%=grdPaymentTransaction.ClientID%>_chkAll");
if (GridView == null) {
alert("Invalid Data");
return false;
}
for (var i = 1; i < GridView.rows.length; i++) {
cell = GridView.rows[i].cells[9];
for (j = 0; j < cell.childNodes.length; j++) {
//if childNode type is CheckBox
if (cell.childNodes[j].type == "checkbox") {
//assign the status of the Select All checkbox to the cell checkbox within the grid
cell.childNodes[j].checked = checkbox1.checked;
}
}
}
return false;
}
<%@ Assembly="Teleric.web.ui" namespace="TEleric.web.ui" tagprefix="telerik" %>
To Add A Assembly , (after adding Reference)

ghacutil - i to install particular DLL
ghacutil - u to deinstall particular DLL