Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
99 views
Hi,

My customer wants to have full Keyboard-based access on the Web-based application.
But it is not possible to make a click on the 'Upload' button using Keyboard. Any ideas how to have this running?

I know that there might be a possibility to fill the path of the file manually in the Textbox, but that is not the intention here.
So that is not a solution for me.

Thanks in advance.

Best Regards,
Veenu Munjal
Genady Sergeev
Telerik team
 answered on 09 Mar 2010
2 answers
214 views
Hi,

I am having trouble with the FormDecorator in a multipage setup.

The input boxes come out as an elongated field with strange grey boxes on each end.

Using the same setup, without the multipage, everything works fine.

Here is my code...

<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeBehind="CompanySummary.aspx.cs" Inherits="MaxApplication.Admin.CompanySummary" %> 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">  
    <h1> 
    <asp:Label ID="lblCompanyName" runat="server" Text=""></asp:Label> 
</h1> 
 
    <asp:SqlDataSource ID="SqlDataSourceCompany" runat="server"   
        ConnectionString="<%$ ConnectionStrings:MaxSQLConnectionString %>"   
          
        SelectCommand="SELECT * FROM [company] WHERE ([Comp_CompanyId] = @Comp_CompanyId)"   
        ConflictDetection="CompareAllValues"   
        DeleteCommand="DELETE FROM [company] WHERE [Comp_CompanyId] = @original_Comp_CompanyId AND (([Comp_Name] = @original_Comp_Name) OR ([Comp_Name] IS NULL AND @original_Comp_Name IS NULL)) AND (([Comp_UserId] = @original_Comp_UserId) OR ([Comp_UserId] IS NULL AND @original_Comp_UserId IS NULL)) AND (([Comp_Deleted] = @original_Comp_Deleted) OR ([Comp_Deleted] IS NULL AND @original_Comp_Deleted IS NULL)) AND (([Comp_CreatedDate] = @original_Comp_CreatedDate) OR ([Comp_CreatedDate] IS NULL AND @original_Comp_CreatedDate IS NULL)) AND (([Comp_UpdatedDate] = @original_Comp_UpdatedDate) OR ([Comp_UpdatedDate] IS NULL AND @original_Comp_UpdatedDate IS NULL)) AND (([Comp_Type] = @original_Comp_Type) OR ([Comp_Type] IS NULL AND @original_Comp_Type IS NULL)) AND (([Comp_PhoneNumber] = @original_Comp_PhoneNumber) OR ([Comp_PhoneNumber] IS NULL AND @original_Comp_PhoneNumber IS NULL)) AND (([Comp_Address1] = @original_Comp_Address1) OR ([Comp_Address1] IS NULL AND @original_Comp_Address1 IS NULL)) AND (([Comp_Address2] = @original_Comp_Address2) OR ([Comp_Address2] IS NULL AND @original_Comp_Address2 IS NULL)) AND (([Comp_Address3] = @original_Comp_Address3) OR ([Comp_Address3] IS NULL AND @original_Comp_Address3 IS NULL)) AND (([Comp_Address4] = @original_Comp_Address4) OR ([Comp_Address4] IS NULL AND @original_Comp_Address4 IS NULL)) AND (([Comp_City] = @original_Comp_City) OR ([Comp_City] IS NULL AND @original_Comp_City IS NULL)) AND (([Comp_Postcode] = @original_Comp_Postcode) OR ([Comp_Postcode] IS NULL AND @original_Comp_Postcode IS NULL)) AND (([Comp_Country] = @original_Comp_Country) OR ([Comp_Country] IS NULL AND @original_Comp_Country IS NULL)) AND (([Comp_EmailAddress] = @original_Comp_EmailAddress) OR ([Comp_EmailAddress] IS NULL AND @original_Comp_EmailAddress IS NULL))"   
        InsertCommand="INSERT INTO [company] ([Comp_Name], [Comp_UserId], [Comp_Deleted], [Comp_CreatedDate], [Comp_UpdatedDate], [Comp_Type], [Comp_PhoneNumber], [Comp_Address1], [Comp_Address2], [Comp_Address3], [Comp_Address4], [Comp_City], [Comp_Postcode], [Comp_Country], [Comp_EmailAddress]) VALUES (@Comp_Name, @Comp_UserId, @Comp_Deleted, @Comp_CreatedDate, @Comp_UpdatedDate, @Comp_Type, @Comp_PhoneNumber, @Comp_Address1, @Comp_Address2, @Comp_Address3, @Comp_Address4, @Comp_City, @Comp_Postcode, @Comp_Country, @Comp_EmailAddress)"   
        OldValuesParameterFormatString="original_{0}"   
        UpdateCommand="UPDATE [company] SET [Comp_Name] = @Comp_Name, [Comp_UserId] = @Comp_UserId, [Comp_Deleted] = @Comp_Deleted, [Comp_CreatedDate] = @Comp_CreatedDate, [Comp_UpdatedDate] = @Comp_UpdatedDate, [Comp_Type] = @Comp_Type, [Comp_PhoneNumber] = @Comp_PhoneNumber, [Comp_Address1] = @Comp_Address1, [Comp_Address2] = @Comp_Address2, [Comp_Address3] = @Comp_Address3, [Comp_Address4] = @Comp_Address4, [Comp_City] = @Comp_City, [Comp_Postcode] = @Comp_Postcode, [Comp_Country] = @Comp_Country, [Comp_EmailAddress] = @Comp_EmailAddress WHERE [Comp_CompanyId] = @original_Comp_CompanyId AND (([Comp_Name] = @original_Comp_Name) OR ([Comp_Name] IS NULL AND @original_Comp_Name IS NULL)) AND (([Comp_UserId] = @original_Comp_UserId) OR ([Comp_UserId] IS NULL AND @original_Comp_UserId IS NULL)) AND (([Comp_Deleted] = @original_Comp_Deleted) OR ([Comp_Deleted] IS NULL AND @original_Comp_Deleted IS NULL)) AND (([Comp_CreatedDate] = @original_Comp_CreatedDate) OR ([Comp_CreatedDate] IS NULL AND @original_Comp_CreatedDate IS NULL)) AND (([Comp_UpdatedDate] = @original_Comp_UpdatedDate) OR ([Comp_UpdatedDate] IS NULL AND @original_Comp_UpdatedDate IS NULL)) AND (([Comp_Type] = @original_Comp_Type) OR ([Comp_Type] IS NULL AND @original_Comp_Type IS NULL)) AND (([Comp_PhoneNumber] = @original_Comp_PhoneNumber) OR ([Comp_PhoneNumber] IS NULL AND @original_Comp_PhoneNumber IS NULL)) AND (([Comp_Address1] = @original_Comp_Address1) OR ([Comp_Address1] IS NULL AND @original_Comp_Address1 IS NULL)) AND (([Comp_Address2] = @original_Comp_Address2) OR ([Comp_Address2] IS NULL AND @original_Comp_Address2 IS NULL)) AND (([Comp_Address3] = @original_Comp_Address3) OR ([Comp_Address3] IS NULL AND @original_Comp_Address3 IS NULL)) AND (([Comp_Address4] = @original_Comp_Address4) OR ([Comp_Address4] IS NULL AND @original_Comp_Address4 IS NULL)) AND (([Comp_City] = @original_Comp_City) OR ([Comp_City] IS NULL AND @original_Comp_City IS NULL)) AND (([Comp_Postcode] = @original_Comp_Postcode) OR ([Comp_Postcode] IS NULL AND @original_Comp_Postcode IS NULL)) AND (([Comp_Country] = @original_Comp_Country) OR ([Comp_Country] IS NULL AND @original_Comp_Country IS NULL)) AND (([Comp_EmailAddress] = @original_Comp_EmailAddress) OR ([Comp_EmailAddress] IS NULL AND @original_Comp_EmailAddress IS NULL))">  
        <SelectParameters> 
            <asp:QueryStringParameter Name="Comp_CompanyId"   
                QueryStringField="Comp_CompanyId" Type="Int32" /> 
        </SelectParameters> 
        <DeleteParameters> 
            <asp:Parameter Name="original_Comp_CompanyId" Type="Int32" /> 
            <asp:Parameter Name="original_Comp_Name" Type="String" /> 
            <asp:Parameter Name="original_Comp_UserId" Type="String" /> 
            <asp:Parameter Name="original_Comp_Deleted" Type="Boolean" /> 
            <asp:Parameter Name="original_Comp_CreatedDate" Type="DateTime" /> 
            <asp:Parameter Name="original_Comp_UpdatedDate" Type="DateTime" /> 
            <asp:Parameter Name="original_Comp_Type" Type="String" /> 
            <asp:Parameter Name="original_Comp_PhoneNumber" Type="String" /> 
            <asp:Parameter Name="original_Comp_Address1" Type="String" /> 
            <asp:Parameter Name="original_Comp_Address2" Type="String" /> 
            <asp:Parameter Name="original_Comp_Address3" Type="String" /> 
            <asp:Parameter Name="original_Comp_Address4" Type="String" /> 
            <asp:Parameter Name="original_Comp_City" Type="String" /> 
            <asp:Parameter Name="original_Comp_Postcode" Type="String" /> 
            <asp:Parameter Name="original_Comp_Country" Type="String" /> 
            <asp:Parameter Name="original_Comp_EmailAddress" Type="String" /> 
        </DeleteParameters> 
        <UpdateParameters> 
            <asp:Parameter Name="Comp_Name" Type="String" /> 
            <asp:Parameter Name="Comp_UserId" Type="String" /> 
            <asp:Parameter Name="Comp_Deleted" Type="Boolean" /> 
            <asp:Parameter Name="Comp_CreatedDate" Type="DateTime" /> 
            <asp:Parameter Name="Comp_UpdatedDate" Type="DateTime" /> 
            <asp:Parameter Name="Comp_Type" Type="String" /> 
            <asp:Parameter Name="Comp_PhoneNumber" Type="String" /> 
            <asp:Parameter Name="Comp_Address1" Type="String" /> 
            <asp:Parameter Name="Comp_Address2" Type="String" /> 
            <asp:Parameter Name="Comp_Address3" Type="String" /> 
            <asp:Parameter Name="Comp_Address4" Type="String" /> 
            <asp:Parameter Name="Comp_City" Type="String" /> 
            <asp:Parameter Name="Comp_Postcode" Type="String" /> 
            <asp:Parameter Name="Comp_Country" Type="String" /> 
            <asp:Parameter Name="Comp_EmailAddress" Type="String" /> 
            <asp:Parameter Name="original_Comp_CompanyId" Type="Int32" /> 
            <asp:Parameter Name="original_Comp_Name" Type="String" /> 
            <asp:Parameter Name="original_Comp_UserId" Type="String" /> 
            <asp:Parameter Name="original_Comp_Deleted" Type="Boolean" /> 
            <asp:Parameter Name="original_Comp_CreatedDate" Type="DateTime" /> 
            <asp:Parameter Name="original_Comp_UpdatedDate" Type="DateTime" /> 
            <asp:Parameter Name="original_Comp_Type" Type="String" /> 
            <asp:Parameter Name="original_Comp_PhoneNumber" Type="String" /> 
            <asp:Parameter Name="original_Comp_Address1" Type="String" /> 
            <asp:Parameter Name="original_Comp_Address2" Type="String" /> 
            <asp:Parameter Name="original_Comp_Address3" Type="String" /> 
            <asp:Parameter Name="original_Comp_Address4" Type="String" /> 
            <asp:Parameter Name="original_Comp_City" Type="String" /> 
            <asp:Parameter Name="original_Comp_Postcode" Type="String" /> 
            <asp:Parameter Name="original_Comp_Country" Type="String" /> 
            <asp:Parameter Name="original_Comp_EmailAddress" Type="String" /> 
        </UpdateParameters> 
        <InsertParameters> 
            <asp:Parameter Name="Comp_Name" Type="String" /> 
            <asp:Parameter Name="Comp_UserId" Type="String" /> 
            <asp:Parameter Name="Comp_Deleted" Type="Boolean" /> 
            <asp:Parameter Name="Comp_CreatedDate" Type="DateTime" /> 
            <asp:Parameter Name="Comp_UpdatedDate" Type="DateTime" /> 
            <asp:Parameter Name="Comp_Type" Type="String" /> 
            <asp:Parameter Name="Comp_PhoneNumber" Type="String" /> 
            <asp:Parameter Name="Comp_Address1" Type="String" /> 
            <asp:Parameter Name="Comp_Address2" Type="String" /> 
            <asp:Parameter Name="Comp_Address3" Type="String" /> 
            <asp:Parameter Name="Comp_Address4" Type="String" /> 
            <asp:Parameter Name="Comp_City" Type="String" /> 
            <asp:Parameter Name="Comp_Postcode" Type="String" /> 
            <asp:Parameter Name="Comp_Country" Type="String" /> 
            <asp:Parameter Name="Comp_EmailAddress" Type="String" /> 
        </InsertParameters> 
    </asp:SqlDataSource> 
    <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server"  DecoratedControls="All"/>  
      
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server"   
        Skin="Default">  
    </telerik:RadAjaxLoadingPanel> 
    <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">  
    </telerik:RadScriptManager> 
      
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" height="200px"   
        width="100%">  
        <telerik:RadTabStrip ID="RadTabStrip1" runat="server"   
            MultiPageID="RadMultiPage1" SelectedIndex="0">  
            <Tabs> 
                <telerik:RadTab runat="server" Text="Summary" Selected="True">  
                </telerik:RadTab> 
                <telerik:RadTab runat="server" Text="Jobs">  
                </telerik:RadTab> 
                <telerik:RadTab runat="server" Text="Invoices">  
                </telerik:RadTab> 
            </Tabs> 
    </telerik:RadTabStrip> 
      
        <telerik:RadMultiPage ID="RadMultiPage1" Runat="server" SelectedIndex="0">  
            <telerik:RadPageView ID="RadPageView1" runat="server">  
              
              <div class="smallwindow">  
              <h2>Summary</h2> 
                  
                  
                 <asp:FormView ID="FormView1" runat="server" DataKeyNames="Comp_CompanyId"   
        DataSourceID="SqlDataSourceCompany"   Width="100%" onitemcommand="FormView1_ItemCommand"   
                      oniteminserting="FormView1_ItemInserting" onload="FormView1_Load"   
                        onitemupdated="FormView1_ItemUpdated">  
        <EditItemTemplate> 
           <table style="width: 100%" cellpadding="2">  
                <tr> 
                    <td > 
                        Name  
                        <br /> 
                        <asp:TextBox ID="Comp_NameTextBox" runat="server"   
                            Text='<%# Bind("Comp_Name") %>' /> 
                    </td> 
                    <td> 
                        Email<br /> 
                        <asp:TextBox ID="Comp_EmailAddressTextBox" runat="server"   
                            Text='<%# Bind("Comp_EmailAddress") %>' /> 
                    </td> 
                    <td> 
                        Phone<br /> 
                        <asp:TextBox ID="Comp_PhoneNumberTextBox" runat="server"   
                            Text='<%# Bind("Comp_PhoneNumber") %>' /> 
                    </td> 
                </tr> 
                <tr> 
                    <td> 
                        &nbsp;</td> 
                    <td> 
                        &nbsp;</td> 
                    <td> 
                        &nbsp;</td> 
                </tr> 
                <tr> 
                    <td> 
                        Address1<br /> 
                        <asp:TextBox ID="Comp_Address1TextBox" runat="server"   
                            Text='<%# Bind("Comp_Address1") %>' /> 
                    </td> 
                    <td> 
                        Address 2<br /> 
                        <asp:TextBox ID="Comp_Address2TextBox" runat="server"   
                            Text='<%# Bind("Comp_Address2") %>' /> 
                    </td> 
                    <td> 
                        Address 3<br /> 
                        <asp:TextBox ID="Comp_Address3TextBox" runat="server"   
                            Text='<%# Bind("Comp_Address3") %>' /> 
                    </td> 
                </tr> 
                <tr> 
                    <td> 
                        City<br /> 
                        <asp:TextBox ID="Comp_CityTextBox" runat="server"   
                            Text='<%# Bind("Comp_City") %>' /> 
                    </td> 
                    <td> 
                        Post Code<br /> 
                        <asp:TextBox ID="Comp_PostcodeTextBox" runat="server"   
                            Text='<%# Bind("Comp_Postcode") %>' /> 
                    </td> 
                    <td> 
                        &nbsp;</td> 
                </tr> 
            </table> 
            <asp:HiddenField ID="Comp_Type" runat="server"   
                Value='<%# Eval("Comp_Type") %>' /> 
            <br /> 
            <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True"   
                CommandName="Update" Text="Update" /> 
            &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server"   
                CausesValidation="False" CommandName="Cancel" Text="Cancel" /> 
        </EditItemTemplate> 
        <InsertItemTemplate> 
         
             
            <table style="width: 100%" cellpadding="2">  
                <tr> 
                    <td > 
                        Name  
                        <br /> 
                        <asp:TextBox ID="Comp_NameTextBox" runat="server"   
                            Text='<%# Bind("Comp_Name") %>' /> 
                    </td> 
                    <td> 
                        Email<br /> 
                        <asp:TextBox ID="Comp_EmailAddressTextBox" runat="server"   
                            Text='<%# Bind("Comp_EmailAddress") %>' /> 
                    </td> 
                    <td> 
                        Phone<br /> 
                        <asp:TextBox ID="Comp_PhoneNumberTextBox" runat="server"   
                            Text='<%# Bind("Comp_PhoneNumber") %>' /> 
                    </td> 
                </tr> 
                <tr> 
                    <td> 
                        &nbsp;</td> 
                    <td> 
                        &nbsp;</td> 
                    <td> 
                        &nbsp;</td> 
                </tr> 
                <tr> 
                    <td> 
                        Address1<br /> 
                        <asp:TextBox ID="Comp_Address1TextBox" runat="server"   
                            Text='<%# Bind("Comp_Address1") %>' /> 
                    </td> 
                    <td> 
                        Address 2<br /> 
                        <asp:TextBox ID="Comp_Address2TextBox" runat="server"   
                            Text='<%# Bind("Comp_Address2") %>' /> 
                    </td> 
                    <td> 
                        Address 3<br /> 
                        <asp:TextBox ID="Comp_Address3TextBox" runat="server"   
                            Text='<%# Bind("Comp_Address3") %>' /> 
                    </td> 
                </tr> 
                <tr> 
                    <td> 
                        City<br /> 
                        <asp:TextBox ID="Comp_CityTextBox" runat="server"   
                            Text='<%# Bind("Comp_City") %>' /> 
                    </td> 
                    <td> 
                        Post Code<br /> 
                        <asp:TextBox ID="Comp_PostcodeTextBox" runat="server"   
                            Text='<%# Bind("Comp_Postcode") %>' /> 
                    </td> 
                    <td> 
                        &nbsp;</td> 
                </tr> 
            </table> 
            <asp:HiddenField ID="Comp_Type" runat="server"   
                Value='<%# Eval("Comp_Type") %>' /> 
            <br /> 
            <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True"   
                CommandName="Insert" Text="Insert" /> 
            &nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server"   
                CausesValidation="False" CommandName="Cancel" Text="Cancel" /> 
        </InsertItemTemplate> 
        <ItemTemplate> 
          
 
        <table style="width: 100%" cellpadding="2">  
                <tr> 
                    <td > 
                        Name  
                        <br /> 
                       <asp:Label ID="Comp_NameLabel" runat="server" Text='<%# Bind("Comp_Name") %>' /> 
            <br /> 
                    </td> 
                    <td> 
                        Email<br /> 
                        <asp:Label ID="Comp_EmailAddressLabel" runat="server"   
                Text='<%# Bind("Comp_EmailAddress") %>' /> 
                    </td> 
                    <td> 
                        Phone<br /> 
                        <asp:Label ID="Comp_PhoneNumberLabel" runat="server"   
                Text='<%# Bind("Comp_PhoneNumber") %>' /> 
                    </td> 
                </tr> 
                <tr> 
                    <td> 
                        &nbsp;</td> 
                    <td> 
                        &nbsp;</td> 
                    <td> 
                        &nbsp;</td> 
                </tr> 
                <tr> 
                    <td> 
                        Address1<br /> 
                        <asp:Label ID="Comp_Address1Label" runat="server"   
                Text='<%# Bind("Comp_Address1") %>' /> 
                    </td> 
                    <td> 
                        Address 2<br /> 
                        <asp:Label ID="Comp_Address2Label" runat="server"   
                Text='<%# Bind("Comp_Address2") %>' /> 
                    </td> 
                    <td> 
                        Address 3<br /> 
                        <asp:Label ID="Comp_Address3Label" runat="server"   
                Text='<%# Bind("Comp_Address3") %>' /> 
                    </td> 
                </tr> 
                <tr> 
                    <td> 
                        City<br /> 
                        <asp:Label ID="Comp_CityLabel" runat="server" Text='<%# Bind("Comp_City") %>' /> 
                    </td> 
                    <td> 
                        Post Code<br /> 
                        <asp:Label ID="Comp_PostcodeLabel" runat="server"   
                Text='<%# Bind("Comp_Postcode") %>' /> 
                    </td> 
                    <td> 
                        &nbsp;</td> 
                </tr> 
            </table> 
                  
         <asp:LinkButton ID="EditButton" runat="server" CausesValidation="False"   
                CommandName="Edit" Text="Edit" /> 
              
        </ItemTemplate> 
    </asp:FormView> 
                  
              </div> 
            </telerik:RadPageView> 
            <telerik:RadPageView ID="RadPageView2" runat="server">  
            <div class="smallwindow"><h2>Jobs</h2></div>  
            </telerik:RadPageView> 
            <telerik:RadPageView ID="RadPageView3" runat="server">  
            <div class="smallwindow"><h2>Invoices</h2></div>  
            </telerik:RadPageView> 
        </telerik:RadMultiPage> 
          
    </telerik:RadAjaxPanel> 
 
