Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
85 views
Hi I am using radgrid having feature of filtering by combobox. But i set the combowidth to small according to fit to column,but the items length are too much. So I would like to emapnd columnwidth according to the length of items.
Column widgets (for filtering) are to small and unreadable when the column widths are small – these should expand out when selected (has focus)


regards,
Appu
Appu
Top achievements
Rank 1
 asked on 07 Jul 2009
1 answer
155 views
I have searched the forums and tried a couple of the things that I found there, but still can not correct an issue I am having with the radEditor.  If I open the image manager, and click the upload tab at the top, then leave it open for awhile (10+ minutes) before browsing for an image to upload, the entire dialog window will timeout when I click the upload button.  This does not occur on my local machine, only when I load the app to our production servers.  Also, the problem seems to only occur with IE.  I've tried the window.setTimeout function to manually open the dialog window and increase the millisecond count, to no avail, and my version (2008.3) does not support the cookieTimeoutLimit property.  Any ideas on how to eliminate this problem?
Lini
Telerik team
 answered on 07 Jul 2009
2 answers
194 views
Hi
      I am using rad grid having paging option , i would like to change or customize  Paging Combobox items. I could only customize or add upto 3 items to that combo box.But i would like to add default sizes to be 25, 50, 100, 250, and 500 so on. is there any way to extend the items size up to the size i mentioned.

if (e.Item is GridPagerItem)
        {
            RadComboBox PageSizeCombo = (RadComboBox)e.Item.FindControl("PageSizeComboBox");
            PageSizeCombo.Items[0].Text = "50";
            PageSizeCombo.Items[1].Text = "500";
            PageSizeCombo.Items[2].Text = "1000";
            //PageSizeCombo.Items[3].Text = "500";
            //PageSizeCombo.Items[4].Text = "2000";
           
            //PageSizeCombo.FindItemByText(e.Item.OwnerTableView.PageSize.ToString()).Selected = true;
            PageSizeCombo.FindItemByText("50").Selected = true;

           
            
        }

In above code i could add only 3 items including the Page size i fixed in the Grid

Regards,
Appu
Appu
Top achievements
Rank 1
 answered on 07 Jul 2009
3 answers
189 views
I have the following code in default.aspx
<telerik:RadToolBar ID="RadToolBar1" runat="server" Orientation="Vertical" dir="rtl">
                <Items>
                    <telerik:RadToolBarDropDown runat="server" Text="DropDown 0">
                        <Buttons>
                            <telerik:RadToolBarButton runat="server" Text="Child Button 1">
                            </telerik:RadToolBarButton>
                        </Buttons>
                    </telerik:RadToolBarDropDown>
                    <telerik:RadToolBarDropDown runat="server" Text="DropDown 1">
                        <Buttons>
                            <telerik:RadToolBarButton runat="server" Text="Child Button 1">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarButton runat="server" Text="Child Button 2">
                            </telerik:RadToolBarButton>
                        </Buttons>
                    </telerik:RadToolBarDropDown>
                    <telerik:RadToolBarDropDown runat="server" Text="DropDown 2">
                        <Buttons>
                            <telerik:RadToolBarButton runat="server" Text="Child Button 1">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarButton runat="server" Text="Child Button 2">
                            </telerik:RadToolBarButton>
                        </Buttons>
                    </telerik:RadToolBarDropDown>
                </Items>
            </telerik:RadToolBar>


when I open the page in browser, and click on "drop down 0" then sub-menu opens, then when i click on it again for 2 times, the sub-menu's width is enlarged and each time I click the "drop down 0", the sub-menu gets wider. Is there a solution to this problem?


Paul
Telerik team
 answered on 07 Jul 2009
7 answers
354 views
Hi,
Could anyone tell me how i can localize and translate
the DateTimePicker's ToolTip in Filter Menu to my own Language?

protected void Page_Load(object sender, EventArgs e) 
{ 
    var grid = RadGrid1; 
    foreach (GridColumn column in grid.Columns) 
    { 
        if (column is GridDateTimeColumn) 
        { 
            var editor = (column as GridDateTimeColumn).CurrentColumnEditor as GridDateTimeColumnEditor; 
            var picker = editor.PickerControl as RadDateTimePicker; 
 
            picker.DatePopupButton.ToolTip = "XXXX"; // why no effect??? 
        } 
    } 
} 
 

Thanks in advance.
Kind Regards.

Sebastian
Telerik team
 answered on 07 Jul 2009
