Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
178 views
Hi 

I am trying to using the telerik library to do a http request to my web api which return a JSON.

I am not having any result neither and error.

This my code could somebody help me to see what I am missing.

Thank you in advance

    <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
           <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
         </Scripts>
        </telerik:RadScriptManager>

   function GetApiRequest() {
                    alert(' Beging GetApiRequest');//TEST
                    var jsonResponse = null;
                    $telerik.$.ajax({
                        type: "GET", // HTTP method
                        url: 'http://localhost:3537/api/ipfiltervalues/1?displayFieldID=2', // URL
                        contentType: "application/json; charset=utf-8", //request the result to be in JSON
                        dataType: "json",
                        success: function (result) { //callback method to invoke when the request is complete
                            alert(result);
                            jsonResponse = result;
                        },
                        Error: function (x, y, z) {
                            alert(x + '\n' + u + '\n' + z);
                        }
                    });

                    alert('End GetApiRequest' + jsonResponse);//TEST
                }
Maria Ilieva
Telerik team
 answered on 06 Dec 2012
7 answers
250 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
433 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
176 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
305 views
How to set header text to bold while exporting to PDF.
Radha
Top achievements
Rank 1
 answered on 06 Dec 2012
5 answers
205 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
173 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
154 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
137 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
406 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?