Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
83 views
Hi,
Teleric Radgrid supports reordering grid columns on client side. I have a requirement like if i move a column from position m to n, then columns in m+1, m+2 should move to n+1 and n+2 positions automatically(through code).

can you please help me out how can we achieve this using the javascript methods provided.

I came to know that ColumnMovingToLeft and ColumnMovingToRight property javascript methods are invoked when we reorder a column.

Thanks in advance
Chaithanya Bhadri
Marin
Telerik team
 answered on 13 Oct 2011
1 answer
86 views
is possible that when you add a dynamically Radok not have to re-create existing ones, the postback does not affect existing
Slav
Telerik team
 answered on 13 Oct 2011
1 answer
204 views
Hi Guys,
       I am loading 800000 records in the radgrid with custom paging, it's throwing timeout error, How can i work Radgrid with large number(800000) of records, this is my requirement. but i can able to bind 200000 records in radgrid without any timeout or performance issue, so can anyone knows please suggest me  

These are the following steps i have tried in my code: (Kindly note this, this radgrid i am using with in sharepoint 2007 as well as 2010)
1. i am using custom paging and set the virtual item count is 800000 and set the pagesize is 50
2. i am storing 800000 records in viewstate, not binding all 800000 records in radgrid, i am binding just 50 records at the time of loading the radgrid
3. if i change the paging in the radgrid, based on the page index i am getting 50 records from viewstate and bind it in the radgrid (for ex: current pageindex is 5 means i took 201 to 250)
4. telerik support team tell, don't use the viewstate, so i am storing all 800000 records in property bag even though it's throwing time out error
          which is the best way to store all 800000 records and bind 50 records in RadGrid without performance issue, please tell me what i need to do?
Tsvetoslav
Telerik team
 answered on 13 Oct 2011
1 answer
76 views
Hello,

I'm having a problem with ClientEvents on a RadGrid being applied to all child grids contained within the parent grid.  I have a grid configured like this:

<telerik:RadGrid ID="myGrid" runat="server"
    AllowSorting="true" AutoGenerateColumns="false"
    AllowPaging="true" PageSize="50" Height="500">
     
    <MasterTableView>
        <Columns>
            <telerik:GridBoundColumn Visible="false" DataField="Id" UniqueName="Id" />
            <telerik:GridBoundColumn DataField="FirstName" HeaderText="First Name" UniqueName="FirstName" />
            <telerik:GridBoundColumn DataField="LastName" HeaderText="Last Name" UniqueName="Last Name" />
        </Columns>
        <EditFormSettings EditFormType="WebUserControl" UserControlName="~/EditForm.ascx" />
 
         
    </MasterTableView>
     
     <ClientSettings EnableRowHoverStyle="true">
        <Scrolling UseStaticHeaders="True" AllowScroll="True" />
        <ClientEvents OnRowDblClick="editRow" />
    </ClientSettings>
</telerik:RadGrid>

The editRow function is as follows:

function editRow(sender, eventArgs) {
    sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());
}

The grid functions beautifully and the edit form loads and submits successfully.  However, there is a secondary grid in the edit form (EditForm.ascx) which seems to be inheriting the ClientSettings from the parent grid, such that if you double click one of the rows inside the user control then editRow fires and the item being edited is changed (because get_itemIndexHierarchical returns the index of the item double clicked inside EditForm.ascx).

I've looked at the events and documentation, but do not see a way to clear the client settings on the child grids.  I can probably work around it by using a button for editing instead of the double click event, but the client specifically requested the double click.  Does anyone have an idea on how I can clear the client settings on the grid within the EditForm.ascx user control?  I really want to get rid of both the event handler and the hover style from the grids within EditForm.ascx.

Thanks in advance for any help!
Tsvetoslav
Telerik team
 answered on 13 Oct 2011
1 answer
109 views
Hello Support

I have an serious issue related to RadAjaxLoadingPanel which changes the URL in the address bar
On my page I have an RadAjaxLoadingPanel