1 answer
117 views
I have a radgrid that I create dynamically with a custom template, I construct my gird in my OnInit. This is working great. Now I would like to enable the drag and drop functionality, but I am having trouble finding a reference that uses a objectdatasource for the grid. I would like to just reorder rows within the same grid. Can anyone point me in the right direction.
Thanks
Sebastian
Telerik team
 answered on 07 Jul 2009
5 answers
199 views
I have a customer query relating to show/hide button functionality with the Premium MOSS control.

Is it possible to limit the buttons displayed in the toolbar based on the content authors role? e.g. Only display Switch to HTML View for authorised users.
Rana
Top achievements
Rank 2
 answered on 07 Jul 2009
1 answer
151 views
Hi,

I would be grateful if anyone can hint me how can I achieve the following behaviour with RadGrid.

"Grid contains multiiple rows per page. User can edit any row at a time. Generally when the row is edited and updated, the change is passed to the database and updated. Now I am looking for a way so that user is taken back to the same row that was just edited rather than to the first row when grid rebinds"

Many thanks.
Milan G
Princy
Top achievements
Rank 2
 answered on 07 Jul 2009
2 answers
185 views
Hi
How can i set legal size in landscape mode (1/4” margins for most readability) for my PDF exporting file


Appu


Bruno
Top achievements
Rank 2
 answered on 07 Jul 2009
1 answer
306 views
Hey,

I'm using a series of RadComboBoxes in a search screen.  I access the radcombobox text properties in a javascript function that calls radOpen.   The reason I use the text property instead of the "value" property is because the user my not actually select a dropdown value.   However when I set "EmptyMessage" to some value other than "" or blank it sets the text property. Is there a way to use EmptyMessage without it setting the text property of the radcombobox?
<%@ Page Title="Event Presentation Archive Search" Language="C#" MasterPageFile="~/assets/template/main.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> 
<%@ MasterType VirtualPath="~/assets/template/main.master" %> 
 
<asp:Content ID="Content1" ContentPlaceHolderID="_ContentBanner" Runat="Server">  
</asp:Content> 
<asp:Content ID="Content2" ContentPlaceHolderID="_ContentSideNav" Runat="Server">  
    <eserve:sidemenu runat="server" /> 
</asp:Content> 
<asp:Content ID="Content3" ContentPlaceHolderID="_ContentMain" Runat="Server">  
<h2>Welcome to Event Presentation Archive!</h2> 
<br /> 
 
   <script type="text/javascript">  
 
        function openRadWindow() {  
            var oWnd = radopen("SearchSessionResult.aspx?"  
                    + "sessionNumber=" + getText($find("<%= RadComboBoxSessionNumber.ClientID %>"))  
                    + "&sessionDate=" + getDate(document.getElementById("<%= eventDate.ClientID %>").value)  
                    + "&speaker=" + getText($find("<%= RadComboBoxSpeaker.ClientID %>"))  
                    + "&level=" + getText($find("<%= RadComboBoxLevel.ClientID %>"))  
                    + "&track=" + getText($find("<%= RadComboBoxTrack.ClientID %>"))  
                    + "&program=" + getText($find("<%= RadComboBoxProgram.ClientID %>"))  
                    + "&event=" + getText($find("<%= RadComboBoxEvent.ClientID %>"))  
                    + "&year=" + getText($find("<%= RadComboBoxYear.ClientID %>"))  
                    + "&title=" + getText($find("<%= RadComboBoxTitle.ClientID %>"))  
                    + "&room=" //+ Room  
                    + "&distributable=" // + Publishable  
                    , "AddBlock");  
            //oWnd.SetSize(1000, 400);  
            oWnd.Center();  
        }  
 
//        Moved To assets/template/main.master          
//        function openCartWindow() {  
//            var oWnd = radopen("ViewShoppingCart.aspx", "AddBlock");  
//            //oWnd.SetSize(700, 350);  
//            oWnd.Center();  
//        }  
 
        function getText(_combo) {  
            return _combo.get_text();  
        }  
 
        function getDate(_datestring) {  
            if (_datestring.length > 0) {  
                var _datearray = _datestring.split("-");  
                return _datearray[1] + "/" + _datearray[2] + "/" + _datearray[0];  
            }  
            else {  
                return "";  
            }  
        }  
          
        function clearForm() {  
            clearSearch($find("<%= RadComboBoxSessionNumber.ClientID %>"));  
            clearDateSearch($find("<%= eventDate.ClientID %>"));  
            clearSearch($find("<%= RadComboBoxSpeaker.ClientID %>"));  
            clearSearch($find("<%= RadComboBoxLevel.ClientID %>"));  
            clearSearch($find("<%= RadComboBoxTrack.ClientID %>"));  
            clearSearch($find("<%= RadComboBoxProgram.ClientID %>"));  
            clearSearch($find("<%= RadComboBoxTitle.ClientID %>"));  
            clearSearch($find("<%= RadComboBoxEvent.ClientID %>"));  
            clearSearch($find("<%= RadComboBoxYear.ClientID %>"));  
        }  
 
 
        function clearSearch(_box) {  
            _box.clearSelection();  
        }  
 
        function clearDateSearch(_datepicker) {  
            _datepicker.clear();  
        }  
 
