Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
76 views
I have not found an example of a radgrid filter that uses a dropdown list to display the filter list of options but does not use selectedindexchanged to fire the event. I would like it to use the standard filteroptions and filter icon when firing a sort event. Is this possible?
Yavor
Telerik team
 answered on 17 Dec 2009
4 answers
153 views

In a grid that I'm using I have the following declaration:


<
EditFormSettings CaptionFormatString="Edit detail : {0}"
CaptionDataField="ID" PopUpSettings-Modal="true" EditFormType="WebUserControl"

 UserControlName="editDetail.ascx">  

 

 

</EditFormSettings>
And it works fine as long there are no postbacks within the edit form.
On that usercontrol is a dropdownlist that has OnSelectedIndexChanged event with postback.
When the UserControl has been refreshed the caption is no longer Edit detail : 5 but Edit detail {0}.
Other parts of the usercontrol retain their values .

Yours
    Björn

 

 

 

 

 

 

Yavor
Telerik team
 answered on 17 Dec 2009
1 answer
69 views
how to bind releated comboboxes in hierarchical radgrid....
Princy
Top achievements
Rank 2
 answered on 17 Dec 2009
2 answers
143 views
Hello,

When I open a Window with a skin applied, the backgroundcolor is different between IE and FF. Tested with IE7, 8 and FF3.

IE will open te window with white background and FF with black (see screenshots attached). Any idea's why?

Reproduce by:

- Start a new Telerik WebApplication through the template version 2009 Q3 SP1 .Net 3.5 (first 2009 Q3 release had same problem)
- Set Skin in dialog to Black

- Open default.aspx and paste below code:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title></title>  
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" /> 
    <telerik:RadScriptBlock ID="rsblclient" runat="server">  
 
        <script type="text/javascript">  
            function openRequest() {  
                var oWnd = $find("<%=RadWindow1.ClientID%>");  
                oWnd.setUrl('Webform1.aspx');  
                oWnd.show();  
            }  
 
</script> 
</telerik:RadScriptBlock> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
        <Scripts> 
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> 
            <asp:ScriptReference Assembly="Telerik.Web.UI" 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="Black">  
    </telerik:RadSkinManager> 
    <div> 
        <asp:Button ID="btnOpen" runat="server" Text="Open window" OnClientClick="openRequest(); return false;" /> 
        <telerik:RadWindow ID="RadWindow1" runat="server" Modal="true" NavigateUrl="WebForm1.aspx">  
        </telerik:RadWindow> 
    </div> 
    </form> 
</body> 
</html> 
 

- Add new page called: Webform1.aspx
- Put some text on the Webform1.aspx page

- Run project

Attachment 1 is result from FF. Attachment 2 from IE
Yeroon
Top achievements
Rank 2
 answered on 17 Dec 2009
1 answer
114 views
hi

i have a problem.. my window doest open at all

here is the code

