Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
381 views
Hello, having some issues with having a TextBox in an ItemTemplate.

First it was the text box not accepting "space" but i found the workaround in the forums.
http://www.telerik.com/help/aspnet-ajax/listbox-space-ignored-textbox-itemtemplate.html

Now, typing text into the textboxes creates unwanted behavior when using the "s" character. The behavior im seeing is when typing the "s" charater in the RadListBoxItem.Textbox the selection attempts a changes to the next visible list box item. the focus bounces back and forth between the visible items (I only have 2 items visible at any given time due to size contraints.). I've looked high and low on a way to disable the listbox keyboard shortcuts but found nothing.

Im unsure how many other keyboard shortcuts are associated with this control, but since i need a textbox (well, a couple) I'd like to simply turn off keyboard support for this control.

Heres the markup:

 

<telerik:RadListBox runat="server" ID="listBoxSlideShowActiveItems" 
    SelectionMode="Multiple" EnableDragAndDrop="true" 
    AllowDelete="false" AllowReorder="true" Height="200px" Width="370px" AllowTransferOnDoubleClick="false">
    <ItemTemplate>  
        <fieldset>
            <legend style="font-size:8pt;padding-bottom:2px;">Slide Description</legend>
            <table border="0" width="100%">
                <tr>
                    <td style="width:80px;" valign="top">
                        <asp:Image ID="imageActiveItemThumbnail" runat="server" CssClass="thumbnailImageSlideShowLarge" ImageUrl="~/SiteImages/spacer.gif" />
                    </td>
                    <td valign="top">
                        <table border="0" width="100%">
                            <tr>
                                <td>Text:</td>
                                <td><asp:TextBox ID="textActiveItemText" runat="server" Width="170"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td>Href</td>
                                <td><asp:TextBox ID="textActiveItemHref" runat="server" Width="170"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td>Target:</td>
                                <td>
                                    <telerik:RadComboBox ID="comboActiveItemTarget" runat="server" Width="178px">
                                        <Items>
                                            <telerik:RadComboBoxItem Text="_blank" Value="_blank" Selected="True" />
                                            <telerik:RadComboBoxItem Text="_parent" Value="_parent" />
                                            <telerik:RadComboBoxItem Text="_search" Value="_search" />
                                            <telerik:RadComboBoxItem Text="_self" Value="_self" />
                                            <telerik:RadComboBoxItem Text="_top" Value="_top" />
                                        </Items>
                                    </telerik:RadComboBox>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </fieldset>
    </ItemTemplate>
    <Items></Items>
</telerik:RadListBox>
<script type="text/javascript">
    // RadListBox documented workaround for textbox in item template
  
    var radListBoxKeyDown = Telerik.Web.UI.RadListBox.prototype._onKeyDown;
    Telerik.Web.UI.RadListBox.prototype._onKeyDown = function (e) {
        if (e.keyCode == Sys.UI.Key.space) {
            return;
        }
        else {
            radListBoxKeyDown.apply(this, arguments);
        }
    }
</script>

Thanks in advance!

Genady Sergeev
Telerik team
 answered on 21 Dec 2010
3 answers
145 views
Hi,

    I use RadEditor inside ModalpopUpExtender in our Project.. I use ImageManager Tool in RadEditor.. When i click on the Image Manager tool, its dialog window gets opened behind Rad Editor..
