how to create user control following requirment?

previous

1
2

7
8
9
10
11



next




iam having total 11 pages.

if the cursor is one previous button should be disabled.

if the cursor is 11 next button should be disabled..

plz send me code .






1 Reply

MW Melba Winshia Syncfusion Team July 7, 2008 09:50 AM UTC

Hi Kathyani,

Thank you for your interest in Syncfusion Products.

You can use Syncfusion Multipage control to achieve this. Please use below code to disable previous button when the first button is clicked:

[Javascript]
function GoFirst()
{
_sfMultiPage1.GoFirst();
DisableFirstSet();
document.getElementById("PageOptions").value=0;
}

function DisableFirstSet()
{
document.form1.btnFirst.disabled=true;
document.form1.btnPrevious.disabled=true;
document.form1.btnNext.disabled=false;
document.form1.btnLast.disabled=false;
}


Please refer the sample in the below link which illustrates the above:

http://www2.syncfusion.com/infrastructure/web/tools.web/samples/2.0/TabsPackage/Multipage/CoreFeatures/CS/CoreFeature.aspx

Please try this and let me know if this helps.

Thanks,
Melba




Loader.
Up arrow icon