</asp:Content> 
 
Tony Casey
Top achievements
Rank 1
 answered on 09 Mar 2010
1 answer
59 views
I got all views working fine in Firefox, but when I click in DayView or WeekView in IE it goes out of the margins, as in the attached image.

The scroll looks wright but don't work, to go up and down I can only use the scroll of the window.

The code it's like this:
 
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"  /> 
    
            <telerik:RadSplitter runat="server" ID="RadSplitter1" PanesBorderSize="0" Width="100%" Height=700px 
                > 
                <telerik:RadPane runat="Server" ID="leftPane" Width="20%"  MinWidth="200"    
                    Scrolling="Y"  
                    OnClientResizing="hideScrollableArea" OnClientResized="showScrollableArea" 
                    OnClientExpanding="hideScrollableArea" OnClientExpanded="showScrollableArea" 
                    OnClientCollapsing="hideScrollableArea" OnClientCollapsed="showScrollableArea" 
                    > 
                    <div class="calendar-container"
                        <telerik:RadCalendar runat="server" Width="100%" ID="RadCalendar1"  AutoPostBack="true" 
                            EnableMultiSelect="false" DayNameFormat="FirstTwoLetters" EnableNavigation="true" 
                            EnableMonthYearFastNavigation="false" OnSelectionChanged="RadCalendar1_SelectionChanged" 
                            FastNavigationStep=12   
                            > 
                        </telerik:RadCalendar> 
                    </div> 
                    <telerik:RadPanelBar runat="server"  ID="PanelBar"  Width="100%" > 
                        <Items> 
                            <telerik:RadPanelItem id="RadPanelItem1" runat="server"  Text="Eventos" Expanded="true"
                                <Items> 
                                    <telerik:RadPanelItem runat="server" Width="100%"
                                        <ItemTemplate> 
                                            <div class="rpCheckBoxPanel"
                                                <asp:Repeater runat="server"  ID="rep_tipo_evento_trab">... </asp:Repeater> 
                                            </div> 
                                        </ItemTemplate> 
                                    </telerik:RadPanelItem> 
                                </Items> 
                            </telerik:RadPanelItem> 
                        </Items> 
                    </telerik:RadPanelBar> 
                </telerik:RadPane> 
                <telerik:RadSplitBar runat="server" ID="RadSplitBar2" CollapseMode="Forward" /> 
                <telerik:RadPane runat="Server" ID="rightPane" Scrolling=Y  Width="80%"   >                     
                      
                 <telerik:RadScheduler runat="server" ID="RadScheduler1"  Height=700px 