<telerik:RadAjaxLoadingPanel ID="LoadingPanel1" Height="200px" Width="200px" runat="server"  Transparency="30">
       <table width="100%">
           <tr>
               <td width="100%" align="center" valign="top">
                   <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>'
                       style="border: 0px;" />
               </td>
           </tr>
       </table>
       </telerik:RadAjaxLoadingPanel>

When the code is executed, on this line the URL of my page changes to something like
http://localhost:50049/Web_App/
 
http://localhost:50049/Web_App/http://localhost:50049/Web_App/

http://localhost:50049/Web_App/(S(mq4cwf55cmht42ypwio5dhzu))/Login.aspx?ReturnUrl=%2fWeb_App%2fdefault.aspx
/Login.aspx?ReturnUrl=%2fWeb_App%2fdefault.aspx

Because of the second changed URL my none images are not loaded. It shows me cross mark(image not found error). The unkown directory name is not found my the application. (S(mq4cwf55cmht42ypwio5dhzu))
How to stop the url rewriting the zunk values from current scenario?

The zunk value is an sessionid is added in url by default how to prevent this?

Thanks
Vasil
Telerik team
 answered on 13 Oct 2011
1 answer
115 views
We use RadGrid with AllowMultiRowEdit and AllowAutomaticUpdates properties set to true.  When we edit muliple records and click Update All, not all of the edited contents are persisted to the database.  Only a subset of the edited records get updated in the database.

We use ASP:SQLDataSource to update the database.
Shinu
Top achievements
Rank 2
 answered on 13 Oct 2011
1 answer
154 views
Hi,
I have a RadGrid with different columns and has filter for each columns. I do not want to show all the filter functions. I want hide some filter function based on the datatype. How do I do this. Considering the below example http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/filtering/defaultcs.aspx,

Thanks,
Raji
Princy
Top achievements
Rank 2
 answered on 13 Oct 2011
3 answers
182 views
I have a RadWindow which shows results in Radgrid. I need to pass back the selected row values from the Grid back to the Parent page. How can I do this? If it is not possible what is the best way to achieve this? I have to close the modal window and fill the parent page text fields after clicking on the grid row. Any input is appreciated.
Stuart Hemming
Top achievements
Rank 2
 answered on 12 Oct 2011
2 answers
92 views
Hi,

How do you select or check multiple items?

I am building an application where there will be a standard "view" item in the menu. Then based on which child items are selected I show/hide various columns in a RadGrid. However, I can't seem to select more that one menu item at a time.

Any suggestions?

Jeff
Jeff Paetkau
Top achievements
Rank 1
 answered on 12 Oct 2011
2 answers
76 views
Consider the following code:

<telerik:RadRibbonBar ID="Menu" runat="server" OnButtonToggle="ButtonToggle" />

private void Page_Load(object sender, System.EventArgs e)
{
    if (!IsPostBack)
    {
        String Menu_XML = new XElement("RibbonBar"
                , new XElement("Tab", new XAttribute("Text", "View")
                    , new XElement("Group", new XAttribute("Text", "Columns")
                        , new XElement("ToggleButton", new XAttribute("Text", "test"))))).ToString();
        Menu.LoadXml(Menu_XML);
    }
}
 
protected void ButtonToggle(object sender, System.EventArgs e)
{
}

Produces the following error when you toggle the button

Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: indexProduces the following error when you toggle the button


However, the following code works as expected:

<telerik:RadRibbonBar ID="Menu" runat="server" OnButtonToggle="ButtonToggle">
    <telerik:RibbonBarTab Text="View">
        <telerik:RibbonBarGroup Text="Columns">
            <Items>
                <telerik:RibbonBarToggleButton Text="Test" />
            </Items>
        </telerik:RibbonBarGroup>
    </telerik:RibbonBarTab>
</telerik:RadRibbonBar>

What am I doing wrong?
Jeff Paetkau
Top achievements
Rank 1
 answered on 12 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?