I am currently using a RadGrid to display a list of events and documents. One of the columns in the grid is called "Action" with a few links in it (a link to the document, a link to a 3rd party annotation tool, etc). The user wants the ability to rename the document (using the grid's edit functionality) but wants the "Rename" link to be in the Action column instead of it's own column. How do I add a GridEditCommandColumn-like action to another column or add other columns to the GridEditCommandColumn.
<telerik:GridTemplateColumn HeaderText="Actions" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"> <ItemTemplate> <asp:HyperLink runat="server" Target="_blank" ID="ViewLink" Text="View" NavigateUrl="/ViewCaseDoc.aspx?" /> <asp:LinkButton runat="server" ID="AnnotationOpenLink" Text="Annotate" /> <%-- I want this action here <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" EditText="Rename"></telerik:GridEditCommandColumn> --%> </ItemTemplate></telerik:GridTemplateColumn>
Hi,
I am using the Maskedtextbox for user input of a mac address, I am using the following code which works fine. It displays "00-00-00-00-00-00" on initial load and only accepts characters 0-9 and A-F
<telerik:RadMaskedTextBox RenderMode="Lightweight" ID="RadMaskedTextBox3" runat="server" Mask="<0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F><0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F>-<0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F><0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F>-<0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F><0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F>-<0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F><0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F>-<0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F><0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F>-<0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F><0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F>"></telerik:RadMaskedTextBox>
The issue arises when I press the backspace to delete, all that happens is the cursor moves back but does not reset the character back to the initial mask value which is what I would expect to happen.
How can I achieve this.
Chris
Hi,
I am using the Maskedtextbox for user input of a mac address, I am using the following code which works fine. It displays "00-00-00-00-00-00" on initial load and only accepts characters 0-9 and A-F
<telerik:RadMaskedTextBox RenderMode="Lightweight" ID="RadMaskedTextBox3" runat="server" Mask="<0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F><0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F>-<0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F><0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F>-<0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F><0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F>-<0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F><0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F>-<0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F><0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F>-<0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F><0|1|2|3|4|5|6|7|8|9|A|B|C|D|E|F>"></telerik:RadMaskedTextBox>
The issue arises when I press the backspace to delete, all that happens is the cursor moves back but does not reset the character back to the initial mask value which is what I would expect to happen.
How can I achieve this.
Chris
Is there a way I could add a value with the legends labels?
Client or Server side
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??