Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
313 views
I am using the client side binding with Jquery and seeing that the paging is not working.
Is this a known issue?  IE version I am testing this on is 8.0.6001

Please see the image attached. Even though the page size is 10. All records are shown on each page.
Is there something I am missing. I downloaded the example from Telerik RadGrid client-side data-binding using jQuery
and just ran it.

Any help is appreciated.

Thanks,
Madhu
Jayesh Goyani
Top achievements
Rank 2
 answered on 12 Nov 2012
0 answers
109 views
Hello,
     I am getting error in Radscheduler when i click in the export button.
    I also attach error file.

Please help me as soon as possible.

Thanks

Best Regards,
Jiten Mutum
Jiten
Top achievements
Rank 1
 asked on 12 Nov 2012
2 answers
117 views
Hello!

I am trying to bind a hierarchial using a web service. I've read that this is not natively supported by the RadGrid, but I'm hoping it's still possible to do it. I have previously bound the grid server-side to a hierarchial source and that worked fine.

Attached is my project in its current state. I am able to get the first level of data bound in the grid, but the second level is however lost. I am guessing this has something to do with the OnDetailTabelDataBind server-side event which I used to attach the detail data to the parent data, but it is no longer firing because I am using client-side binding.

Can anyone help me out here? I am guessing I will have to manually assign each detail row to the corresponding detail data that's available in the grid's source, but I am not sure. I'm thinking, since I have all the data available (I fetch all data once - I don't want to ask the server for the details data once the row is expanded), would it be possible to do something in the OnRowDataBound client event? Maybe iterate through all detail items and manually bind them to detail rows?

Below is my code. If anyone's able to have a look I'd be grateful.

Thanks in advance.

<telerik:RadGrid runat="server" AutoGenerateColumns="false"
           ID="RadGrid1" OnDetailTableDataBind="RadGrid1_DetailTableDataBind"
           Skin="Default">
           <ClientSettings>
               <DataBinding Location="WebService.asmx"
                   SelectMethod="TestGetData" ShowEmptyRowsOnLoad="false" />
           </ClientSettings>
           <MasterTableView DataKeyNames="" HierarchyLoadMode="Client">
               <Columns>
                   <telerik:GridBoundColumn UniqueName="Name" DataField="Name" HeaderText="Name"></telerik:GridBoundColumn>
                   <telerik:GridBoundColumn UniqueName="ArticleNumber" DataField="ArticleNumber" HeaderText="Article Number"></telerik:GridBoundColumn>
                   <telerik:GridBoundColumn UniqueName="SerialNumber" DataField="SerialNumber" HeaderText="Serial Number"></telerik:GridBoundColumn>
               </Columns>
               <DetailTables>
                   <telerik:GridTableView Name="Details" runat="server" AutoGenerateColumns="false">
                       <Columns>
                           <telerik:GridBoundColumn UniqueName="Name" DataField="MockData.Name" HeaderText="Name"></telerik:GridBoundColumn>
                           <telerik:GridBoundColumn UniqueName="OS" DataField="MockData.OS" HeaderText="Operating System"></telerik:GridBoundColumn>
                       </Columns>
                   </telerik:GridTableView>
               </DetailTables>
           </MasterTableView>
       </telerik:RadGrid>

My web service:

[WebMethod(true)]
public List<MockData> TestGetData()
{
    return GetInventoryData(new Random(DateTime.Now.Second));
}
 
private List<MockData> GetInventoryData(Random random)
{
 
    var list = new List<MockData>();
 
    for (int i = 0; i < 10; i++)
    {
        var mock = new MockData();
        mock.Name = "VC";
        mock.OS = "Ldd";
        mock.ArticleNumber = "123456";
        mock.SerialNumber = "654321";
        mock.Revision = "J";
        mock.ID = i;
        mock.parentID = null;
 
        var details = new List<DetailedMockData>();
 
        for (int j = 0; j < random.Next(0, 4); j++)
        {
            var mock2 = new DetailedMockData();
            mock2.MockData = new MockData();
            mock2.Test = "Hej Hej";
            mock2.MockData.Name = "dfd";
            mock2.MockData.OS = "Lff";
            mock2.MockData.ID = j + 100;
            mock2.MockData.parentID = mock.ID;
            details.Add(mock2);
        }
 
        mock.Details = details;
 
        list.Add(mock);
    }
 
    return list;
}

[Serializable]
public class MockData
{
    public string Name { get; set; }
    public string OS { get; set; }
    public string ArticleNumber { get; set; }
    public string SerialNumber { get; set; }
    public string Hardware { get; set; }
    public string Software { get; set; }
    public string Revision { get; set; }
    public int ID { get; set; }
    public int? parentID { get; set; }
 
    public List<DetailedMockData> Details { get; set; }
}
 