<%@ Page Language="vb"MasterPageFile="Main.Master" AutoEventWireup="false" CodeBehind="ElencoUTEPagine.aspx.vb" Inherits="WebBIODemo.UTEPagine" %> 
  
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
 
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" Runat="Server">  
  <div>  
      <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
      </telerik:RadScriptManager>  
 
    <!-- content start --> 
     
       <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"
            <script type="text/javascript"
            function ShowEditForm(id, rowIndex) 
            { 
                var grid = $find("<%= grdUTEPagine.ClientID %>"); 
                 
                var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element(); 
                grid.get_masterTableView().selectItem(rowControl, true); 
                         
                window.radopen("EditUTEPagine.aspx?Id=" + id, "rwdUTEPagine"); 
                return false; 
            } 
            function ShowInsertForm() 
            { 
               window.radopen("EditUTEPagine.aspx", "rwdUTEPagine"); 
               return false; 
            } 
            function refreshGrid(arg) 
            { 
             if(!arg) 
             { 
             $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");             
                } 
                else 
                { 
             $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("RebindAndNavigate");             
                } 
            } 
            function RowDblClick(sender, eventArgs) 
            { 
             var param = eventArgs.getDataKeyValue("CODICELINGUA") + "|" + eventArgs.getDataKeyValue("CODICEFORM"); 
             window.radopen("EditUTEPagine.aspx?Id=" + param , "rwdUTEPagine"); 
            } 
            //help di pagina 
            function OnClientShow() {  
                var value = document.getElementById("lblHelpPagina");  
                alert(value); 
                $get("content").innerHTML = value.value; 
            }        
        function GetRadWindow() 
        { 
            var oWindow = null
            if (window.radWindow) oWindow = window.radWindow; 
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; 
                 
            return oWindow; 
        }                  
            </script> 
        </telerik:RadCodeBlock> 
         
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest"
                <AjaxSettings> 
                    <telerik:AjaxSetting AjaxControlID="RadAjaxManager1"
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="grdUTEPagine" /> 
                        </UpdatedControls> 
                    </telerik:AjaxSetting>                 
                    <telerik:AjaxSetting AjaxControlID="grdUTEPagine"
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="grdUTEPagine" /> 
                        </UpdatedControls> 
                    </telerik:AjaxSetting> 
                </AjaxSettings> 
            </telerik:RadAjaxManager> 
            <!--- inizio controllo radwindow --> 
            <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Hay"
                <Windows> 
                    <telerik:RadWindow ID="rwdUTEPagine" runat="server" Behaviors="Close, Reload, Move" Title="Editing record" Height="570px" 
                        Width="550px" Left="150px" ReloadOnShow="True" ShowContentDuringLoad="False" Modal="True" InitialBehavior="None" Top="" /> 
                    <telerik:RadWindow runat="server" Title="WebBIO Zoom" Behaviors="Close, Reload, Move" Animation="FlyIn" ReloadOnShow="True"   
                        ID="rwdCodiceLingue" Modal="True" Width="500px" Height="600px" InitialBehavior="None" Left="" Top="" /> 
                    <telerik:RadWindow runat="server" Title="WebBIO Zoom" Behaviors="Close, Reload, Move" Animation="FlyIn" ReloadOnShow="True"   
                        ID="rwdCodiceForm" Modal="True" Width="500px" Height="600px" InitialBehavior="None" Left="" Top="" />                         
                    <telerik:RadWindow ID="rwdHelpPagina" runat="server" Behavior="Move,Close,Reload" OnClientShow="OnClientShow" 
                        OpenerElementID="btn" Modal="true" ShowContentDuringLoad="False" Animation="Slide" > 
                        <ContentTemplate> 
                            <div id="content" onload="loadContent1();" > 
                            </div> 
                        </ContentTemplate> 
                    </telerik:RadWindow>                 
                </Windows> 
            </telerik:RadWindowManager> 
            <!--- fine controllo radwindow ---> 
            <!-- pulsante help --> 
      <div style="position:static; left:900px; top:5px"
      <asp:ImageButton ImageUrl="~/_img/help.png" Width="24px" Height="24px" ToolTip="Help di Pagina"  
        ID="btn" runat="server" BorderColor="#257399" BorderStyle="Solid" BorderWidth="1px" /> 
      </div>               
            <table cellspacing="0"
                <tr> 
                    <th align="center" style="font-size:16px"><asp:Label ID="lblTitoloElenco" runat="server" Text="Elenco Utente Pagine" /></th
                </tr> 
                <tr> 
                    <td>        
                        <telerik:RadGrid                        
                            OnItemCreated="grdUTEPagine_ItemCreated" 
                            ID="grdUTEPagine" 
                            runat="server" 
                            PageSize="7" AllowPaging="True" 
                            AutoGenerateColumns="False"  
                            AllowAutomaticDeletes="True" 
                            AllowAutomaticInserts="true" 
                            AllowAutomaticUpdates="true" 
                            AllowSorting="True" 
                            AllowFilteringByColumn="True"                  
                            Width="97%" 
                            DataSourceID="objDS" Skin="Hay"
                            <PagerStyle AlwaysVisible="true" Mode="NumericPages" /> 
                            <MasterTableView 
                                DataKeyNames="CODICELINGUA,CODICEFORM" 
                                ClientDataKeyNames="CODICELINGUA,CODICEFORM" 
                                Width="100%" 
                                CommandItemDisplay="Top" 
                                DataSourceID="objDS"
                                <Columns> 
                                    <telerik:GridTemplateColumn UniqueName="EditRecord" AllowFiltering="False" Resizable="False">                            
                                        <ItemTemplate> 
                                            <asp:HyperLink ID="EditLink" runat="server" Text="Edit"
                                            <img src="_img/Edit.gif" alt="modifica" style="border:none" /></asp:HyperLink> 
                                        </ItemTemplate> 
                                        <HeaderStyle Width="24px" /> 
                                    </telerik:GridTemplateColumn> 
 
                                       <telerik:GridBoundColumn DataField="CODICELINGUA" HeaderText="Codice Lingua" SortExpression="CODICELINGUA"  
                                            UniqueName="colCODICELINGUA" FilterImageToolTip="Filtro per Codice Lingua">                                 
                                        </telerik:GridBoundColumn> 
                                         
                                       <telerik:GridBoundColumn DataField="DESCR" HeaderText="Nome Form" SortExpression="DESCR"  
                                            UniqueName="colDESCR" FilterImageToolTip="Filtro per CODICEFORM">                                 
                                        </telerik:GridBoundColumn>                               
 
                                       <telerik:GridBoundColumn DataField="DESCRIZIONE" HeaderText="Descrizione" SortExpression="DESCRIZIONE"  
                                            UniqueName="colDESCRIZIONE" FilterImageToolTip="Filtro per descrizione">  
                                            <HeaderStyle Width="310px" />  
                                        </telerik:GridBoundColumn>        
                                                  
                                        <telerik:GridBoundColumn DataField="DESCRIZIONEAIUTO" HeaderText="Descrizione AIUTO" SortExpression="DESCRIZIONEAIUTO"  
                                            UniqueName="colDESCRIZIONEAIUTO" FilterImageToolTip="Filtro per descrizione Aiuto">  
                                            <HeaderStyle Width="310px" />  
                                        </telerik:GridBoundColumn>                    
              
                                        <telerik:GridBoundColumn DataField="ANNOTAZIONI" HeaderText="Annotazioni" SortExpression="ANNOTAZIONI"  
                                            UniqueName="colANNOTAZIONI" FilterImageToolTip="Filtro per Annotazioni">  
                                            <HeaderStyle Width="310px" />  
                                        </telerik:GridBoundColumn>    
                                                                 
                                    <telerik:GridButtonColumn ConfirmText="Eliminare Utente Pagina?" ButtonType="ImageButton" ImageUrl="_img/Delete.gif" CommandName="Delete" Text="Elimina" UniqueName="colDelete"
                                        <HeaderStyle Width="20px" /> 
                                    </telerik:GridButtonColumn>  
 
                                </Columns> 
                                <CommandItemTemplate> 
                                    <href="#" onclick="return ShowInsertForm();"><img src="_img/Insert.gif" alt="nuovo record" style="border:none" />aggiungi</a> 
                                </CommandItemTemplate> 
                            </MasterTableView> 
                            <ClientSettings> 
                                <Selecting AllowRowSelect="True" /> 
                                <ClientEvents OnRowDblClick="RowDblClick" /> 
                            </ClientSettings> 
                        </telerik:RadGrid> 
                    </td> 
                </tr> 
            <tr> 
                <td colspan="2"><asp:Label runat="server" ID="lblErrorMsg" Text=""></asp:Label></td
            </tr>  
            </table> 
    <asp:ObjectDataSource   
        ID="objDS"   
        runat="server"   
        SelectMethod="selectStandardLingue"       
        DeleteMethod="deleteUTEPagine"   
        SortParameterName="orderBy"  
        TypeName="GestioneLingue"  
        ConflictDetection="CompareAllValues"  
        OldValuesParameterFormatString="orig_{0}">  
        <SelectParameters>  
            <asp:ControlParameter ControlID="grdUTEPagine" Name="filterBy" PropertyName="MasterTableView.FilterExpression" Type="String" />  
            <asp:Parameter Name="NomeSP" DefaultValue="UTEPagine_Select" Type="String" /> 
        </SelectParameters>  
          
        <DeleteParameters>  
            <asp:Parameter Name="orig_CODICELINGUA" Type="String" />  
            <asp:Parameter Name="orig_CODICEFORM" Type="Int32" /> 
            <asp:Parameter Name="orig_DESCRIZIONE" Type="String" /> 
            <asp:Parameter Name="orig_DESCRIZIONEAIUTO" Type="String" /> 
            <asp:Parameter Name="orig_ANNOTAZIONI" Type="String" /> 
        </DeleteParameters>  
          
    </asp:ObjectDataSource>         
        <input type="hidden" id="lblHelpPagina" runat="server"/> 
  </div>  
