Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
352 views
Hello ,

  I have a RadMenu in my web application. For one of the Rad Menu Item, I would like to open the form in new window. I have tried the Target="_blank". It is not working. I also tried through javascript
function clickHandler(sender, eventArgs)
          {    
        
              if (eventArgs.item.Text == "LunchBreak")
              {
                   //open a pre-defined window from the RadWindowManager's
                   //Windows collection
                  radopen(null,"Window1");
                  //Cancel the postback
                  return false;
              }
          }

 <telerik:RadMenu ID="RadMenu1" runat="server" orientation="Horizontal" Skin="Windows7" OnClientItemClicking="clickHandler"
                 
                EnableRoundedCorners="True" EnableShadows="True" Height="39px"   Width="100%"
                CausesValidation="False">
                <Items>
                <telerik:RadMenuItem runat="server" Text="Home" ImageUrl="~/Images/Home.png"
                        NavigateUrl="~/frm_HomePage.aspx">
                         
                    </telerik:RadMenuItem>
                    
                                     
                    <telerik:RadMenuItem runat="server" Text="Login" ImageUrl="~/Images/Unlock.png" PostBack="False"    Height="35px"
                        NavigateUrl="">
                         <Items>
                          <telerik:RadMenuItem runat="server" Text=" Driver Login" Value="Login"
                                NavigateUrl="~/frm_DriversLogin.aspx" ImageUrl="~/Images/Users-2.png" Height="35px">
                            </telerik:RadMenuItem>
                           </Items>
                    </telerik:RadMenuItem>
                   <telerik:RadMenuItem runat="server" Text="Trip Information" PostBack="False"
                        ImageUrl="~/Images/Users-Details.png" >
                        <Items>
                            
                            <telerik:RadMenuItem runat="server" NavigateUrl="~/frm_RouteDetails.aspx"
                                Text="View/Edit Trips" Value="View Trips" ImageUrl="~/Images/Worker-Edit.png" Height="35px">
                            </telerik:RadMenuItem>
                                                                             </Items>
                    </telerik:RadMenuItem>
                     <telerik:RadMenuItem runat="server" Text="Break" PostBack="False"  
                           ImageUrl="~/Images/ClockNew.png" >
                        <Items>
                        <telerik:RadMenuItem runat="server" Text="LunchBreak"   Target="_blank"
                                Value="Lunch Break" ImageUrl="~/Images/Worker-Time.png"  Height="35px">
                            </telerik:RadMenuItem>
                            
                            <telerik:RadMenuItem runat="server" Text="Break1"  Target="_blank"
                                Value="Break 1" ImageUrl="~/Images/Worker-Time.png" Height="35px">
                                
                            </telerik:RadMenuItem>
                             <telerik:RadMenuItem runat="server" Text="Break2"  Target="_blank"
                                Value="Break 2" ImageUrl="~/Images/Worker-Time.png" Height="35px">
                                
                            </telerik:RadMenuItem>
                             <telerik:RadMenuItem runat="server" Text="Break3"  Target="_blank"
                                Value="Break 3" ImageUrl="~/Images/Worker-Time.png" Height="35px">
                                
                            </telerik:RadMenuItem>
                             </Items>
                    </telerik:RadMenuItem>
                    </Items>
                    
                    </telerik:RadMenu>
                  <telerik:RadWindowManager ID=RadWindowManager1 runat=server>   
       <Windows>  
           <telerik:RadWindow ID=Window1 runat=server NavigateUrl="frm_BreakTime.aspx" />  
       </Windows>  
   </telerik:RadWindowManager>  


The Run time error I am getting.......

Microsoft JScript runtime error: 'item.Text' is null or not an object

Thanks


Shinu
Top achievements
Rank 2
 answered on 12 Jan 2012
8 answers
370 views
Hi,

I'm using an "AppointmentTemplate" to display my appointments. However in Timeline view (also in Month/Week view) only part of my templates is visible and the rest is cut off. This is due to the fact that the height of the "appointment" cells is fix.

Is there anyway I can modify the size of the "appointment" cells.