<telerik:RadEditor ID="radEditorDescription" NewLineBr="false" EnableResize="false"
                                                            runat="server" Width="620px" TabIndex="29" CssClass="maarginleft20 marginBottom20">
                                                            <Tools>
                                                                <telerik:EditorToolGroup Tag="MainToolbar">
                                                                    <%--<telerik:EditorTool Name="AjaxSpellCheck" />--%>
                                                                    <telerik:EditorTool Name="FindAndReplace" ShortCut="CTRL+F" />
                                                                    <telerik:EditorTool Name="Undo" ShortCut="CTRL+Z" />
                                                                    <telerik:EditorTool Name="Redo" ShortCut="CTRL+Y" />
                                                                    <telerik:EditorTool Name="Indent" />
                                                                    <telerik:EditorTool Name="Outdent" />
                                                                    <telerik:EditorTool Name="TableWizard" />
                                                                    <telerik:EditorTool Name="InsertSymbol" />
                                                                    <telerik:EditorTool Name="JustifyLeft" />
                                                                    <telerik:EditorTool Name="JustifyRight" />
                                                                    <telerik:EditorTool Name="JustifyFull" />
                                                                </telerik:EditorToolGroup>
                                                                <telerik:EditorToolGroup Tag="FileManagers">
                                                                    <telerik:EditorTool Name="ImageManager" />
                                                                </telerik:EditorToolGroup>
                                                                <telerik:EditorToolGroup>
                                                                    <telerik:EditorTool Name="Bold" />
                                                                    <telerik:EditorTool Name="Italic" />
                                                                    <telerik:EditorTool Name="Underline" />
                                                                    <telerik:EditorSeparator />
                                                                    <telerik:EditorTool Name="ForeColor" />
                                                                    <telerik:EditorTool Name="BackColor" />
                                                                    <telerik:EditorSeparator />
                                                                    <telerik:EditorTool Name="FontName" />
                                                                    <telerik:EditorTool Name="RealFontSize" />
                                                                </telerik:EditorToolGroup>
                                                            </Tools>
                                                            <CssFiles>
                                                                <telerik:EditorCssFile Value="~/App_Themes/Web20/Editor.css" />
                                                            </CssFiles>
                                                        </telerik:RadEditor>
  
  
  
<ajaxToolkit:ModalPopupExtender ID="ModalPopupSwitchUserMenu" runat="server" TargetControlID="linkButtonDesc"
                                            PopupControlID="EditorPanel" BackgroundCssClass="watermarked" BehaviorID="SwitchUserMenuPopup"
                                            X="200" Y="50" RepositionMode="RepositionOnWindowResize" Drag="true" PopupDragHandleControlID="MyOptionsTitleBar"
                                            CancelControlID="ImageButtonClose" OkControlID="ImageButton1" />
Please Guide me..
Rumen
Telerik team
 answered on 21 Dec 2010
1 answer
123 views
Why is there an ItemInsert event and an ItemCommand event? Why not case out all the CRUD events in the ItemCommand event? Does it have something to do with having AllowAutomaticInserts turned on?

Are these events where I should get the values from my EditFormTemplate controls and assign them to the Update/Delete/Insert parameters of my ObjectDataSource?

I'm a newbie, obviously. Sorry for all the questions at once.
Princy
Top achievements
Rank 2
 answered on 21 Dec 2010
0 answers
113 views
I need to be able to select the null value to a RadComboBox bind to an EntityDataSource,

in WPF
there is a ClearSelectionButtonVisibility, what is the alternative in ASP.NET AJAX? without doing it manually

thanks in advance
Alberto
Top achievements
Rank 1
 asked on 21 Dec 2010
1 answer
47 views
i am using radtreeview in my page. while double clicking the tree node i want to open the rad window. before that i want  to  display ajax loading panel.
how can i do this. help me.
thanks .
priya.
Shinu
Top achievements
Rank 2
 answered on 21 Dec 2010
9 answers
239 views
I hope this is the right forum topic...

I'm having a situation where Telerik is generating a URL to a javascript file which is cached at the client.  When we release a new build the same URL is produced but the content of the javascript is different.  However, because the client is caching the file (or the URL, I should say) the correct javascript content isn't being downloaded.

Our environment is as such:

Telerik version 10.2.7.13
Windows Server 2003
.Net Framework 4.0
ASP.NET Forms

I don't have anything else to go one from here to troubleshoot the problem any further.  We've search for caching issues within ASP.NET, IIS, etc...  The way we found the problem was by javascript failing on an unhandled exception.  The javascript is from a WebResource.axd... We grabbed the content of the javascript as well as the URL, clear the browser cache and requested the URL, again.  We found the URL being generated were Identical but the javascript content was different.  Any help getting around this issue is greatly appreciated.  We've narrowed it down to Telerik's scripting manager generating these URLs but we don't know how to make it generate all new keys in the case of a new release of our code.

Any help on this matter is very much appreciated.

Regards,
-vic
Simon
Telerik team
 answered on 21 Dec 2010
1 answer
90 views
Can you add a property to the RadScriptBlock such that at render time we can specify WHERE the script tag renders?

I'd like to send my scripts to the bottom of the page on Render...
Radoslav
Telerik team
 answered on 21 Dec 2010
1 answer
71 views
I have a typical asp.net page where I have rad menu and rad grid. Also I have 2 drop down controls. When a drop down is selected, I have jquery load function that loads different aspx page (lets call a.aspx) in a empty div on demand. This aspx page is a form with its own submit button to save/update data.
After this aspx page is loaded, if I go to menu and select any menu item, it does not take me to the menu link, it takes me to a.aspx page. Is this happening due to some bug in rad ajax.

