Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
267 views
Hi,

I am binding a listbox using a SQLDatasource and then adding an item ("All")  to the list on the item databound event.  The problem is that it is adding it in the second position and I need it to be the first item in the list.  Is there a way to add an item at a specific position?

Thanks for your help.

Private Sub rlbCompanyName_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadListBoxItemEventArgs) Handles rlbCompanyName.ItemDataBound
 
        Dim drv As DataRowView = CType(e.Item.DataItem, DataRowView)
        e.Item.Attributes.Add("CompanyNumber", drv("CompanyNumber").ToString())
        If Me.rlbCompanyName.FindItemByValue("All") Is Nothing Then
            Dim item As New RadListBoxItem("All", "All")
            item.Attributes.Add("CompanyNumber", "00")
            Me.rlbCompanyName.Items.Add(item)
        End If
        If Not Me.rlbCompanyName.FindItemByText("Unknown") Is Nothing Then
            Dim itemToRemove As RadListBoxItem = rlbCompanyName.FindItemByText("Unknown")
            Me.rlbCompanyName.Items.Remove(itemToRemove)
        End If
 
    End Sub
Tracy
Top achievements
Rank 1
 answered on 09 Oct 2012
1 answer
54 views
Hello everyone I have a problem with using a custom skin, when I run the website locally works fine when I transfer it to a production server does not work anymore. If you use telerik skin everything works perfect in the production server.

Michele
Top achievements
Rank 2
 answered on 09 Oct 2012
3 answers
219 views
Is there a way to apply a RadComboBox skin to a regular asp:DropDownList?
I'm using a combination of RadComboBoxes and regular asp:DropDownList controls.  I'm using the Web20 skin for the RadComboBoxes, I want the asp:DropDownList to look the same.

Any advice?

Thanks!
Aarsh
Top achievements
Rank 1
 answered on 09 Oct 2012
1 answer
41 views
HI,

http://www.telerik.com/support/kb/aspnet-ajax/editor/using-the-image-and-document-managers-outside-radeditor.aspx

in this link have Image Manager Customazation Code.

I have change trail version dll replace to License Dlls. then  Customzation Image manager is not display .  Its Showing normal image manager.

is there any dll version problem

please help me any body.
Vessy
Telerik team
 answered on 09 Oct 2012
7 answers
145 views
Hi everyone,

I have this scenario: A web page with 7 RadGrids and all of them are related with each other.
It is possible when I select one row on the first RadGrid, this RadGrid shows only the row selected?

This procedure will help me to reduce the space used on the screen and at the same time shows only the relevant information to the user.

Thanks any help.

Marcio Nascimento
Tsvetina
Telerik team
 answered on 09 Oct 2012
1 answer
71 views
Hi All,

I am facing one issue with RadCombobox. (V 2009.1.527.20).

Is it the known issue?

Details: 

Properties set:  AllowCustomText = True , EnableTextSelection = True and MarkFirstMatch = True

When the first letter typed matches an available text in the dropdown, the text is populated.
(Image 1 is attached)

The problem is that when you continue typing, even if the next characters match the first or another entry, the characters are appended to the front of the populated title making the entry entirely unintended and preventing freeform entry.  Normal expected behavior would be for the automatically suggested selection to go away and accept the user entered characters if the remaining entries do not match. 

(Please check image 2)
Nencho
Telerik team
 answered on 09 Oct 2012
3 answers
271 views
Hello,

I have an RadListBox and 3 RadEditor on my page. Now I want to Drag & Drop Items of RadListBox into RadEditor. How can I get the ID of the RadEditor on which I am Dragging and Dropping the RadListBox Item?

As per the example provide I am able to Drag Drop Items in only one Hardcoded RadEditor. Below is the JavaScript for the same

function OnClientNodeDropping(sender, args) {
        var editor = $find("<%=RadEditor1.ClientID%>");
        var event = args.get_domEvent();
        document.body.style.cursor = "default";
        var result = isMouseOverEditor(editor, event);
        if (result) {
            var itemValue = sender.get_selectedItem().get_value();
            editor.setFocus();
            itemValue = "[[" + itemValue + "]]"
            editor.pasteHtml(itemValue);
        }
        setOverlayVisible(false);
    }

