Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
158 views

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? 

Konstantin Dikov
Telerik team
 answered on 24 May 2016
1 answer
184 views

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>

Konstantin Dikov
Telerik team
 answered on 24 May 2016
0 answers
62 views

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.

Loki
Top achievements
Rank 1
 asked on 24 May 2016
1 answer
161 views

Hi dear Telerik

i want to change default theme (overall shape) and appearance for wizard . is any way or online sample ?

Magdalena
Telerik team
 answered on 24 May 2016
10 answers
626 views
   
 Hi,

I am using RadHTMLChart(Telerik dll version : 2013.2.717.35) in my application.Please provide me the solution for the following queries:

1.RadHtmlChart has the inbuilt functionality to enable or disable Series in the Legend.How to enable or disable Series in the Legend programatically?Is it possible to control the legend Items programatically for toggling the series?Please refer the screenshot legend click.png

2.How to display Series Name for Pie Chart.I know that only one series can be plotted in pie chart for now.Is there anyway to display series name in chart area so that the user will identify ,which series have been plotted for pie chart?

3.I have found that ClientTemplate property should be used to display one or more values in Label/ToolTip of BarSeries in one of the telerik link.Is there anyway to apply custom formats like ##,##.## or $### or MM/dd/YYYY or $##,##,##.#0 to the Label/ToolTip of BarSeries.I have tried with kendo.format method to apply custom formats.It did not work.Please provide me the solution to achieve it.

4.I am using datetime value(sorted in ascending order) as a input data for XAxis .In bar chart,I am able to see all the input datetime values in XAxis.But in ScatterSeries ,some of the input datetime data gets disppear in the XAxis ,but I can view those disapeared XAxis data in  Label/Tooltip of ScatterSeries.How to display all the input datetime data in XAxis of ScatterSeries chart? Please refer the screenshot barseries_datetime.jpg & scatterseries_datetime.jpg

Thanks in advance.Please reply me as soon as possible.
prateek
Top achievements
Rank 1
 answered on 24 May 2016
1 answer
131 views

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??

CEAN
Top achievements
Rank 1
 answered on 23 May 2016
1 answer
189 views

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?

Veselin Tsvetanov
Telerik team
 answered on 23 May 2016
1 answer
41 views

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.

Ivan Zhekov
Telerik team
 answered on 23 May 2016
4 answers
1.5K+ views
Hi,

We have a treeView which has multiple levels. Hence to make it easy for the users , we have put a search box to search for a particular text in the TreeView.

How do we find the text in the tree view? Otherwise,  how to bind the data in the tree to the search box and highlight the matching texts.

Thanks,
Sudha.
Shree
Top achievements
Rank 1
 answered on 23 May 2016
1 answer
193 views

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

 

 

Ivan Zhekov
Telerik team
 answered on 23 May 2016
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?