//        Moved To assets/template/main.master  
//        function updatePage() {  
//            // Will Do a Postback when the popup windows are closed to update pending and items.  
//            document.forms[0].submit();  
//        }  
 
   </script>      
 
   <form runat="server" id="mainForm" method="post" style="width: 100%;float:left;">  
 
    <p>Enter your search criteria to find the session you are looking for.   The search boxes are Google-like and support type ahead text entry.</p> 
      <eserve:RadScriptManager ID="RadScriptManager1" runat="server" EnablePageMethods="true"/>  
      <eserve:RadAjaxPanel runat="server" ID="RadAjaxPanel1">  
         <div class="iform">  
             <div class="irow">  
                 <span class="ilabel"><asp:Label ID="Label1" runat="server" AssociatedControlID="RadComboBoxSessionNumber" >Session ID:</asp:Label></span>  
                 <eserve:RadComboBox  
                    ID="RadComboBoxSessionNumber" 
                    Skin="Gray" 
                    runat="server"   
                    Height="200px"   
                    Width="200px" 
                    DropDownWidth="298px" 
                    EmptyMessage=""   
                    HighlightTemplatedItems="true" 
                    Filter="Contains" 
                    EnableLoadOnDemand="true"   
                    OnItemsRequested="RadComboBox_ItemsRequested" 
                    DataTextField="sessionnumber" 
                    DataValueField="sessionnumber" 
                    MarkFirstMatch="false" 
                    EnableViewState="true" 
                    ShowToggleImage="false" 
                    ToolTip="Search On Session Number">  
                 </eserve:RadComboBox> 
             </div> 
             <div class="irow">  
                 <span class="ilabel"><asp:Label ID="Label9" runat="server" AssociatedControlID="RadComboBoxTitle" >Title:</asp:Label></span>  
                 <eserve:RadComboBox  
                        ID="RadComboBoxTitle" 
                        Skin="Gray" 
                        runat="server"   
                        Height="200px"   
                        Width="300px" 
                        DropDownWidth="498px" 
                        EmptyMessage=""   
                        HighlightTemplatedItems="true" 
                        Filter="Contains" 
                        EnableLoadOnDemand="true"   
                        OnItemsRequested="RadComboBox_ItemsRequested" 
                        DataTextField="title" 
                        DataValueField="title" 
                        MarkFirstMatch="false" 
                        EnableViewState="true" 
                        ShowToggleImage="false" 
                        ToolTip="Search On Title">  
                 </eserve:RadComboBox> 
             </div> 
               