Please help.
Thanks,
-Soven
Iana Tsolova
Telerik team
 answered on 21 Dec 2010
1 answer
51 views
Hi i've been running VS2010 and S2008 together and they were working fine with the telerik extension. Recently i had to re-format my computer and I'm doing a fresh install, the extension is working fine in VS2010 but its not showing up in my VS2008. Any ideas?
Andrey
Telerik team
 answered on 21 Dec 2010
2 answers
103 views
I have a grid with 1 master table and 1 details table.  On my development machine when I expand the detail section then click the 'add a new record' button, the edit section appears and I can add some data, then save.  After uploading to  a hosted environment, clicking 'add new record' does nothing !  I get the ajax animated icon, but no edit section appears so I cant input any data.

I have a similar grid on another page and it works perfectly.  Can anyone help ?  this has now gone live but it wont work.  Am I missing something ?


<asp:Panel ID="PanelTypes" runat="server" GroupingText="Banners" Width="100%" >
            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" IsSticky="false" Height="75px" Width="75px" Transparency="25">
                            <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="border:0;" /></telerik:RadAjaxLoadingPanel>
                            <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server"
                ClientEvents-OnRequestStart="conditionalPostback" Width="100%">
                            <telerik:RadGrid ID="RadGridBannerImages" runat="server"
                                GridLines="None" AllowSorting="True"
                                ShowStatusBar="True" Skin="Vista"
                                ondeletecommand="RadGridBannerImages_DeleteCommand"
                                oninsertcommand="RadGridBannerImages_InsertCommand"
                                onneeddatasource="RadGridBannerImages_NeedDataSource"
                                onupdatecommand="RadGridBannerImages_UpdateCommand"
                                Width="1190px" onitemdatabound="RadGridBannerImages_ItemDataBound"
                                AllowPaging="True" PageSize="5" AutoGenerateColumns="False" Height="100%"
                                    OnDetailTableDataBind="RadGridBannerImages_DetailTableDataBind"
                                    onitemcommand="RadGridBannerImages_ItemCommand" HorizontalAlign="Left"
                                    onitemcreated="RadGridBannerImages_ItemCreated">
                                <HeaderContextMenu Skin="Vista" EnableTheming="True">
                                <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                                </HeaderContextMenu>
                                <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="True" />
                                <HeaderStyle  Wrap="true" />
 
                                <MasterTableView DataKeyNames="ID" CommandItemDisplay="Top" OverrideDataSourceControlSorting="True"
                                    EditMode="InPlace" UseAllDataFields="True" Name="BannerName">
                                    <detailtables>
                                        <telerik:GridTableView runat="server" DataKeyNames="ID" Name="BannerImages" Width="100%" CommandItemDisplay="Top" ShowFooter="True">
                                         
                                        <RowIndicatorColumn>
                                                <HeaderStyle Width="20px" />
                                            </RowIndicatorColumn>
                                            <ExpandCollapseColumn>
                                                <HeaderStyle Width="20px" />
                                            </ExpandCollapseColumn>
                                            <Columns>
                                            <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandBannerImage">
                                            <HeaderStyle Width="20px" />
                                            </telerik:GridEditCommandColumn>
                                            <telerik:GridBoundColumn DataField="ID" DataType="System.Int32" HeaderText="ID"
                                            ReadOnly="true" Visible="false" SortExpression="ID" UniqueName="ID">
                                            </telerik:GridBoundColumn>
                                             
                                            <telerik:GridTemplateColumn UniqueName="PanelNumber" HeaderText="Panel Location"  SortExpression="Position">
                                                <ItemTemplate>
                                                    <%#DataBinder.Eval(Container.DataItem, "PanelNumber")%>
                                                </ItemTemplate>
                                                <EditItemTemplate>
                                                    <telerik:RadComboBox ID="RadComboBoxPanelNumber" Runat="server" Skin="Vista">
                                                    <Items>
                                                        <telerik:RadComboBoxItem runat="server" Text="Left" Value="1" />
                                                        <telerik:RadComboBoxItem runat="server" Text="Center" Value="2" />
                                                        <telerik:RadComboBoxItem runat="server" Text="Right" Value="3" />
                                                         
                                                    </Items>
                                                </telerik:RadComboBox>
                                                </EditItemTemplate>
                                            </telerik:GridTemplateColumn>
                                             
                                             
                                             
                                           <telerik:GridTemplateColumn UniqueName="ImageNumber" HeaderText="Image Number"  SortExpression="Position">
                                                <ItemTemplate>
                                                    <%#DataBinder.Eval(Container.DataItem, "ImageNumber")%>
                                                </ItemTemplate>
                                                <EditItemTemplate>
                                                    <telerik:RadComboBox ID="RadComboBoxImageNumber" Runat="server" Skin="Vista">
                                                    <Items>
                                                        <telerik:RadComboBoxItem runat="server" Text="1" Value="1" />
                                                        <telerik:RadComboBoxItem runat="server" Text="2" Value="2" />
                                                        <telerik:RadComboBoxItem runat="server" Text="3" Value="3" />
                                                        <telerik:RadComboBoxItem runat="server" Text="4" Value="4" />
                                                        <telerik:RadComboBoxItem runat="server" Text="5" Value="5" />
                                                        <telerik:RadComboBoxItem runat="server" Text="6" Value="6" />
                                                        <telerik:RadComboBoxItem runat="server" Text="7" Value="7" />
                                                        <telerik:RadComboBoxItem runat="server" Text="8" Value="8" />
                                                        <telerik:RadComboBoxItem runat="server" Text="9" Value="9" />
                                                        <telerik:RadComboBoxItem runat="server" Text="10" Value="10" />
                                                         
                                                    </Items>
                                                </telerik:RadComboBox>
                                                </EditItemTemplate>
                                            </telerik:GridTemplateColumn>
                                                                                                                     
                                             
                                              <telerik:GridTemplateColumn HeaderText="Image File" UniqueName="ImageUpload">
                                            <ItemTemplate>
                                            <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("ImageURL") %>' Height="162" Width="207"/>
                                            </ItemTemplate>
                                            <EditItemTemplate>
                                                    <telerik:RadUpload ID="RadUploadImage" runat="server"
                                                    InitialFileInputsCount="1" MaxFileInputsCount="1"
                                                    ControlObjectsVisibility="None" MaxFileSize="100000"
                                                    AllowedFileExtensions=".jpg,.gif,.jpeg,.png" TargetFolder="~/Uploads"/>
                                            </EditItemTemplate>
                                            </telerik:GridTemplateColumn>
                                             
                                             
                                             
                                            <telerik:GridButtonColumn ConfirmText="Delete this image ?" ButtonType="ImageButton"
                                        CommandName="Delete" Text="Delete" UniqueName="DeleteFlash">
                                        <HeaderStyle Width="20px" />
                                        <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
                                    </telerik:GridButtonColumn>                        
                                            </Columns>
                                             
                                            <rowindicatorcolumn>
                                                <HeaderStyle Width="20px" />
                                            </rowindicatorcolumn>
                                            <expandcollapsecolumn visible="True">
                                                <HeaderStyle Width="20px" />
                                            </expandcollapsecolumn>
                                        </telerik:GridTableView>
                                    </detailtables>
                                    <RowIndicatorColumn>
                                        <HeaderStyle Width="20px" />
                                    </RowIndicatorColumn>
                                    <ExpandCollapseColumn visible="True">
                                        <HeaderStyle Width="20px" />
                                    </ExpandCollapseColumn>
                                    <Columns>
                                                                                 
                                        <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandBannerName">
                                        <HeaderStyle Width="20px" />
                                        </telerik:GridEditCommandColumn>                               
                                         
                                                                                
                                         
                                        <telerik:GridBoundColumn UniqueName="BannerName" DataField="BannerName" HeaderText="Banner Name" />
                                                            
                                                                           
                                         
                                        <telerik:GridButtonColumn ConfirmText="Delete this banner ?" ButtonType="ImageButton"
                                        CommandName="Delete" Text="Delete" UniqueName="DeleteColumn1">
                                        <HeaderStyle Width="20px" />
                                        <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
                                    </telerik:GridButtonColumn>
 
 
 
                                    </Columns>
                                     
 
                                </MasterTableView>
                                 
                                <FilterMenu EnableTheming="True">
                                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                                </FilterMenu>
                            </telerik:RadGrid>
                            </telerik:RadAjaxPanel>
 
        </asp:Panel>
Tsvetina
Telerik team
 answered on 21 Dec 2010
Narrow your results
Selected tags
Tags
+124 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
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
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?