Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
217 views

I use the Telerik RadEditor to display editable documents selected from a RadList box.  I populate the editor programmatically (server side) as the user selects items from the list box.  The TextChanged event fires when ever the user modifies a document, that's good.  It also fires when the user selects a different list item (radeditor is loaded programmatically via radeditor1.contents=), this is bad.

I'm wondering if there is some way to disable the TextChanged Event temporarily when the radeditor is populated programatically but retain the behavior that the TextChanged event fires if the user actually makes a change to the document in the radeditor.

Thanks in advance.

Rumen
Telerik team
 answered on 30 Jun 2010
1 answer
106 views
Okay, after a considerable amount of reading, trial and error, and general fussing with code I've got a RadTreeView that I can expand, you click a link and will remain expanded when the new page loads, However; repeating this on collapse appears to be problematic for me still. I have the system look for the child nodes and add them dynamically when the user expands a node. I need to be able to do the same for collapsing.

What I can't seem to find is a way to find all the nodes with parent (node you just collapse), if I could do that I can just code it to remove all of them.

Alternatively if there is a simple "remember what my treeview has" in session that would be excellent as I've been programming the whole thing to check the session, when you expand a node add child nodes to it, etc. if anyone has any recommendations or advise I'd really appreciate it.

-Eric
Nikolay Tsenkov
Telerik team
 answered on 30 Jun 2010
3 answers
181 views
I'm looking to implement a tabstrip similar to the way Visual Studio handles the solution explorer, team explorer, properties, etc; stack the tabs vertically, with the text of the tabs rotated at a -90 degree angle. The best example I could find is on another control vendor's website:

http://aspnetajax.componentart.com/control-specific/tabstrip/features/vertical_tabStrip/WebForm1.aspx

Thanks!
Veronica
Telerik team
 answered on 30 Jun 2010
1 answer
122 views
Are there any known issues with putting a RadMaskedTextBox inside the ItemTemplate of a RadComboBox?

Here is what I have:
 <telerik:RadComboBox ID="cmbConferenceInformation_ConferencePhone" runat="server" Width="250" HighlightTemplatedItems="true" DataTextField="Text" DataValueField="Name" OnItemDataBound="cmbConferences_ConferencePhones_ItemDataBound" OnSelectedIndexChanged="cmbConferences_ConferencePhones_SelectedIndexChanged"  AutoPostBack="true"> 
                                                                        <ItemTemplate> 
                                                                            <table border="0" cellpadding="0"> 
                                                                                <tr>
                                                                                    <td><telerik:RadMaskedTextBox ID="txtConferenceInformation_ConferencePhone_OtherPhone" runat="server" Width="80" Mask="(###) ###-####"></telerik:RadMaskedTextBox></td> 
                                                                                </tr> 
                                                                            </table> 
                                                                        </ItemTemplate>                                                                                         
                                                                    </telerik:RadComboBox> 


What i am experiencing, only in IE8, is that when i put the cursor into the  beginning of the masked text box and start typing, it takes one character and then jumps the cursor to the end. I cant type anymore and i cant backspace at that point since i am at the end of the masking. Has anyone else experienced this?

Just to note: This combobox is within a RadPanelBar, that is within a splitter. which is within a RadAjaxPanel in a RadWindow. 


Yana
Telerik team
 answered on 30 Jun 2010
1 answer
140 views

Hi,

I am using telerik radgrid with the Command item Insert/Update/Delete
Few issue i have experienced

Please check against the following link.

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/commanditem/defaultcs.aspx

Add Case:-

1) When I click on the AddNew button ,below option is comming in the header
   Please tell me how to remove Edit Selected and Delete selected customer from here ,also can you tell me what's the use of these button when we are adding a new customer.

Custom command item template     Edit selected      Cancel editing       Add this Customer   Delete selected customers   Refresh customer list 

 

Edit Case.(Single row select)

2) If we doesn't select any row before clicking on the EditSelected button,can we show a popup saying that "Please select the customer to edit."(like Delete case.)

Please

Princy
Top achievements
Rank 2
 answered on 30 Jun 2010
1 answer
83 views
Hi
I am using ToolTip to show a message in popup window. In Mozilla the tooltip is coming as popup, but in IE it is not coming as so (its coming inside the parent page)

The code given is

<telerik:RadToolTip runat="server"  ID="RadToolTip1" Position="Center" HideEvent="FromCode"
            ShowEvent="FromCode" Width="400px"  RelativeTo="BrowserWindow">
     <asp:UpdatePanel runat="server" ID="UpdatePanel2">
            <ContentTemplate>
            <asp:Panel ID="pInquiry" runat="server" Style="padding-left: 11px;">
            <table width="100%">
         <tr>
             <td>
                 &nbsp;
             </td>
         </tr>
         <tr>
             <td>
                 <table align="center">
                       
                     <tr>
                         
                         <td align="center">
                             <table>
                                 <tr>
                                     <td>
                                         <input id="btnLogout" type="button" onclick="logout();return false;" value="Logout" />
                                     </td>
                                     <td>
                                         It is a popup window
                                     </td>
                                 </tr>
                             </table>
                         </td>
                     </tr>
                 </table>
             </td>
         </tr>
         <tr>
             <td>
                 &nbsp;
             </td>
         </tr>
     </table>
     </asp:Panel>
