Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
71 views
Hello,

I think that it would be very helpful to have a .Reorder method for the RadGrid to enable column reordering on the server side. I know that there is a .SwapColumns method, but this doesn't provide the functionality desired, unless you loop through all of the columns and add swap the column position with every column until the column you want is at the end.

If I have a RadGrid with AutoGenerateColumns, and I have a TemplateColumn I want to display at the beginning of the RadGrid, and another TemplateColumn I want to display at the end, I have to add both columns to the RadGrid in the page load, and then in the PreRender I have to use the SwapColumns method to swap the column with each column next to it, until it is at the end. It would be so much easier if there was a .Reorder method where I could just pass the index of the column I want to move, and the new index where I want to column to move to.

Something like the following: 
RadGrid1.MasterTableView.Reorder(RadGrid1.MasterTableView.GetColumnSafe("TemplateCol2").OrderIndex,
 RadGrid1.MasterTableView.RenderColumns.Length - 1);

I would think that this would be more practical than using the SwapColumns method, since SwapColumns would just switch the TemplateCol2 column with whatever column was the last column of the RadGrid.

Thanks!
Casey
Casey
Top achievements
Rank 1
 asked on 22 Jun 2012
1 answer
72 views

In previous version, RadGrid's BoundColumn could be accessed by

 

For Each rowItem As GridDataItem In rgNewTemplate.Items

RouteID = rowItem(

"RouteID").Text

 

Next

 

<rad:GridBoundColumn DataField="LID" UniqueName="LID" Visible="False" ReadOnly="true">

</rad:GridBoundColumn>

But in 2011.1.315.35 version. Its not working.

 

Pavlina
Telerik team
 answered on 22 Jun 2012
3 answers
103 views
How can these images be changed?  They used to be an x and a check box in older versions (a lot better) but are now just circles which causes accessibility issues for color blind users... how can we change the images to something else?  I can't find a property and can't seem to overwrite the css.

Thanks in advance,
MS
MS
Top achievements
Rank 1
 answered on 22 Jun 2012
7 answers
264 views
This message is for Princy,


I trid to repley
http://www.telerik.com/community/forums/aspnet-ajax/grid/extra-line-on-radgrid-header.aspx

But system error not allow me to submit.

Princy,

I treid below, while Scrolling AllowScroll="true" UseStaticHeaders="true" , when use

 

EnableHeaderContextMenu="true"  and hide columns, still leave white space at the end of the column although I used onColumnHidden javascript.

<ClientSettings>onColumnHidden
        <ClientEvents OnColumnHidden="onColumnHidden" />
        <Scrolling AllowScroll="true" UseStaticHeaders="true" />
</ClientSettings>

If you have a working sample for the situation Scrolling AllowScroll="true" UseStaticHeaders="true", can you send it to me?

Thanks
Pavlina
Telerik team
 answered on 22 Jun 2012
2 answers
77 views
Hi,
I'm using rad grid for displaying data, when I click on View button with commandName="view",
my grid is moving to previous page.
If Grid page is 1 view command is working, 
If Grid page is 2 and view command is clicked grid is moving to previous page.
Once please look into the Issue, ASAP -

Regards
Phaneendra
Phaneendra
Top achievements
Rank 1
 answered on 22 Jun 2012
11 answers
329 views
I've tried using this event on a grid with autogenerated columns but to no avail.

I've seen a number of posts here suggesting that a number of people have tried the same thing with little success.

I've also seen a vague reference to this event only firing if the if certain information about the column is unknown.

Could some one:
1. Explain precisely what the conditions need to be for this event to fire;
2. Arrange to have the response to (1) added to the relevant entry in the docs.

TVM.

--
Stuart
Antonio Stoilkov
Telerik team
 answered on 22 Jun 2012
4 answers
177 views
Hi;

I am trying to make a simple "Choose your language" page that has a radcombobox. In my page I only have a image and a radcombobox with language options. 

When I refresh the page radcomcobox turns into a textbox and a select text next to it. 
I am also using IIS URL Rewrite tool. But the page that has the combobox does not have any rewrite rule at all.

When I disable the rewrite rules it turns normal and when I able them it stops working again.

I hope my english is enough.

Thanks for your help.
Walter
Top achievements
Rank 2
 answered on 22 Jun 2012
1 answer
33 views
I have a client that has requested adding an editable note field to an existing grid. The issue being the size of their screens - they have already got too many columns and have suggested that the notes field be displayed on a seperate line below the existing columns.
So that for each record there would be a series of columns and then below that an editable notes field that be the same width as all the columns above it.

Is this possible??
Eyup
Telerik team
 answered on 22 Jun 2012
3 answers
314 views
I am working on a project that involves thousands of entries, so that when the Grid loads the Pager text in the lower right corner might display something like "Entries 1 to 20 of 10000000."  Is it possible to add comma separators to those numbers to make them more readable, such as "10,000,000" instead of "10000000"?  I have seen methods of introducing commas within the C# code, but in this case I am using something like PagerTextFormat="{4} Entries {2} to {3} of {5}" which appears to be sent through a hidden String.Format before displaying.  If there isn't a built-in way to set the comma formatting, is it possible to access the text after the values have been inserted into the {2}, {3}, and {5}, in order to insert commas?
Thank you!
Eyup
Telerik team
 answered on 22 Jun 2012
1 answer
93 views
Hi,

I add the rad scenario Schedule Default Advanced Form Template and click run my project, the example does not work, the code presents javascript errors.
Error: $("#" + validator.controltovalidate + "_dateInput_text").bind("focus",
{toolTip: toolTip}, this._showToolTip).bind("blur", {toolTip: toolTip},
this._hideToolTip)[0] is undefined<BR><A href="http://localhost:36656/XXXX/AdvancedForm.js">http://localhost:36656/XXXX/AdvancedForm.js</A><BR>Línea:
631

After that, the Advanced form appears, but when I click Cancel the form never closes. I have to stop the application. I need help with that.

Thks.




Plamen
Telerik team
 answered on 22 Jun 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?