Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
189 views
Hi,

I have a rad grid that I create on server-side.
I use paging with virtual item count, and I load data on demand (every time the page index changes, I load the relevant rows, so my grid contains every time number of rows = page size).


I  added 2 buttons, prev and next, that iterates over my grid rows.
It works fine on the first page, but when I want to change the page and select the first item, the page index doesn't change.

Here is my code:

MasterTable.clearSelectedItems();

MasterTable.set_currentPageIndex(NextPageIndex,

true);

MasterTable.rebind();

MasterTable.selectItem(0);

set_currentPageIndex, doesn't make the function

GridReport_PageIndexChanged
to be fired.

 

The rebind calls need data source and there I check the pageIndex, and I get the index before the change..

Do you have any idea what am I doing wrong?
How can I change the page index using java script?

Thanks.


Marin
Telerik team
 answered on 06 Dec 2012
3 answers
294 views
is there a way to set the editmode= design but still allow the resize to the user?  when I set the edit mode to "design" only, the users can't resize the editor.
Larry
Top achievements
Rank 1
 answered on 06 Dec 2012
1 answer
129 views
i have **GridView** have one column is **CheckBoxList(Mon, Tues, Wed, Thur, Fri, Sat, Sun)**



Data for selected Week:

 - "1101000" mean (Mon, Tues, Thur is selected)  
 - "1000000" mean (Mon is selected)  
 - "0100000" mean (Tues is selected)

Below is use to identify the selected item

                Boolean isMonday = false;
                Boolean isTuesday = false;
                Boolean isWednesday = false;
                Boolean isThursday = false;
                Boolean isFriday = false;
                Boolean isSaturday = false;
                Boolean isSunday = false;

                if (alertDayInt >= 1000000)
                {
                    isMonday = true;
                    alertDayInt -= 1000000;
                }
                else if (alertDayInt >= 100000)
                {
                    isTuesday = true;
                    alertDayInt -= 100000;
                }
                else if (alertDayInt >= 10000)
                {
                    isWednesday = true;
                    alertDayInt -= 10000;
                }
                else if (alertDayInt >= 1000)
                {
                    isThursday = true;
                    alertDayInt -= 1000;
                }
                else if (alertDayInt >= 100)
                {
                    isFriday = true;
                    alertDayInt -= 100;
                }
                else if (alertDayInt >= 10)
                {
                    isSaturday = true;
                    alertDayInt -= 10;
                }
                else if (alertDayInt >= 1)
                {
                    isSunday = true;
                    alertDayInt -= 1;
                }
Tan
Top achievements
Rank 1
 answered on 06 Dec 2012
5 answers
236 views
How to set header text to bold while exporting to PDF.
Radha
Top achievements
Rank 1
 answered on 06 Dec 2012
5 answers
146 views
Please help me how to set styles like text-alignment,font-family,font-size etc.. for group by fields while exporting to PDF from RAD GRID.
Radha
Top achievements
Rank 1
 answered on 06 Dec 2012
6 answers
148 views
Hi,

We are using telerik radgrid inside a user control.Inside radajaxmanager_ajaxrequest we are binding the values for the Telerik grid.
But the issue is,we are not able to see the grid inside radajaxmanager_ajaxrequest but we are getting inside page load.But the ajaxloadingpanel is loaded properly.

is that anything specific for user control when comes to AJAX?

Appreciate the quick response to this.
Eyup
Telerik team
 answered on 06 Dec 2012
1 answer
115 views
Hi,
you can have a scheduler in asp net timeline grouping as there is in winform?
I have to create a schedule of rooms in a hotel.
If you can do you can tell me where I can see some examples?

thanks
Princy
Top achievements
Rank 2
 answered on 06 Dec 2012
1 answer
107 views
How to validate Height and Width of selected File in RadAsyncUpload at Client end only?
Kate
Telerik team
 answered on 06 Dec 2012
12 answers
310 views
I read this page, and I wrote the program.
But "args.get_progressData().RadUpload.RequestSize" is undefined.
Please teach the correction method.

<rad:RadScriptManager ID="RadScriptManager1" runat="server">  
</rad:RadScriptManager> 
 
<script type="text/javascript" > 
    if (!progressArea.confirmed &&  
       args.get_progressData().RadUpload.RequestSize > 1000000)  
   {  
     if (confirm("The total size of the selected files" +  
                 " is more than the limit." +  
                 " Do you want to cancel the upload?"))  
     {  
        progressArea.cancelRequest();  
     }  
     else  
     {  
        progressArea.confirmed = "confirmed";  
     }  
   }  
</script> 
 
<rad:RadProgressManager ID="RadProgressManager1" runat="server" /> 
<rad:RadUpload ID="rupDocTempFile" runat="server" Skin="Telerik"></rad:RadUpload> 
<rad:RadProgressArea ID="RadProgressArea1" runat="server" OnClientProgressUpdating="checkUploadedFilesSize">  
</rad:RadProgressArea> 
 
<asp:Button ID="btnSave" runat="server" Text="SAVE" OnClick="btnSave_Click" AccessKey="v" ToolTip="Save(v)" /> 
Plamen
Telerik team
 answered on 06 Dec 2012
2 answers
103 views
Hello,

I am using radgrid,
I want creat edit popup form (EditFormSettings) dynamically in aspx.cs, not at design time in aspx.
My datasource is dynamic.I am created columns at runtime.

Please suggest me any solution.

Regards,
Amit.
Eyup
Telerik team
 answered on 06 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?