</ContentTemplate>
           
        </asp:UpdatePanel>     
</telerik:RadToolTip>

Any idea why this issue?



girish kumar
Top achievements
Rank 1
 answered on 30 Jun 2010
2 answers
215 views
I've built an .ascx control that contains a pair of RadListBoxes.  One represents the list of possible items, and the other represents the list of selected items.  Both RadListBoxes are assigned a tabIndex in the codebehind so that they are tab selectable.
        <telerik:RadListBox ID="UnSelectedItems" runat="server" Width="210px" Height="90px" 
            SelectionMode="Multiple" 
            OnKeyDown="UnSelectedItems_OnKeyDown(this, event)" 
            ondblclick="PerformTransfer(this)" TransferToID="SelectedItems" 
            EnableDragAndDrop="true"   CausesValidation="false" OnClick="GainFocus(this)" 
            AllowTransfer="true"> 
            <ButtonSettings ShowTransferAll="false" Position="Right" /> 
        </telerik:RadListBox> 
     
         
        <telerik:RadListBox ID="SelectedItems" runat="server" Width="210px" Height="90px"  
            OnKeyDown="SelectedItems_OnKeyDown(this, event)"  
            ondblclick="PerformTransfer(this)"  
            SelectionMode="Multiple" EnableDragAndDrop="true" OnClick="GainFocus(this)" 
            CausesValidation="false" AllowTransfer="true" TransferToID="UnSelectedItems"> 
            <ButtonSettings ShowTransfer="false" ShowTransferAll="false" Position="Right" /> 
        </telerik:RadListBox>    

All of the built in transfers between them using the mouse to click on the arrow buttons works great.  For added usability, I'm binding OnKeyDown functions and OnDblClick functions.  The OnKeyDown functions just checks what key was pressed, and if it was the appropriate key it passes the "sender" parameter to PerformTransfer.  Here is PerformTransfer:
function PerformTransfer(sender) { 
    var senderBox = $find(sender.id); 
 
    if (sender.id.indexOf("UnSelectedItems") > -1) { 
        var recieveBox = $find(sender.id.replace("UnSelectedItems", "SelectedItems")); 
    } else if (sender.id.indexOf("SelectedItems") > -1) { 
        var recieveBox = $find(sender.id.replace("SelectedItems", "UnSelectedItems")); 
    }
 
    var itemArr = senderBox.get_selectedItems(); 
 
    if (itemArr.length == 0) { return; } 
 
    for (var i = 0; i < itemArr.length; i++) { 
        senderBox.transferToDestination(itemArr[i]); 
    } 
 
    itemArr[itemArr.length - 1].ensureVisible(); 
    recieveBox.clearSelection(); 
    senderBox._getGroupElement().focus(); 
} 

This too works nearly perfectly.  But after I have performed a transfer from SelectedItems to UnSelectedItems using PerformTransfer, the SelectedItems listbox is not functionally focused.  I cannot use the up and down arrow keys to navigate or select items in this box.  I can tab forward to the next element, or backwards to the "UnSelectedItems" box (which still works fine).  Tabbing back and forth shows that "SelectedItems" is being focused, but not in such a way that I can used the keyboard to navigate it.  In order to make it navigable by keyboard again I must click on it (and then only after writing an onclick GainFocus function).

Oddly enough this problem only happens in the "SelectedItems" to "UnSelectedItems" direction.  It works fine in the other direction.

Thanks
--Felix
Genady Sergeev
Telerik team
 answered on 30 Jun 2010
1 answer
99 views
Hi ! I am using RadDock and User control Edit form but when i click edit button inside grid control it does not shows the edit form and the filter of grid also does not work inside RadGrid.. but grid works proper outside RadDock control.

can anyone help me out

Kind Regards
Ali, Murtaza Tahir
Pero
Telerik team
 answered on 30 Jun 2010
3 answers
122 views
Hello,

I created a page called Filter.aspx. This page is called from another page using the following code:

<script type="text/javascript">  
    //<![CDATA[
    function openRadWin()
    {
        window.radopen("Filter.aspx", "aDialog");
    } 
   //]]> 
</script> 
 
 
<telerik:RadWindowManager ID="RadWindowManager1" runat="server">  
    <Windows> 
        <telerik:RadWindow ID="aDialog" runat="server" Title="Select" Height="300px" 
              Width="800px" Left="150px" ReloadOnShow="true" ShowContentDuringLoad="false" Modal="true" Behaviors="Close" /> 
    </Windows> 
