Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
139 views
Hi,
I am using radcombobox having item templates. The data to the radcombo is binded at client side. The itemtemplate consists of div.
when the dropdown is expanded, the list items looks like <<Account Numbe>>r <<AccountName>>.  When I select any of the value  from the dropdown, text would appear as Account Number Account Name. I wanted to displaye only Account Number, So I modified the data in OnclientselectedIndex changed event. This works fine.

When i use keyboard to move through the items, Account Number Account Name is displayed. Here also I want to set the text for the combox as only Account Number.
 I made use of OnclientKeypressing event and added sender.set_text("ABC"); The code gets executed, but, I do not see the changes refelected.

I also trie making user of get_inpiutDOmelement and set the value. But nothing seems to reflect in browser.

Please let me know how I can modify the value of the combox text while using keyboard.
Hristo Valyavicharski
Telerik team
 answered on 13 Mar 2013
14 answers
1.1K+ views

I am creating dynamic columns in a grid. How do I do this in the code behind:

<telerik:GridTemplateColumn UniqueName="vendor" HeaderText="vendor">

 <ItemTemplate><%# Eval("vendor") %></ItemTemplate>

 <EditItemTemplate>

  <asp:DropDownList ID="vendorDropDown" runat="server">

   <asp:ListItem Text="Al1" Value="Al1"/>

   <asp:ListItem Text="Al2" Value="Al2"/>

   <asp:ListItem Text="Al3" Value="Al3"/>

   <asp:ListItem Text="Al4" Value="Al4"/>

  </asp:DropDownList>

 </EditItemTemplate>

</telerik:GridTemplateColumn>

Andrey
Telerik team
 answered on 13 Mar 2013
1 answer
94 views
Hi, 

We've upgraded from Telerik ASP.Net 2010 to 2012. And since then, we have a button that has a strange display (See attachment)

<div class="submit">
                    <telerik:RadButton ID="btnSubmit2" OnClientLoad="OnSubmitButtonLoad"  runat="server" Height="35px" Text="Submit" CssClass="button" />     
              </div>

Any idea of how to solve this ?

Thanks
Danail Vasilev
Telerik team
 answered on 13 Mar 2013
5 answers
182 views
Hello,

I have a webpage where I use 13 RadDateTime Pickers. This impacts the performance and increases the size of my page; so I tried to implement the "Shared Calendar/TimeView" concept as in here: http://www.telerik.com/help/aspnet-ajax/calendar-shared-calendars.html

My page consists of an upper div that has 4 of these DateTime Pickers and then a RadPanelBar that has 3 RadPanelBar items each of which has an item template that contains some DateTime Pickers along other controls.

As you advised in the link I posted above, I defined the shared Calendar and shared TimeView first thing in the page, they preceed the other DateTime Pickers that use them. However, the problem I encountered is that the shared controls that I defined in the upper level of the page are not defined to the ones inside any of the RadPanelBar items. That is, I had to use 4 shared Calendars and TimeViews: one for the upper div, and one for each of the 3 RadPanelBar items as each one is only seeing what's in its scope.

This doesn't serve my case, the performace is still bad and the page size is big. So is there any solution to this case? How can I use only one shared Calendar and TimeView for the whole page and still get all the DateTime Pickers in the RadPanelBar and page in general see them?

Many Thanks!
Kevin
Top achievements
Rank 2
 answered on 13 Mar 2013
3 answers
100 views
hi my dear friends :
i added an itemtemplate to my radlistbox and also added 1 label and 2 linkbutton in it ...
my radlistbox is like below :
<telerik:RadListBox ID="RadlbOfImageGroup" runat="server" DataKeyField="ID" DataSortField="Title"
    DataSourceID="sdsImagesGroup" DataTextField="Title" DataValueField="ID" Skin="BlackByMe"
    EnableEmbeddedSkins="False" Width="260px" Height="365px" EmptyMessage="no rec!"
    AutoPostBack="True" OnSelectedIndexChanged="RadlbOfImageGroup_SelectedIndexChanged"
    CausesValidation="False">
    <ItemTemplate>
        <table style="width: 100%;">
            <tr style="width: 100%;">
                <td style="width: 64%;">
                    <asp:Label ID="lblTitleOfIG" runat="server" CssClass="lbl_ListBox_IG_Title" Text='<%# Eval("Title") %>'></asp:Label>
                </td>
                <td style="width: 18%; text-align: center;">
                    <asp:LinkButton ID="lbEditIG" runat="server" CausesValidation="False" CommandName="Edit"
                        CssClass="lb_ListBox_IG" OnClick="lbEditIG_Click">Edit</asp:LinkButton>
                </td>
                <td style="width: 18%; text-align: center;">
                    <asp:LinkButton ID="lbDeleteIG" runat="server" CausesValidation="False" CommandName="Delete"
                        CssClass="lb_ListBox_IG" OnClick="lbDeleteIG_Click">Delete</asp:LinkButton>
                </td>
            </tr>
        </table>
    </ItemTemplate>
</telerik:RadListBox>

My Problem Is how can i check the CommandName of LinkButtons in code behind when i click on them?
(we do n't have access to these LinkButtons In CodeBehind)

thanks for your attention
best regards
Nencho
Telerik team
 answered on 13 Mar 2013
2 answers
123 views
Hi,

Can I have the version number at the trail of Path in RadScriptManager or StyleSheetManager?

The example as below
<asp:ScriptReference Name="”MyNamespace.MyFile.js”" Assembly="”MyAsembly”" 
Path="/MyVirtualLocation/MyFile.js?v=1.1.1.1">

Can I do as above code? 

Any help is appriciate.
Dan
Dan Cao
Top achievements
Rank 1
 answered on 13 Mar 2013
2 answers
109 views
Hi, in month view I'd like to adjust the row height depending on the maximum number of appointments in a cell.  I have the code calculating the height and it works fine when I switch from one view to another, but when I switch from one month to another the row height value does not get updated.  Is there a way for me to trigger an update programmatically?

Thanks,
Rimma
Plamen
Telerik team
 answered on 13 Mar 2013
6 answers
240 views
I'm creating a dependency tree programmatically in code-behind. Overall, it works. Unfortunately, they all show up as group nodes. Could you please provide an examples of how to programmatically add a single item as opposed to a group node? Thanks.

Matthew Ricks
Plamen
Telerik team
 answered on 13 Mar 2013
4 answers
126 views
I have added extra buttons to the editor toolbar server side.
e.g.
 EditorTool PasteFromWord = new EditorTool();
                    PasteFromWord.Name = "PasteFromWord";                   
                    mainGroup.Tools.Add(PasteFromWord);

The tool buttons appear on the editor as expected.
However when i press the full screen button the full screen editor does not have the buttons i created, but only a limited set.

i.e. bold,italic, underline,numbered,copy,cut,paste,undo,full screen,spell check
Rumen
Telerik team
 answered on 13 Mar 2013
1 answer
134 views
I have drag and drop control to my Page.  But it shows following error at runatime..

The base class includes the field 'RadDatePicker1', but its type (Telerik.Web.UI.RadDatePicker) is not compatible with the type of control (Telerik.Web.UI.RadDatePicker).


What is this?
what is my mistake?
Kostadin
Telerik team
 answered on 13 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?