Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
1.4K+ views

Is it possible to show a sort icon on columns when the grid initially loads even though the grid has not been sorted yet. I want to show   sort icons in all columns at first time.Please help

Tiju
David
Top achievements
Rank 1
 answered on 02 Nov 2017
0 answers
77 views

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.

DownTown
Top achievements
Rank 1
 asked on 02 Nov 2017
2 answers
78 views

Is there a way to access/set the oncheckchanged event in an autogenerated checkbox column and have it post back?

 

 

Joel
Top achievements
Rank 2
 answered on 02 Nov 2017
1 answer
236 views

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:"

 

Rumen
Telerik team
 answered on 02 Nov 2017
4 answers
416 views
Hi,
I have a combobox, that when changed, should change the selected value of 2 other comboboxed based on the selection.

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

My goal is to get the values of "ChaufGr1" and "ChaufGr2" in a javascript function:
function OnClientSelectedIndexChanged(sender, args) { 
                //get values 
               
                //set selected value of other combos - i know how to do this 
            } 

I have searched the documentation and forums, but i couldn't find anything exactly like this. 
Can you point me in the right direction?
Aruldoss
Top achievements
Rank 1
 answered on 02 Nov 2017
0 answers
70 views

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>

But I have to inject the style to get result. How can I achieve this ?
Suvankar
Top achievements
Rank 1
 asked on 02 Nov 2017
0 answers
244 views

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>

章民
Top achievements
Rank 1
 asked on 02 Nov 2017
1 answer
125 views

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

Eyup
Telerik team
 answered on 01 Nov 2017
2 answers
97 views

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?

 

 

 

 

Oleksii
Top achievements
Rank 1
 answered on 01 Nov 2017
2 answers
341 views

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.

Mohammad
Top achievements
Rank 1
 answered on 31 Oct 2017
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?