</telerik:RadWindowManager> 
 
 
<asp:Button ID="btn_CreateFilter" runat="server" Width="80px" Text="Create Filter" onClientclick="openRadWin(); return false;"  /> 

The page Filter.aspx is

    <form id="form_Filter" runat="server">  
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
        <Scripts> 
            <asp:ScriptReference Assembly="Telerik.Web.UI, Version=2009.3.1314.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Name="Telerik.Web.UI.Common.Core.js" /> 
            <asp:ScriptReference Assembly="Telerik.Web.UI, Version=2009.3.1314.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Name="Telerik.Web.UI.Common.jQuery.js" /> 
        </Scripts> 
    </telerik:RadScriptManager> 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
    </telerik:RadAjaxManager> 
 
        <telerik:RadSkinManager ID="RadSkinManager1" runat="server" Skin="Windows7"></telerik:RadSkinManager> 
        <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" skin="Windows7" DecoratedControls="All"/>  
 
 
    <asp:ObjectDataSource ID="ODS_ListUser" runat="server"   
            EnableCaching="True" SelectMethod="GetData" TypeName="SiFiDa.DS_SiFiDaTableAdapters.TA_ListUser" CacheDuration="33">  
    </asp:ObjectDataSource> 
 
    <asp:ObjectDataSource ID="ODS_ListPEFDivision" runat="server"   
            EnableCaching="True" SelectMethod="GetData" TypeName="SiFiDa.DS_SiFiDaTableAdapters.TA_ListPEFDivision" CacheDuration="33">  
    </asp:ObjectDataSource> 
 
    <asp:ObjectDataSource ID="ODS_ListDivision" runat="server"   
            EnableCaching="True" SelectMethod="GetData" TypeName="SiFiDa.DS_SiFiDaTableAdapters.TA_ListDivision" CacheDuration="33">  
        </asp:ObjectDataSource> 
 
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1" > 
      
    <div style="position:absolute;">  
            <label id="lbl_User:" class="DataLabel" style="position: absolute; width: 120px; left: 10px; top: 10px; ">User:</label> 
            <telerik:RadComboBox ID="rcb_User" runat="server"   
                DataSourceID="ODS_ListUser"   
                style="position: absolute; left: 120px; top: 6px;" DataValueField="OID" DataTextField="LastName" 
                EmptyMessage="Select one or more User" HighlightTemplatedItems="true"   
                AllowCustomText="true" Width="590px"   
                Height="300px" MarkFirstMatch="true" > 
                    <ItemTemplate> 
                        <div> 
                            <asp:CheckBox runat="server" ID="cb" Checked="false" /> 
                            <asp:Label runat="server" ID="Label1" AssociatedControlID="cb"><%#Eval("LastName") & " " & Eval("FirstName") %></asp:Label> 
                        </div> 
                    </ItemTemplate> 
            </telerik:RadComboBox> 
      
            <label id="lbl_PEFDivision" style="position: absolute; width: 120px; left: 10px; top: 55px; ">Division:</label> 
            <telerik:RadComboBox ID="rcb_ListDivision" runat="server"   
                DataSourceID="ODS_ListDivision"   
                style="position: absolute; left: 120px; top: 51px;"   
                DataValueField="Division" DataTextField="Division" 
                EmptyMessage="Select one or more Division" HighlightTemplatedItems="true"   
                AllowCustomText="true" Width="590px"                   
                Height="300px" MarkFirstMatch="true" > 
                    <ItemTemplate> 
                        <div> 
                            <asp:CheckBox runat="server" ID="cb" Checked="false" onclick="onCheckBoxClick(this, 'rcb_ListDivision')"/>  
                            <asp:Label runat="server" ID="Label3" AssociatedControlID="cb"><%#Eval("Division")%></asp:Label> 
                        </div> 
                    </ItemTemplate> 
            </telerik:RadComboBox>          
      
    </div> 
      
    </telerik:RadAjaxPanel> 
 
 
      
    </form> 
 

Initially everything is ok. But after about 2 seconds, the second combobox is displayed approx. 50px below the initial position. This occurs in IE8 only. In IE6 and firefox everythings works perfect. When calling the filter.aspx directly everything is perfect too.

I have attached 2 screenshots so you can see what I mean.

Any ideas ?

Thank you
Robert

Georgi Tunev
Telerik team
 answered on 30 Jun 2010
1 answer
65 views
Hello,

I need to edit grid data in code before the server does filtering on it when the filter button is pressed.  The reason I need to do this is because text in my table has a space after it (which means the EndsWith filter doesn't work).  Anyone know the server-side event handler I can use to remove the whitespace before filtering is done on the data?  Or is there some other way to do this?

Thanks,

Ryan
Tsvetoslav
Telerik team
 answered on 30 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?