Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
246 views
Hi all,
which control do you use for the Country Map on http://demos.telerik.com/aspnet-ajax/salesdashboard/default.aspx ?
Thanks!
Vasil
Telerik team
 answered on 13 Oct 2011
1 answer
170 views
Hi,

i have a radgrid with autogeneratedcolumns option as true. i disabled the viewstate for grid.  whenever a column reorder happens, i have to move some more columns.i am trying to move the extra columns through server side implementation. i am doing this in Prerender event of radgrid. The drag and drop column is moving to dropped position. However i am unable to move the extra columns. please help me out regarding this. i am trying for this for whole day but in vain :(

i made the following settings for my grid
EnableColumnsViewState="true"
AllowColumnsReorder="True",  ReorderColumnsOnClient="false"

grid PreRender code for moving the extra columns
protected void grdSummary_PreRender(object sender, EventArgs e)
{
//Holds the Unique names of columns to be moved
string[] extraColumns =new string(commasepratedColumnNames)
//column that was dragged and dropped
GridColumn mainColumnObject = grdSummary.MasterTableView.GetColumn("34");
                        index = mainColumnObject.OrderIndex;
                        foreach (string columnUniqueName in extraColumns)
                        {                            

                            grdSummary.MasterTableView.SwapColumns(columnUniqueName, mainColumnObject.UniqueName);                            
                        }
                        grdSummary.MasterTableView.Rebind();
}

Thanks,
Chaitanya
Tsvetoslav
Telerik team
 answered on 13 Oct 2011
1 answer
91 views
Hi Telerik Team,


         The problem is i have 7748 records and am using scrolling along with paging with size 100 .After am redirecting to next page using paging the scroll is not coming to the start position and it is residing in the end position for new paging.

Regards,
Sravan
Synfosys Business Solutions
Princy
Top achievements
Rank 2
 answered on 13 Oct 2011
1 answer
99 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
126 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
236 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
94 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
164 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
132 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
172 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
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?