...                         
OverflowBehavior="Expand"         
...                        >                                 
                    </telerik:RadScheduler> 
                     
                </telerik:RadPane> 
           
            </telerik:RadSplitter> 




Peter
Telerik team
 answered on 09 Mar 2010
2 answers
85 views
Hi,

I have a splitter setup with two panes and a splitbar for resizing or collapsing the panes.  The panes are setup so that in the left pane I have a dropdown combo box that contains all my dates populated by a sqldatasource control while on the right pane there is a chart control that is databound to a sqldatasource which uses the comboxbox from the left pane as one of the select paremeters, thereby controlling the date of the data that will display in the chart.

The problem is whenever this page loads the sqldatasource from the right pane cannot see the control on the left pane so the page fails to load.  The error is simply "Cannot find control RadBombobox1".

Why is this happening and is there anything that can be done?  Seems like the only way I can get it all to work is to be sure the combobox and it's sqldatasource are all on the same pane and not seperate ones.

Thanks,
Ron
Ron
Top achievements
Rank 2
 answered on 09 Mar 2010
6 answers
1.0K+ views
I'm trying to get a column of comboboxes to move focus from one to the next one down when the user hits enter.  The code below will move to the next one ok but the current one (and all previous ones) remains highlighted.  Is there a way to deselect the old combo or a different way to change focus?