Also, I'm grouping by a resource. How can I specify the height of the groups in Timeline view so that all my cells are of the same height.

Any help will be greatly appreciated for the above.

Thanks ... 
Kate
Telerik team
 answered on 12 Jan 2012
8 answers
235 views
Good morning,
I'm trying to make a radGrid with an nested part that is multipage (much like this example, but with forms in the multipages that interact with the database(which aren't implemented yet)). Since Wednesday, I get the following error when I try to expand a row:

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Script control 'RadTabStrip1' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
Parameter name: scriptControl


The page used to work, without any problem, displaying the nested view correctly. I tried to check the differences in the code (including the code behind) to find what could have caused the change and honestly, I'm stumped. Any help would be GREATLY appreciated.

Here's the code for my grid:
<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" DataSourceID="obsDetailsLogclByCat" 
    GridLines="None" Skin="Vista" AllowAutomaticUpdates="True" AllowMultiRowSelection="false" 
    ShowGroupPanel="true" AllowAutomaticInserts="True" AllowAutomaticDeletes="True"
    <MasterTableView DataSourceID="obsDetailsLogclByCat" GroupLoadMode="Server" CommandItemDisplay="Top" 
        CommandItemSettings-AddNewRecordText="Ajouter un nouveau logiciel" EditFormSettings-ColumnNumber="2" 
        AllowAutomaticUpdates="True" AllowAutomaticInserts="True" CommandItemStyle-ForeColor="White" 
        AllowAutomaticDeletes="True"
        <Columns> 
            <telerik:GridButtonColumn ConfirmText="Delete this product?" ConfirmDialogType="RadWindow" 
                ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete" 
                UniqueName="DeleteColumn"
                <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" /> 
            </telerik:GridButtonColumn> 
        </Columns> 
        <NestedViewSettings DataSourceID="obsDetailsLogclByCat"
            <ParentTableRelation> 
                <telerik:GridRelationFields DetailKeyField="ID" MasterKeyField="ID" /> 
            </ParentTableRelation> 
        </NestedViewSettings> 
        <NestedViewTemplate> 
            <asp:panel runat="server" id="InnerContainer" cssclass="viewWrap" visible="false"
                <telerik:RadAjaxPanel ID="rapMultiPage" runat="server" Width="1100px"
                    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1" 
                        SelectedIndex="0" Skin="Vista" RegisterWithScriptManager="true" ClickSelectedTab="True" 
                        CausesValidation="True"
                        <Tabs> 
                            <telerik:RadTab PageViewID="RadPageView1" Selected="True" Text="Détails du logiciel"
                            </telerik:RadTab> 
                            <telerik:RadTab PageViewID="RadPageView3" Text="Certification"
                            </telerik:RadTab> 
                            <telerik:RadTab PageViewID="RadPageView4" Text="Historique"
                            </telerik:RadTab> 
                            <telerik:RadTab PageViewID="RadPageView5" Text="Déplacement / copie"
                            </telerik:RadTab> 
                        </Tabs> 
                    </telerik:RadTabStrip> 
                    <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0"
                         
                        <telerik:RadPageView ID="RadPageView1" runat="server"
                            <div class="contactWrap"
                                <h1> 
                                    Détails du logiciel</h1> 
                                <br /> 
                                <asp:Image ID="Image1" runat="server" ImageUrl="Images/duplicate.gif" /> 
                            </div> 
                        </telerik:RadPageView> 
                        <telerik:RadPageView ID="RadPageView3" runat="server"
                            <div class="contactWrap"
                                <h1> 
                                    Certification</h1> 
                                <br /> 
                                <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/page.aspx">Envoi vers un autre site</asp:HyperLink> 
                            </div> 
                        </telerik:RadPageView> 
                        <telerik:RadPageView ID="RadPageView4" runat="server"
                            <div class="contactWrap"
                                <h1> 
                                    Historique</h1> 
                                <br /> 
                                Page Content 
                            </div> 
                        </telerik:RadPageView> 
                        <telerik:RadPageView ID="RadPageView5" runat="server"
                            <div class="contactWrap"
                                <h1> 
                                    Déplacement / copie</h1> 
                                <br /> 
                                <asp:Button ID="Button1" runat="server" Text="Refresh" /> 
                                <br /> 
                                <telerik:RadTextBox ID="RadTextBox1" runat="server"
                                </telerik:RadTextBox> 
                                <br /> 
                                <br /> 
                                <telerik:RadListBox ID="RadListBox1" runat="server" AllowAutomaticUpdates="True" 
                                    AllowDelete="True" AllowReorder="True"
                                </telerik:RadListBox> 
                            </div> 
                        </telerik:RadPageView> 
                    </telerik:RadMultiPage> 
                </telerik:RadAjaxPanel> 
            </asp:panel> 
        </NestedViewTemplate> 
        <CommandItemSettings AddNewRecordText="Ajouter un nouveau logiciel" /> 
        <EditFormSettings ColumnNumber="2"
        </EditFormSettings> 
    </MasterTableView> 