Now here what I want is If I am dragging and dropping items in RadEditor1 it should be placed inside RadEditor1, If I am dragging and dropping items in RadEditor2 it should be placed inside RadEditor2.

Please let me know how can I achieve this functionality. 
Thanks in advance for your help..

Rumen
Telerik team
 answered on 09 Oct 2012
1 answer
96 views
I noticed that the OnClientTransferred event does not happen at the very end of the transfer cycle. After the event is fired, there is code being executed which selects the next item on the list. I am trying to clear the selection after transferring items over to the other side, but the code that executes afterwards selects the item anyway. Is there any way to accomplish what I'm trying to do?
Daniel
Top achievements
Rank 1
 answered on 09 Oct 2012
1 answer
113 views
Hello all...

I'm wondering if there's a provision to set the time of day default in the calendar?  Apparently it defaults to noon, and I'd like to set it to midnight so to take into account any record that occurs any time of day, rather than only after twelve noon.


Thanks for any assistance!
Angel Petrov
Telerik team
 answered on 09 Oct 2012
2 answers
208 views
I am having issues trying to figure out how to create a mega menu dynamically from SQL server.
I have a normal telerik menu working fine from SQL.  My SQL server is setup using a Parent Child to create the sub menus.

Existing

<telerik:RadMenu id="globalNavigation" runat="server"

 

EnableRoundedCorners="true"

 

EnableAjaxSkinRendering="true"

 

Skin="Telerik"

 

ExpandDelay="200"

 

ClosingDelay="50"

 

OnClientItemOpened="itemOpened"

 

CausesValidation="false"

 

EnableEmbeddedSkins="false"

 

EnableShadows="true"

 

ClickToOpen="true">

</telerik:RadMenu>

SQL Table is setup (as an example)
idMenuID  vcName     inParentID     URL 
1         Home         NULL         ~/default.aspx
2         Country      NULL         ~/Country/default.aspx 
3         Training     NULL         ~/Training/default.aspx
4         Student      NULL         ~/Student/default.aspx
11        Option A     2           ~/Country/defaultA.aspx
12        Option B    2            ~/Country/defaultB.aspx

Within the radmenu of a mega drop down it includes
<telerik:RadMenuItem Text="Products" PostBack="false">

 <Items>

 <telerik:RadMenuItem CssClass="Products" Width="640px">

 <ItemTemplate>

 <div id="CatWrapper" class="Wrapper" style="width: 435px;">

 <h3>

 Categories
<
/h3>

 <telerik:RadSiteMap ID="RadSiteMap1" runat="server" Skin="Hay" EnableTextHTMLEncoding="true">

 <LevelSettings>

 <telerik:SiteMapLevelSetting Level="0">

 <ListLayout RepeatColumns="2" RepeatDirection="Vertical" />

 </telerik:SiteMapLevelSetting>

 </LevelSettings>

 <Nodes>

 <telerik:RadSiteMapNode NavigateUrl="#" Text="Student">

 <Nodes>

 <telerik:RadSiteMapNode NavigateUrl="#" Text="ITO Student PTO" />

 <telerik:RadSiteMapNode NavigateUrl="#" Text="Review of All ITO's" />

 </Nodes>

 </telerik:RadSiteMapNode>

 <telerik:RadSiteMapNode NavigateUrl="#" Text="Decor">

 <Nodes>

 <telerik:RadSiteMapNode NavigateUrl="#" Text="Bed Linen" />

 <telerik:RadSiteMapNode NavigateUrl="#" Text="Throws" />

 <telerik:RadSiteMapNode NavigateUrl="#" Text="Curtains & Blinds" />

 <telerik:RadSiteMapNode NavigateUrl="#" Text="Rugs" />

 <telerik:RadSiteMapNode NavigateUrl="#" Text="Carpets" />

 </Nodes>

 </telerik:RadSiteMapNode>

</telerik:RadSiteMap>

 </div>

 </ItemTemplate>

 </telerik:RadMenuItem>

 </Items>

 </telerik:RadMenuItem>


This is within the Mega Drop Menu.   How would I create these item dynamically.  Would someone have an example of how to write this within the code behind or created dyanmically.

Boyan Dimitrov
Telerik team
 answered on 09 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?