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

I got a hierachy nested grid with a parent row, which have two nested expaned rows. During testing, I loaded 50 records to be binded to the parent row. I see that it binded all 50 parent records first. Afterwards, it starts calling the selecting method to get each of the 50 child records to bind the nested row. I have a following code and checekd the ObjectDataSourceSelectingEventArgs parameter but could not find a record index field on which parent record it is seeking to retrieve the record for binding to the grid. I noticed that for the nested row or the inner record, it calls the selecting and then it call the GetData(string sortColumns, int startRecord, int maxRecords) method for each of the 50 parent record.

Also, how can I pass around in the markup page, the UID that is the primary - foreign table key as the datakeynames. When the child record is called on the selecting method, maybe I can get the datakeyname value to do the fetch.

 

 

protected void Response_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)

 

{

 

 

int test = 0;

 

}

Why am I asking this question> ? The grid is loading for the first time, I need to know which child record is being requested for binding under the parent row. When I get the index, I will do another fetch from the IQueryable object to return a list object.

Any help is appreciated...

Antonio Stoilkov
Telerik team
 answered on 06 Dec 2012
3 answers
138 views
Where have the skin demos gone?  Using your online Quick Start demos, I don't see any skins under Appearance any more and some don't even have the Appearance section.  I used this almost daily to help choose a skin.  Any idea when it'll be back or can I find this resource somewhere else?
Ivan Zhekov
Telerik team
 answered on 06 Dec 2012
1 answer
43 views
How to make the last item in combobox selected which is binded with sqldatasource?
Shinu
Top achievements
Rank 2
 answered on 06 Dec 2012
3 answers
86 views
I have a problem when trying to localize some elements of editor in its webpart version. For some reason in the editor which replaces content editor, localization behaves as expected, but in the editor which is in the webpart (default telerik rad editor for sharepoint webpart), there are still english labels in the table wizard dropdown and Strip Css Formatting dropdown, while other things in the same editor are translated correctly. Please see attached images.

Regards

 Adam

Edit :

In addition I would like to mention that I have followed the telerik's official localization procedure via resource files, described in the help file.
Rumen
Telerik team
 answered on 06 Dec 2012
3 answers
121 views
I have a RadGrid with a popup editor to add new records and edit existing ones using the default settings.  This has 2 links, "Insert" and "Cancel"  (or "Update" and "Cancel").

I have been told that non-technical users may find the term "Insert" confusing and I would like to change the word "Insert" to a different word such as "Create".  Can this be done?

Also, can the position of the links be changed so they are aligned to the right of the popup instead of the left?

Thanks, Richard Jonas
Richard
Top achievements
Rank 1
 answered on 06 Dec 2012
1 answer
136 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
186 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
285 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
121 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
230 views
How to set header text to bold while exporting to PDF.
Radha
Top achievements
Rank 1
 answered on 06 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?