ASPX - C#
cb.Attributes.Add("onkeydown"string.Format("ControlKeyPress(this,event,'{0}',{1});""PurchaseComboBox", dataItem.ItemIndex)); 

JS
            function ControlKeyPress(sender, args, control, index) {  
                if (args.keyCode == 13) {  
                    var dataItems = createGrid.get_masterTableView().get_dataItems();  
                    if (index < dataItems.length) {  
                        var nextControl = dataItems[index + 1].findControl(control);  
                        var input;  
                        if (typeof (nextControl.get_inputDomElement) == "undefined") {  
                            input = nextControl;  
                        } else {  
                            input = nextControl.get_inputDomElement();  
                        }  
                        window.setTimeout(function() { input.focus(); }, 0);  
                    }  
                }  
            }  
 

Kalina
Telerik team
 answered on 09 Mar 2010
1 answer
292 views
Hello I m Using RadListBox and Checkbox Property is true
now when radlistbox is load during that time check box and text display without space between that
screenshot is attahced here. Probelm is not in IE but issue in Other Browser.



Veselin Vasilev
Telerik team
 answered on 09 Mar 2010
3 answers
180 views
Hello,

         I am using Rad Ajax ASP.NET control 2008.Q2. In certain cases, my rad window stretches to some height, as a result I am unable to see Title bar and Status bar of the Window. I observed from an articles(

http://www.telerik.com/help/aspnet/window/differencesbrowser.html, http://www.telerik.com/help/aspnet/window/keyboardsupport.html), states there is possibility to close as well as change the active window through Keyboard Shortcuts. I am tried in my project but I couldn't able to create an instance to WindowShortcut class as mentioned in the articles.

Can anyone help me to fix it up. Really I am running out of time.

Thanks in advance.

Georgi Tunev
Telerik team
 answered on 09 Mar 2010
4 answers
105 views
Hi there

When I add an entry into the Scheduler (on my project as well as your online demo's) for e.g. a Wednesday and set the entry to recur for the next three weeks on Monday's, the first Wednesday entry does not show in the Scheduler.

In other words, I do the following:

  • Create a new entry into the Scheduler for a Wednesday and click the Recurrence check box
  • I click the Weekly radio button
  • Wednesday is automatically checked, I uncheck that and check Monday
  • I then end it after 3 occurances

When I submit, the initial Wednesday entry does not show in the Scheduler, only the 3 Monday recurrences.

What then happens is if I show my events in a RadGrid, the initial Wednesday event shows in the grid, but when I open the Scheduler, it doesn't.

Any advise?

Greetings

Gerrit

Gerrit du Preez
Top achievements
Rank 1
 answered on 09 Mar 2010
6 answers
307 views
Hi,

I have an ajaxified RadGrid with a single GridImageColumn.

<telerik:RadGrid ID="RadGrid1" runat="server" Skin="Black" AllowPaging="true" PageSize="20" 
            AutoGenerateColumns="False" AllowSorting="True" AllowFilteringByColumn="True"
            <ClientSettings EnableRowHoverStyle="true"
                <ClientEvents OnRowDblClick="RowDblClick" /> 
            </ClientSettings> 
            <MasterTableView CommandItemDisplay="Top" DataKeyNames="id_film" CommandItemSettings-AddNewRecordText="Ajoutez un film" 
                NoMasterRecordsText="Aucun résultat" AllowMultiColumnSorting="true"
                <Columns> 
                    <telerik:GridImageColumn DataType="System.String" DataImageUrlFields="id_film" DataImageUrlFormatString="Affiches/{0}_Mini.jpg" 
                        DataAlternateTextField="titre" ImageAlign="Middle" ImageHeight="100" ImageWidth="75" 
                        AllowSorting="false" AllowFiltering="false" UniqueName="affiche" /> 
                </Columns> 
                <EditFormSettings EditFormType="Template"
                    <FormTemplate> 
                        <asp:Button ID="Button1" Text='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "Enregistrer", "Modifier") %>' 
                            runat="server" CommandName='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "PerformInsert", "Update")%>'
                        </asp:Button> 
                    </FormTemplate> 
                </EditFormSettings> 
            </MasterTableView> 
        </telerik:RadGrid> 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="RadGrid1"
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 

When updating a item, I overwrite the image (the image url stay the same).

 Protected Sub RadGrid1_ItemCommand(ByVal source As Object, ByVal e As GridCommandEventArgs) Handles RadGrid1.ItemCommand 
        
        If (e.CommandName = RadGrid.UpdateCommandName) Then 
            
             
            'Upload Affiche 
            Dim myRequest As HttpWebRequest 
            Dim myResponse As HttpWebResponse 
            Dim s As System.IO.Stream 
            Dim graphicTemp As System.Drawing.Graphics 
            Dim ImageSource As System.Drawing.Image 
            Dim affiche_url = "http://thenewimage" 
            myRequest = WebRequest.Create(affiche_url) 
            myResponse = myRequest.GetResponse() 
            s = myResponse.GetResponseStream() 
            ImageSource = System.Drawing.Image.FromStream(s) 
            graphicTemp = System.Drawing.Graphics.FromImage(ImageSource) 
            graphicTemp.CompositingMode = System.Drawing.Drawing2D.CompositingMode.SourceOver 
            graphicTemp.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality 
            graphicTemp.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality 
            graphicTemp.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic 
            graphicTemp.PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode.HighQuality 
            graphicTemp.DrawImage(ImageSource, 0, 0, ImageSource.Size.Width, ImageSource.Size.Height) 
            graphicTemp.Dispose() 
            ImageSource.Save(Server.MapPath("~/Media/Affiches/" & e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("id_film") & "_Normal.jpg"), System.Drawing.Imaging.ImageFormat.Jpeg) 
            ImageSource.Dispose() 
            s.Close() 
            myResponse.Close() 
             
 
        End If 
    End Sub 

The problem is the following :
When the Grid is rebind after the update, the image has not been refreshed within the grid, its still the old one. I have to refresh the page (F5) to make the changes visible.

Any ideas ?

- My grid is bind using needdatasource
- I tried to replace the imagecolumn by a templatecolumn -> same problem
- I tried to set the imageurl inthe itemdatabound event of the grid -> same problem

Thank You
Arnaud Boiselle


arnaud
Top achievements
Rank 1
 answered on 09 Mar 2010
1 answer
129 views

 

Hi,

I've a radgrid wrapped inside a panel.
The cssclass 'panel_css'  contains height and width of 100%.

the problem I'm facing is in compatibilty mode on, the below code is fine. It renders properly.

But if compatibility mode is turned off, then when I resize the columns by moving the column handle, the whole grid can be stretched beyond the width of the screen. I don't want this weird behaviour. the grid should always be fixed(but I don't want to give width in pixels). I even tried setting the table layout to fixed. but this didn't work.

Note: the grid stretches beyond the width of the screen only if compatibility is turned off.
If compatibility is turned on, this works fine.

<
asp:Panel ID="panel1"

 

 

runat="server"

 

 

CssClass ="panel_css">

 

 

<telerik:RadGrid ID="m_radGrid"

 

 

GridLines="None"

 

 

runat="server"

 

 

AllowMultiRowSelection= "True"

 

 

AllowFilteringByColumn= "True"

 

 

onneeddatasource = "m_radGrid_NeedDataSource"

 

 

OnSelectedIndexChanged = "m_radGrid_SelectedIndexChanged"

 

 

OnItemCommand = "m_radGrid_ItemCommand" OnItemDataBound ="m_radGrid_ItemDataBound" TabIndex = "0">

 

 

<MasterTableView AllowPaging="true" AllowSorting="true" AllowFilteringByColumn="true"

 

 

PagerStyle-Mode="NextPrevAndNumeric" PageSize="10">

 

 

<PagerStyle AlwaysVisible="true" />

 

 

<RowIndicatorColumn>

 

 

<HeaderStyle/>

 

 

</RowIndicatorColumn>

 

 

<ExpandCollapseColumn>

 

 

<HeaderStyle />

 

 

</ExpandCollapseColumn>

 

 

</MasterTableView>

 

 

<GroupingSettings CaseSensitive="false" />

 

 

<ClientSettings AllowKeyboardNavigation="True" Selecting-AllowRowSelect="true" Resizing-AllowColumnResize="true">

 

<Scrolling AllowScroll ="true" SaveScrollPosition ="true" UseStaticHeaders ="true"/>

 

 

</ClientSettings>

 

 

</telerik:RadGrid>

 

 

</asp:Panel>

 

Pavlina
Telerik team
 answered on 09 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?