Hello,
I am trying to capture the order of columns headers after a user changes (re-orders) a column in the Grid. But so far I only seem to capture the original order.
I plan to store the order in the database, and when the grid is loaded re-order the columns for each user.
Here's a code snip that gets called after a user changes a column: (always gets original order)
string sVal = "";
GridColumnCollection cols = grid.MasterTableView.Columns;
GridColumn c;
string[] sOrder = new string[grid.Items[0].Cells.Count];
for (int i = 0; i < grid.Items[0].Cells.Count; i++)
{
sVal = grid.Items[0].Cells[i].ID.ToString();
c = cols.FindByUniqueNameSafe(sVal);
sOrder[i] = sVal + ":" + i.ToString();
}
How do I get the actual order of columns after they are changed by the user?

I have a grid with the following declaration. The grid is bound client-side. For some reason, I can't get the HyperlinkColumn to display its text centered. (see attached image). Any idea why?
<telerik:RadGrid id="rgCEE" runat="server" AutoGenerateColumns="False" Height="100%" Width="100%" AllowPaging="False" AllowSorting="False" EnableLinqExpressions="false" ShowStatusBar="False" style="border:0px;" > <MasterTableView DataKeyNames="EmployeeId" ClientDataKeyNames="EmployeeId" Width="100%" TableLayout="Fixed" HierarchyLoadMode="Client" CommandItemDisplay="None" > <Columns> <telerik:GridHyperlinkColumn UniqueName="SelectColumn" Text="Select" DataNavigateUrlFields="EmployeeId" DataNavigateUrlFormatString="javascript:SelectExistingEmployee_CO({0});" > <HeaderStyle Width="100px" HorizontalAlign="Center" /> <ItemStyle HorizontalAlign="Center" /> </telerik:GridHyperlinkColumn> <telerik:GridDateTimeColumn HeaderText="Born" DataField="BirthDate" DataType="System.DateTime" DataFormatString="{0:MM/dd/yy}"> <HeaderStyle width="80px" HorizontalAlign="Left" ></HeaderStyle> <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle"></ItemStyle> </telerik:GridDateTimeColumn> <telerik:GridTemplateColumn UniqueName="spacerCol"></telerik:GridTemplateColumn> </Columns> <CommandItemTemplate> </CommandItemTemplate> </MasterTableView> <ClientSettings AllowExpandCollapse="True" > <Selecting AllowRowSelect="False" EnableDragToSelectRows="False" /> <Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="100%" /> <Resizing AllowColumnResize="False" EnableRealTimeResize="True" ResizeGridOnColumnResize="True"/> <ClientEvents OnGridCreated="rgCEECreatedHandler_CO"/> </ClientSettings> </telerik:RadGrid>
Dear ALL
Please advise me.
My company use telerik tool. I have problem about Radchart.(ASP.NET)
1.How to set color of ChartSeriesItem. Now I can set little different but I need show very different.
2.How to set format value.Ex. 2,506,714.00 to 2,506,714
3.How to stretch YAxis.
Thank you verymuch.
Hi dear Telerik
i want to change default theme (overall shape) and appearance for wizard . is any way or online sample ?
I'm trying to use the Find dialog functionality but keep getting an error:
I created a new ASP.NET project. The RadEditorDialogs directory and files exist on the root of the project.
"Web.config registartation missing! The Telerik dialogs require a HttpHandler registration in the web.config file."
I did you we Smart Tag to add the handler but still not working.
The following is in the web.config:
System.web section
<httpHandlers>
<add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
<add path="Telerik.Web.UI.DialogHandler.axd" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
</httpHandlers>
System.webServer section
<handlers> <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
<add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" />
</handlers>
Any ideas??
I have RadScheduler which shows a TimelineView one day at a time. As its a hotel, they work until 03:00 in the next morning on the same shift.
This means on the TimeLineView, the "Date Header "shows "May 15-May 16" as dates by default for example, because of the 03:00 finish.
Its technically correct of course, but they have requested that I show only the start date to avoid confusion, so just "May 15"
Is there a 'hack' to stop the default timeline-view header showing the end date?
I found a very small glitch.
1. Toggle full screen
2. Finish AJAX spell checker
3. Then full screen icon is not selected even the editor is in full screen mode.
Hi,
I've looked around and tried the Style Builder as well but can't find what I'm looking for, which is the CSS to make the bottom border on the Bootstrap Tab Strip Skin extend all the way to the right instead of stooping after the last tab.
All help appreciated.
Cheers,
J