</telerik:RadGrid> 

Thanks!


Shinu
Top achievements
Rank 2
 answered on 12 Jan 2012
2 answers
108 views
Hi

While i was exporting the radgrid to excel and work export tool bar is also including. i want to avoid the export toolbar in excel sheet.
While i was using ExportOnlyData="true" that is not including. But in my case i have used linkbutton in the grid so if i use ExportOnlyData="true" link button value is also not including. Any other way to avoid export tool bar in excel.
Nithya Rani
Top achievements
Rank 1
 answered on 12 Jan 2012
1 answer
94 views
Hi all,
I want to place checkbox row in radgrid ..... with header also in checkbox to select and deselect rows... how can i do this plz help me to do this.....?????
Shinu
Top achievements
Rank 2
 answered on 12 Jan 2012
2 answers
126 views
Hi,
I want to disallow user from keying text in the combo box which contains checkbox. Because this will cause error to happen.
The error message is as below:



I have try to set AllowCustomText="false" but it seems that it do not take action when there is checkbox inside the combobox.
Below is is my sample code

<ajax:RadComboBox ID="DdlProject" runat="server" Width="240px" EnableLoadOnDemand="True" Text=" " AllowCustomText="false"
                           EnableVirtualScrolling="true" EnableAutomaticLoadOnDemand="true">
                           <ItemTemplate>
                               <asp:CheckBox runat="server" ID="chkProject" oncheckedchanged="chk_CheckedChangedProject" AutoPostBack="true"  Text='<%#Eval("ProjectName")%>' />
                           </ItemTemplate>
                       </ajax:RadComboBox>
 
 
dsProject = getGetProject(mstrCompNo)
 
           DdlProject.DataSource = dsProject
           DdlProject.DataTextField = "ProjectId"
           DdlProject.DataValueField = "ProjectName"
           DdlProject.DataBind()

Does anyone has any idea? Help Please!!
johnson lim
Top achievements
Rank 1
 answered on 12 Jan 2012
1 answer
96 views
Render Control does not create connecting lines in treeview.

Thanks
Tom Rozzi
Princy
Top achievements
Rank 2
 answered on 12 Jan 2012
3 answers
131 views
my radcombobox view is not right. Please check the following attachment.
i use telerik v.2011.1.315.35
Princy
Top achievements
Rank 2
 answered on 12 Jan 2012
1 answer
71 views
I just used a Hex Editor to check which version of jQuery was in the 2011-11-14 Telerik.Web.UI.dll that I'm using (v.2011.2.915.35).  It appears to be Version 1.5 of jQuery.

The jQuery website states that the latest version available is 1.7.1.

When do you plan to incorporate this into your DLL?

Robert
Iana Tsolova
Telerik team
 answered on 12 Jan 2012
1 answer
192 views
I want to have a textbox in my Grid ( not in Edit mode ) and it has integer values from my datasource, Is that possible that when user edit the value and go to another textbox, my datasource updated from code-behind?

Regards
Mazdak
Shinu
Top achievements
Rank 2
 answered on 12 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?