<%--             <div class="irow">  
                 <span class="ilabel"><asp:Label ID="Label2" runat="server" AssociatedControlID="RadComboBoxDate" >Date:</asp:Label></span>  
                 <eserve:RadComboBox  
                        ID="RadComboBoxDate" 
                        Skin="Gray" 
                        runat="server"   
                        Width="100px" 
                        DropDownWidth="100px" 
                        EmptyMessage=""   
                        HighlightTemplatedItems="true" 
                        ShowToggleImage="true" 
                        ToolTip="Search On Date">  
                        <Items> 
                            <eserve:RadComboBoxItem Text="" />    
                            <eserve:RadComboBoxItem Text="05/04/2009" />    
                            <eserve:RadComboBoxItem Text="05/05/2009" />    
                            <eserve:RadComboBoxItem Text="05/06/2009" />    
                            <eserve:RadComboBoxItem Text="05/07/2009" />    
                        </Items>    
                 </eserve:RadComboBox> 
             </div>--%> 
 
             <div class="irow">  
                 <span class="ilabel"><asp:Label ID="Label10" runat="server" AssociatedControlID="eventDate" >Event Date:</asp:Label></span>  
                 <eserve:RadDatePicker ID="eventDate" runat="server" Skin="Office2007">  
                 </eserve:RadDatePicker> 
             </div> 
 
             <div class="irow">  
                 <span class="ilabel"><asp:Label ID="Label3" runat="server" AssociatedControlID="RadComboBoxSpeaker" >Speaker:</asp:Label></span>  
                 <eserve:RadComboBox  
                        ID="RadComboBoxSpeaker" 
                        Skin="Gray" 
                        runat="server"   
                        Height="200px"   
                        Width="200px" 
                        DropDownWidth="298px" 
                        EmptyMessage=""   
                        HighlightTemplatedItems="true" 
                        Filter="Contains" 
                        EnableLoadOnDemand="true"   
                        OnItemsRequested="RadComboBox_ItemsRequested" 
                        DataTextField="speakername" 
                        DataValueField="speakername" 
                        MarkFirstMatch="false" 
                        EnableViewState="true" 
                        ShowToggleImage="false" 
                        ToolTip="Search On Speaker">  
                 </eserve:RadComboBox> 
             </div> 
             <div class="irow">  
                 <span class="ilabel"><asp:Label ID="Label4" runat="server" AssociatedControlID="RadComboBoxLevel" >Level:</asp:Label></span>  
                 <eserve:RadComboBox  
                        ID="RadComboBoxLevel" 
                        Skin="Gray" 
                        runat="server"   
                        Height="200px"   
                        Width="200px" 
                        DropDownWidth="298px" 
                        EmptyMessage=""   
                        HighlightTemplatedItems="true" 
                        Filter="Contains" 
                        EnableLoadOnDemand="true"   
                        OnItemsRequested="RadComboBox_ItemsRequested" 
                        DataTextField="level" 
                        DataValueField="level" 
                        MarkFirstMatch="false" 
                        EnableViewState="true" 
                        ShowToggleImage="false" 
                        ToolTip="Search On Level">  
                 </eserve:RadComboBox> 
             </div> 
             <div class="irow">  
                 <span class="ilabel"><asp:Label ID="Label5" runat="server" AssociatedControlID="RadComboBoxTrack" >Track:</asp:Label></span>  
                 <eserve:RadComboBox  
                        ID="RadComboBoxTrack" 
                        Skin="Gray" 
                        runat="server"   
                        Height="200px"   
                        Width="200px" 
                        DropDownWidth="298px" 
                        EmptyMessage=""   
                        HighlightTemplatedItems="true" 
                        Filter="Contains" 
                        EnableLoadOnDemand="true"   
                        OnItemsRequested="RadComboBox_ItemsRequested" 
                        DataTextField="track" 
                        DataValueField="track" 
                        MarkFirstMatch="false" 
                        EnableViewState="true" 
                        ShowToggleImage="false" 
                        ToolTip="Search On Track">  
                 </eserve:RadComboBox> 
             </div> 
             <div class="irow">  
                 <span class="ilabel"><asp:Label ID="Label6" runat="server" AssociatedControlID="RadComboBoxProgram" >Program:</asp:Label></span>  
                 <eserve:RadComboBox  
                        ID="RadComboBoxProgram" 
                        Skin="Gray" 
                        runat="server"   
                        Height="200px"   
                        Width="200px" 
                        DropDownWidth="298px" 
                        EmptyMessage=""   
                        HighlightTemplatedItems="true" 
                        Filter="Contains" 
                        EnableLoadOnDemand="true"   
                        OnItemsRequested="RadComboBox_ItemsRequested" 
                        DataTextField="program" 
                        DataValueField="program" 
                        MarkFirstMatch="false" 
                        EnableViewState="true" 
                        ShowToggleImage="false" 
                        ToolTip="Search On Program">  
                 </eserve:RadComboBox> 
             </div> 
             <div class="irow">  
                 <span class="ilabel"><asp:Label ID="Label7" runat="server" AssociatedControlID="RadComboBoxEvent" >Event:</asp:Label></span>  
                 <eserve:RadComboBox  
                        ID="RadComboBoxEvent" 
                        Skin="Gray" 
                        runat="server"   
                        Height="200px"   
                        Width="200px" 
                        DropDownWidth="298px" 
                        EmptyMessage=""   
                        HighlightTemplatedItems="true" 
                        Filter="Contains" 
                        EnableLoadOnDemand="true"   
                        OnItemsRequested="RadComboBox_ItemsRequested" 
                        DataTextField="event" 
                        DataValueField="event" 
                        MarkFirstMatch="false" 
                        EnableViewState="true" 
                        ShowToggleImage="false" 
                        ToolTip="Search On Event">  
                 </eserve:RadComboBox> 
             </div> 
             <div class="irow">  
                 <span class="ilabel"><asp:Label ID="Label8" runat="server" AssociatedControlID="RadComboBoxYear" >Year:</asp:Label></span>  
                 <eserve:RadComboBox  
                        ID="RadComboBoxYear" 
                        Skin="Gray" 
                        runat="server"   
                        Height="200px"   
                        Width="70px" 
                        DropDownWidth="70px" 
                        EmptyMessage=""   
                        HighlightTemplatedItems="true" 
                        ShowToggleImage="true" 
                        ToolTip="Search On Year">  
                        <Items> 
                            <eserve:RadComboBoxItem Text="" />    
                            <eserve:RadComboBoxItem Text="2009" /> 
                        </Items>    
                 </eserve:RadComboBox> 
             </div> 
 
