Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
116 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
190 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
147 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
178 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
294 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
3 answers
138 views
Hi
      I am using rad grid having paging option , i would like to change or customize  Page Size text to Report Size. So is there any way to control page size label in the Pager Panel.

Regards,
Appu
Shinu
Top achievements
Rank 2
 answered on 07 Jul 2009
3 answers
130 views
Hi,
I'm trying to do the following,
To have 3 RadComboBox inside InlineInsertTemplate ,
when selecting value inside the first of them, to enable/disable one/two of the others,
and also to have a validator that check once they are enable, if they have value selected,
I would like to accomplish all of that in client side code only.
I have been able to accomplish that in AdvancedInsertTemplate, but its loading time is too slow (modal on latest version, 2009 Q2)

Can this be done?
if so, could you guide me how

Thanks
Mickey
Genady Sergeev
Telerik team
 answered on 07 Jul 2009
12 answers
192 views
I'm using the client side drag & drop functionality and I set a flag to true when the drag starts then set my flag to false when the drag ends (on the OnClientNodeDropping and OnClientNodeDropped events).  It works great unless I drag the node back onto itself.  When I do that, the OnClientNodeDropping and OnClientNodeDropped events don't fire so I don't have a way to reset my flag.  There doesn't seem to be a "OnClientNodeDragEnd" event or any other way to determine when the dragging ended.  How can I capture an event when the node is dragged onto itself?

Thanks,
Matt
Atanas Korchev
Telerik team
 answered on 07 Jul 2009
1 answer
135 views
Hi there,

I'm currently experiencing an issue with static headers and frozen columns on a RadGrid when I replace the HTML for the RadGrid with a HTML stream from a web service which creates and renders an updated RadGrid.  I know this sounds like a very odd scenario for updating the grid, but this was the design choice due to a number of other static elements we have rendered on the page which often need to be re-rendered when the widget area is resized.

I believe the issue is the result of the client-side javascript not being hooked up to the returned elements.  Here's a basic scenario:

- Load a page with a widget on it which contains a RadGrid.
- Resize the widget.  The resize makes a call in javascript to a web service to get an updated RadGrid.
- In the service method, a Page element is created along with a ScriptManager and a RadGrid, which are added to the page.
- The page is rendered to a text stream by calling HttpContext.Current.Server.Execute.
- The resulting text then has everything but the rendered HTML for the RadGrid removed, and is sent as the result of the service method call.
- A callback handler for the completion of the web service request then replaces the innerHTML of the widget (which was the original RadGrid) with the HTML returned from the web service.

At this point, the grid renders correctly on screen and looks fine.  However, the scrolling now scrolls all data columns, including my frozen columns, and the matching column headers and footers do not move when scrolling as they would when the RadGrid is on the page from the beginning.

So, is there a good way that I can reconnect all of the client-side scripting to my returned HTML, such that it treats this HTML replacement as an actual RadGrid, along with all of the column freezing and scrolling that I get when the page is freshly loaded?

Thank you for your time,

Rich

Nikolay Rusev
Telerik team
 answered on 07 Jul 2009
10 answers
375 views
Hi All

Have a radgrid with datas. it works properly.

with a issue.

Issue is:

The MaxLength does not works.

My Code:

<

telerik:GridTemplateColumn UniqueName="Description" DataField="Description" HeaderText="Description">  

 

<ItemTemplate 

 

<asp:TextBox ID="txtDescription1" Columns="15" MaxLength="255" Rows="2" TextMode="MultiLine" Text='<%#Bind("Description")%>'

 

runat="server" ReadOnly="true" ></asp:TextBox 

 

</ItemTemplate 

 

<EditItemTemplate 

 

<asp:TextBox ID="txtDescription" Columns="25" MaxLength="255" Rows="5" TextMode="MultiLine" Text='<%#Bind("Description")%>'

 

runat="server"></asp:TextBox 

 

<asp:RequiredFieldValidator ID="RequiredFieldValidatorDescription" runat="server" ErrorMessage="*"

 

ControlToValidate="txtDescription"></asp:RequiredFieldValidator>  

 

 

</EditItemTemplate 

 

</telerik:GridTemplateColumn>


I have set the MaxLendth to 255, But it not working

Thank You

-Anto

 

 

Anto (DLL Version : 2008.3.1314.35)
Top achievements
Rank 2
 answered on 07 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?