Hi,
In my code after ajax call i have to show dynamic error message thats why i am adding "riError" class.
$("#VersionTxt").addClass("riError");
Its successfully added to input text box. but when i hover my mouse on this textbox then red color of textbox and tool tip got removed and some "riEnabled" class append dynamically.
Please provide me the solution and how to show dynamuic error message.
Is there a way to access/set the oncheckchanged event in an autogenerated checkbox column and have it post back?
I have the following RadProgressArea declaration:
<telerik:RadProgressArea ID="rpaProcessFile"
runat="server"
Width="100%"
Skin="Office2010Blue"
displaycancelbutton="False"
progressindicators="FilesCountBar, FilesCount, FilesCountPercent, CurrentFileName, SelectedFilesCount "
/>
In codebehind, I am trying to set the SecondaryTotals label using:
rpaProcessFile.Localization.TotalFiles = "Total Approved Bonuses:"
However, as you can see in the attached screenshot, it is still showing the default "Total Files:"
<telerik:RadComboBox ID="RadComboBox1" runat="server" DataTextField="Name" DataValueField="ActTypeNo" |
OnClientSelectedIndexChanged="OnClientSelectedIndexChanged" > |
<ItemTemplate> |
<table> |
<tr> |
<td style="width: 200px;"> |
<asp:Label ID="ChaufName" runat="server" EnableViewState="false" Text='<%#DataBinder.Eval(Container.DataItem, "Name")%>'></asp:Label> |
</td> |
<td style="display:none;"> |
<asp:Label ID="ChaufGr1" runat="server" EnableViewState="false" Text='<%#DataBinder.Eval(Container.DataItem, "Gr1")%>'></asp:Label> |
</td> |
<td style="display:none;"> |
<asp:Label ID="ChaufGr2" runat="server" EnableViewState="false" Text='<%#DataBinder.Eval(Container.DataItem, "Gr2")%>'></asp:Label> |
</td> |
</tr> |
</table> |
</ItemTemplate> |
</telerik:RadComboBox> |
function OnClientSelectedIndexChanged(sender, args) { |
//get values |
//set selected value of other combos - i know how to do this |
} |
I want to know how to add custom css class into server side control. Let's say I want to create a navigation like stackoverflow. For this I am using Telerik's radmenu control. Now here is the problem
Please find attached file 1.png
As in RadMenu I cannot specify class -list or -item.<
telerik:RadMenu
runat
=
"server"
ID
=
"rm_menu_e2c"
CssClass
=
"HowToAddHere"
></
telerik:RadMenu
>
Does somebody know how to change RadTabStrip's RadTab hover color?
I use the method as below, but do not work.
<style type="text/css">
.selectedTab {
background-position: 0 -26px;
font-weight: bold;
font-size: 13px;
color: lightgreen;
text-emphasis-color: lightgreen;
}
.hoveredTab {
background-position: 0 -26px;
font-weight: bold;
font-size: 13px;
color: Highlight;
text-emphasis-color: Highlight;
}
</style>
<telerik:RadTabStrip RenderMode="Lightweight" runat="server" ID="RadTabStripMenu" MultiPageID="RadMultiPageMenu" SelectedIndex="0" OnTabClick="RadTabStripMenu_TabClick">
<Tabs>
<telerik:RadTab Font-Size="Medium" CssClass="TabItem" SelectedCssClass="selectedTab" HoveredCssClass="hoveredTab" Text="AAA"></telerik:RadTab>
<telerik:RadTab Font-Size="Medium" CssClass="TabItem" SelectedCssClass="selectedTab" HoveredCssClass="hoveredTab" Text="BBB"></telerik:RadTab>
<telerik:RadTab Font-Size="Medium" CssClass="TabItem" SelectedCssClass="selectedTab"
</Tabs>
</telerik:RadTabStrip>
Hello,
I'm attempting to use a RadDatePicker to feed into a query using a ControlParameter linked to it. The very of adding it in causes the grid to not render even if I don't use the parameter in the query itself. If add a default value to the RadDatePicker it seems to work fine so something is going on when it is trying to pass the default value (i assume null) and map it to the parameter.
Example code:
<
telerik:RadDatePicker
ID
=
"Record_Date"
MinDate
=
"1900-01-01"
runat
=
"server"
CssClass
=
"birtForm"
AutoPostBack
=
"True"
Width
=
"200px"
DataTextField
=
"Record_Date"
DataValueField
=
"Record_Date"
>
</
telerik:RadDatePicker
>
<
asp:ControlParameter
Name
=
"Record_Date"
PropertyName
=
"SelectedDate"
ControlID
=
"Record_Date"
></
asp:ControlParameter
>
Is there a solution to this?
Thanks
Hi,
I am using RadTreeList and have data source with hierarchical data.
Data binding is done in NeedDataSource event handler.
Code example:
<telerik:RadTreeList RenderMode="Lightweight" ID="TreeListTrendsList" runat="server"
ParentDataKeyNames="DIM_LIST_ID_PARENT" DataKeyNames="DIM_LIST_ID" AllowPaging="true"
AutoGenerateColumns="false" AllowSorting="true" ExpandCollapseMode="Client" PageSize="150"
OnItemDataBound="TreeListTrendsList_ItemDataBound" OnNeedDataSource="TreeListTrendsList_NeedDataSource">
So, the DataKeyNames=DIM_LIST_ID and ParentDataKeyNames=DIM_LIST_ID_PARENT. Data source has ~100 records with DIM_LIST_ID_PARENT=0 and I expected to see them as top level nodes, but for some reason I see only single parent node (with DIM_LIST_ID_PARENT=0, DIM_LIST_ID=1).
Could somebody please suggest how to achieve the required behavior?
Hi
im using a RadComboBox with ItemTemplate like below:
<telerik:RadComboBox ID="RadComboBoxPart" runat="server" Width="251px"
DropDownWidth="540" DataSourceID="sqlParts" EmptyMessage="Choose Your Part ..." HighlightTemplatedItems="true"
MarkFirstMatch="true" EnableLoadOnDemand="true" Filter="Contains"
AutoCompleteSeparator="|"
Culture="fa-IR" LoadingMessage="Please Wait!" RenderMode="Mobile"
Sort="Ascending" OnItemDataBound="RadVehicle_ItemDataBound" OnItemsRequested="Radpart_ItemsRequested">
<HeaderTemplate>
<table style="width: 360px;">
<tr>
<td style="width: 280px;">PartName </td>
<td style="width: 80px;">PartCode </td>
</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<table style="width:360px">
<tr>
<td style="width: 280px;">
<asp:Label ID="Label10" runat="server" Text='<%# Bind("PartName") %>'></asp:Label>
</td>
<td style="width: 80px;">
<asp:Label ID="Label11" runat="server" Text='<%# Bind("PartCode") %>'></asp:Label>
</td>
</tr>
</table>
</ItemTemplate>
</telerik:RadComboBox>
and for DataSource i'v got this:
<asp:SqlDataSource ID="sqlParts" runat="server"
ConnectionString="<%$ ConnectionStrings:Gsgdb_tempConnectionString %>"
SelectCommand="select * from dbo.ActiveParts ></asp:SqlDataSource>
and in Code Behind for ItemDataBound Event i'v got this:
protected void RadComboBoxPart_ItemDataBound(object sender, Telerik.Web.UI.RadComboBoxItemEventArgs e)
{
e.Item.Text = ((DataRowView)e.Item.DataItem)["PartName"].ToString();
e.Item.Value = ((DataRowView)e.Item.DataItem)["ID"].ToString();
}
its work fine for me !
but it's taking too long to load in clintside
what am i doing wrong? any help would be appreciated.