<%--             <div class="irow">  
                 <span class="ilabel"><asp:Label ID="Label10" runat="server" AssociatedControlID="RadComboBoxRoom" >Room:</asp:Label></span>  
                 <eserve:RadComboBox  
                        ID="RadComboBoxRoom" 
                        Skin="Gray" 
                        runat="server"   
                        Height="200px"   
                        Width="200px" 
                        DropDownWidth="298px" 
                        EmptyMessage=""   
                        HighlightTemplatedItems="true" 
                        Filter="Contains" 
                        EnableLoadOnDemand="true"   
                        OnItemsRequested="RadComboBox_ItemsRequested" 
                        DataTextField="room" 
                        DataValueField="room" 
                        MarkFirstMatch="false" 
                        EnableViewState="true" 
                        ShowToggleImage="false" 
                        ToolTip="Search On Room">  
                 </eserve:RadComboBox> 
             </div>--%> 
<%--             <div class="irow">  
                 <span class="ilabel"><asp:Label ID="Label7" runat="server" AssociatedControlID="RadComboBoxDate" >Publishable:</asp:Label></span>  
                 <eserve:RadComboBox  
                        ID="RadComboBoxPublishable" 
                        Skin="Gray" 
                        runat="server"   
                        Width="70px" 
                        DropDownWidth="70px" 
                        EmptyMessage=""   
                        HighlightTemplatedItems="true" 
                        ShowToggleImage="true" 
                        ToolTip="Search On Publishable">  
                        <Items> 
                            <eserve:RadComboBoxItem Text="" />    
                            <eserve:RadComboBoxItem Text="Yes" Value="Y" />    
                            <eserve:RadComboBoxItem Text="No" Value="N" />    
                            <eserve:RadComboBoxItem Text="Partial" Value="P" />    
                        </Items>    
                 </eserve:RadComboBox> 
             </div>--%> 
             <div class="irow">  
                 <span class="ilabel"><asp:Label ID="Label11" runat="server" AssociatedControlID="Button1" >&nbsp;</asp:Label></span>  
                 <%--<asp:Button ID="Button1" runat="server" OnClientClick="openRadWindow(); return false;" Text="search" Width="100" CssClass="button" />--%> 
                 <asp:LinkButton ID="Button1" runat="server" OnClientClick="openRadWindow(); return false;" Text="search" Width="100" CssClass="button" /> 
                 <asp:LinkButton ID="btnClear" runat="server" Text="clear" OnClientClick="clearForm(); return false;" Width="100" CssClass="button" /> 
                 <%--<asp:LinkButton ID="btnViewCart" runat="server" Text="view cart" OnClientClick="openCartWindow(); return false;" Width="100" CssClass="button" />--%> 
             </div> 
         </div> 
         <eserve:RadWindowManager   
            ShowContentDuringLoad="false" 
            KeepInScreenBounds="true" 
            DestroyOnClose="true" 
            Skin="Gray"   
              
            ID="RadWindowManager1" 
            Width="700px"   
             
            VisibleStatusbar="false" 
                           
            runat="server" 
            OnClientClose="updatePage">  
         </eserve:RadWindowManager> 
       </eserve:RadAjaxPanel> 
   </form>         
                       
                       
                       
                       
                       
</asp:Content> 
<asp:Content ID="Content4" ContentPlaceHolderID="_ContentSideBar" Runat="Server">  
</asp:Content> 
 
 
Simon
Telerik team
 answered on 07 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?