</asp:Content>  

need help asap
i need to finish my project asap

thanks a lot

regards
webster
Georgi Tunev
Telerik team
 answered on 17 Dec 2009
2 answers
122 views
Hi Everyone,

I upgraded from the ASP.Net RadWindow to the ASP.Net AJAX RadWindow, and now, when I dynamically add a window, the "top" property does not work...no matter what I try (and I've tried quite a few things...), the window opens up centered...
  Help!!!

code:
     Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles OpenerButton.Click 
        Dim NewWindow As New Telerik.Web.UI.RadWindow 
        With NewWindow 
            .NavigateUrl = "http://www.telerik.com" 
            .Title = "A RadWindow" 
            .Modal = True 
            .Height = Unit.Pixel(500) 
            .Width = Unit.Pixel(500) 
            .Top = Unit.Pixel(1) 
            .InitialBehaviors = Telerik.Web.UI.WindowBehaviors.None 
            .ReloadOnShow = False 
            .VisibleOnPageLoad = True 
            .VisibleStatusbar = False 
            .EnableViewState = True 
            .DestroyOnClose = True 
            .ID = "ARadWindow" 
            .Behaviors = Telerik.Web.UI.WindowBehaviors.Close 
            .OnClientClose = "OnClientClose" 
            .VisibleTitlebar = True 
            .Visible = True 
        End With 
        RadWindowManager1.Windows.Add(NewWindow) 
    End Sub 
 


aspx:
    <form id="form1" runat="server"
    <asp:Button ID="OpenerButton" runat="server" Text="Button" /> 
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
    </telerik:RadScriptManager> 
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Top="0px"
    <Windows> 
        <telerik:RadWindow ID="RadWindowPlaceholder" runat="server" Top="0px" OnClientShow="OnClientShow"
        </telerik:RadWindow> 
    </Windows> 
    </telerik:RadWindowManager> 
    </form> 
 

Georgi Tunev
Telerik team
 answered on 17 Dec 2009
2 answers
145 views
I upgraded to the latest release last week. I just noticed that I now have two sets of RAD ASP.NET AJAX Q3 2009 controls in my VS2008 projects, one for  NET20 and one for NET35.

Since the site is targeting 3.5, I don't know how I get the NET20 included, or even if this is a potential problem, or not.

What is the recommended action to take?

I considered deleting them from the Toolbox, but again, I don't know if this will fix the problem or cause more damage.

Attachment shows the Toolbox view.
Andrey
Telerik team
 answered on 17 Dec 2009
1 answer
101 views
Hello,

In your Grid Demo - Grid/Self-referencing Hierarchy, when you click on an Employee ID it will collapse and expand the row under it.  This is not a parent row and the row below it is not a child row.  How can I change the code so that this doesn't happen?  It should only expand and collapse on those rows that have child nodes.

Thanks,

Randy
Pavlina
Telerik team
 answered on 17 Dec 2009
1 answer
86 views


Hi,

I have default sorting in my data grid. So I setup default GridSortExpression in Page Load.
When I retrieve the data, I pass the Field Name and Sort Order to my SQL Query. So GetSortExpression () function return Sort Expression object.
It is working fine for first time and show background color and sort indicator but if u clicks this default sort column again I got the following error. Yes, there is o count in tableView.SortExpressions collection. But I click other column first then click that date column, grid sorted accordingly.

Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: indexe


<telerik:GridTemplateColumn DataField="ProcessDate" HeaderText="Process Date" UniqueName="ProcessDate" Display="true" SortExpression="ProcessDate"
<ItemTemplate>                                          
<asp:Label ID="ProcessDate_TimeZone" runat="server"></asp:Label>                                      
</ItemTemplate>                                      
</telerik:GridTemplateColumn> 

 

protected void Page_Load(object sender, EventArgs e) 
        { 
            if (!this.IsPostBack) 
            { 
                rgProcessLog.MasterTableView.SortExpressions.Clear(); 
                GridSortExpression expression = new GridSortExpression(); 
                expression.FieldName = "ProcessDate"
                expression.SortOrder = GridSortOrder.Descending; 
                rgProcessLog.MasterTableView.SortExpressions.Add(expression); 
            } 
        } 

protected SortExpression GetSortExpression() 
        { 
            GridTableView tableView = rgProcessLog.MasterTableView; 
            SortExpression expression = new SortExpression(); 
            expression.FileName = tableView.SortExpressions[0].FieldName; 
            expression.SortOrder = (DCCPP.BusinessEntities.Enums.Sorting)Enum.Parse(typeof(DCCPP.BusinessEntities.Enums.Sorting), tableView.SortExpressions[0].SortOrder.ToString()); 
            return expression; 
 
        } 

Yavor
Telerik team
 answered on 17 Dec 2009
0 answers
78 views
Hi all,
           I m using custom list to save the values that will be displayed in the rad scheduler. Now I want the event  to recurr based on the condition selected byu the user. I m also savinfg the recurrence rule in the list and have property to set the recurrence rule and recurrence id to the schedular but still recurrence not appreaing on the schedular.



Any help will be appreciated


Thanks

Ajeet
Ajeet Nigam
Top achievements
Rank 1
 asked on 17 Dec 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?