[Serializable]
public class DetailedMockData
{
    public string Test { get; set; }
 
    public MockData MockData { get; set; }
}


Shinu
Top achievements
Rank 2
 answered on 12 Nov 2012
1 answer
133 views
Hi,
I am using Radeditor, to retrieve the Content value of radeditor i make use of .get_html(true), when Postback occurs it generates the following error
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

Thanks
Princy
Top achievements
Rank 2
 answered on 12 Nov 2012
1 answer
111 views
Hi,
when I right to left radgrid that it's column resize is enabled ,the column resize dont work correctly and the handlers work inverse
I mean when I drag handler to left side to expand grid column the column small 
Tanx
Omid
Top achievements
Rank 1
 answered on 11 Nov 2012
1 answer
130 views
Hi,

I have a RadCombobox on the page with checkboxes in it. This is to achieve multiple selection in my combobox. Depending on what the user selects i need to populate another combobox.
My issue is OnItemChecked event fires for every single selection. User would definitely not like this. I want the user to be able to finish all his selections and then fire an event to populate another combobox. Is there a solution for this?

Thanks.
Jayesh Goyani
Top achievements
Rank 2
 answered on 10 Nov 2012
6 answers
134 views
Hello,
I am developing one application in which I want to fire some client side script after Telerik grid completes execution of export event. I am storing exported file on "GridExporting" event. It saves exported file on server successfully but fails to execute "ScriptManager.RegisterStartupScript", I am working with Ajax environment. So now I want to know that is it possible to execute some client side script after export completes successfully?

Please help.


Thanks,
Anvesh
Anvesh
Top achievements
Rank 1
 answered on 10 Nov 2012
1 answer
217 views

Hello,

I’ve gotten a “Telerik” license recently and I’ve been working the last months without problem. However, when the computer does not have internet connection, some errors occur suddenly.  Because of that, I have the following questions:

-          Does “Telerik” need internet connection to work correctly?

-          Am I doing something wrong?

I was wondering if I’ve done a bad installation of “Telerik” or, perhaps, something is missing.

To be more specific, I am using the following components:

  1. RadGrid - Telerik's ASP.NET Grid

Error:

Failed to load resource https://d2i2wahzwrm1n5.cloudfront.net/ajaxz/2012.2.607/Common/Navigation/OData/OData.js

Uncaught TypeError: Cannot set property 'scriptsFailed' of undefined Telerik.Web.UI.WebResource.axd:9

GET https://d2i2wahzwrm1n5.cloudfront.net/ajaxz/2012.2.607/Common/Navigation/OData/OData.js  Telerik.Web.UI.WebResource.axd:9

Uncaught TypeError: Cannot set property 'scriptsFailed' of undefined Telerik.Web.UI.WebResource.axd:9
 2. RadWindow - Telerik's ASP.NET Window

Error:

Failed to load resource http://aspnet-scripts.telerikstatic.com/ajaxz/2012.2.607/Common/Navigation/NavigationScripts.js

Uncaught ReferenceError: Telerik is not defined

 

I wish you could help with this problem and I would appreciate your help.

Thank you!!

Jayesh Goyani
Top achievements
Rank 2
 answered on 10 Nov 2012
1 answer
201 views
I have a column named OrgName.
I am trying to get the numbers or Rows that have unique ORGNAME.
if there are two rows which have orgNamr= "Mac" then it should count as 1. so only the UNique columns.
Jayesh Goyani
Top achievements
Rank 2
 answered on 10 Nov 2012
1 answer
76 views
hi,
I want to zoom out/ zoom in the image from server side. Any Server side method for zoom the image using telerik image editor.
Actually i zoom out/Zoom the image from client side.But i need to do the same thing from server side.
My code:
  function OnClientLoad(sender, args) {
            if (sender._imageKey) {
              var Width = sender.getEditableImage().get_width();
              var Height = sender.getEditableImage().get_height();
           
                if (!isNaN(Number(objhdnOriginalWidth)) && Number(objhdnOriginalWidth) != 0 && !isNaN(Number(objhdnOriginalHeight)) && Number(objhdnOriginalHeight) != 0) {
                    if (objhdnOriginalWidth > 1000 || objhdnOriginalHeight > 600) {
                        var widthPercentage = (1000 * 100) / objhdnOriginalWidth;
                        var heightPercentage = (600 * 100) / objhdnOriginalHeight;
                        widthPercentage = Math.floor(widthPercentage);
                        heightPercentage = Math.floor(heightPercentage);
                        if (heightPercentage > widthPercentage) {
                             sender.zoomImage(widthPercentage);
                        }
                        else {
                            sender.zoomImage(heightPercentage);
                        }
                    }
                }
    }

please help me.
Vessy
Telerik team
 answered on 09 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?