Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
135 views
I have a 3-tier RadTreeView and I've managed to use javascript to cascade an "onNodeClick" to the children but it's missing the grandchildren.  Can someone please help?

function onNodeClick(sender, args)

              {

                   var node = args.get_node();

                  if (node.get_value() == 0)

                       {

                        var childNodes = node.get_nodes();

                        for (var i = 0; i < childNodes.get_count(); i++)

                        {

                             var childNode = childNodes.getNode(i);

                             childNode.select();

                        }

                        }

              }

Kevin
Top achievements
Rank 2
 answered on 21 Mar 2013
1 answer
139 views
I'm currently using Radupload control in my asp.net application, and it works. However, I was wondering of it was possible to do the following:
  1. Display just the select button for displaying the file system without the textbox
  2. After picking a file, return the file selected to the server immediately without clicking a  submit button.

Are these possible?

Thanks.
Kevin
Top achievements
Rank 2
 answered on 21 Mar 2013
4 answers
209 views
Hi I have a RadGrid that I'm exporting to pdf but the rows in the pdf are not sorted the same way they are in the grid. Do I need to do something additional to export the sorting settings of the grid?
This is the code I'm using to export the grid:

grid.MasterTableView.ExportToPdf();
Thanks!

Eddy
Top achievements
Rank 1
 answered on 21 Mar 2013
0 answers
97 views
We use classic asp pages for our secure portal sites. 3-4 weeks ago a user indicated that a button (to be able to upload documents) on the page was greyed out and not accessible. The user was using Win7 and IE9. After some initial troubleshooting, we determine that using the compatibility mode in IE9 resolved the issue. Now yesterday 5 more users have reported the issue. The are using Win7 IE9 as well. We have setup test workstation and it is working fine on those workstations. All have upto date MS patches. Everything works fine in Firefox and IE8. The same is true of the users workstations. We use Telerik.Web.Design.dll and the Telerik.Web.UI.dll in this area of the page. Is there any known issue with these and IE9.

FYI-I am not a developer, but merely assisting our support department.
Mathew
Top achievements
Rank 1
 asked on 21 Mar 2013
1 answer
195 views
I am driving my RadMenu from a table in SQL and would like to utilize the image column type to store the icon for my menu items rather than store the images in the project. Once I pull in the binary data and convert it to an Image object type, is there a way to set the Image of a RadMenu Item to that image? Currently, I am using the ImageURL property but this doesn't offer the flexibility that I need. Any help is appreciated.
MasterChiefMasterChef
Top achievements
Rank 2
 answered on 21 Mar 2013
1 answer
310 views
hi,
I load the radupload in a radwindow that is loaded with a ContentTemplate ... now that happens to me after you upload the file, the radwindow closes by itself, the aspx page runs a refresh being completely white and then view the new main page from which I drew the radwindow .. The file upload is successful.
I just wish the radwindow after upload does not shut but I have to close the exit button

How can I do? I use inside radwindow un'updatepanel is correct or not?
 this is my code:
<telerik:RadWindowManager ID="RadWindow_Conferma" runat="server" Modal="True" Skin="Office2010Silver">
                   <Windows>
                       <telerik:RadWindow ID="RadWindowLoadprofile" runat="server"
                           ShowContentDuringLoad="false" Width="452px" Height="280px" Style="z-index: 8000"
                           Title="Caricamento immagine profilo" Behaviors="None" Modal="True" AutoSize="true"
                           Behavior="None" Font-Names="Verdana" Font-Size="Small" IconUrl="/image/iconlogo.png"
                           Skin="Office2010Silver" ReloadOnShow="false" VisibleStatusbar="False"
                           RestrictionZoneID="NavigateUrlZone" EnableViewState="False">
                           <ContentTemplate>
                               <div class="Divloadprofile">
                                   <div id="upload" class="Divloadprofile1">
                                               <table style="border: 0px; margin: 0px; padding: 0px; width: 395px; text-align:center">
                                                   <tr>
                                                       <td style="border-style: none; border-color: inherit; border-width: 0px; margin: 0px; padding-top: 5px; text-align: center; height:23px">
                                                           <asp:CustomValidator ID="CustomValidator1" runat="server" ClientValidationFunction="validateRadUpload"
                                                           ErrorMessage="File errato" ValidationGroup="carica"></asp:CustomValidator>
                                                       </td>
                                                   </tr>
                                                   <tr>
                                                       <td style="border-style: none; border-color: inherit; border-width: 0px; margin: 0px; padding-left:60px; vertical-align: top;">
                                                           <telerik:RadUpload ID="RadUpload1" Runat="server" Width="280px" InputSize="35"
                                                               AllowedFileExtensions=".jpg,.jpeg,.png,.gif" OverwriteExistingFiles="True"
                                                               TargetFolder="image/image_utenti" ControlObjectsVisibility="None"
                                                               Height="22px" style="text-align: left" Skin="Sunset"
                                                               MaxFileSize="3000000">
                                                               <Localization Select="Cerca" />
                                                           </telerik:RadUpload>
 
                                                       </td>
                                                   </tr>
                                                   <tr>
                                                       <td style="border-style: none; border-color: inherit; border-width: 0px; margin: 0px; vertical-align: top; height: 50px">
                                                           <div class="Divinfoupload">
                                                               Il file deve avere le seguenti estensioni: jpg, jpeg, png, gif<br /> Il file
                                                               deve avere una grandezza massima di 3 Mb.<br /> Risoluzione ottimale
                                                               consigliata: 128x128 pixel.                           
                                                           </div>
                                                       </td>
                                                   </tr>
                                               </table>           
                                               <div style="width:395px; padding-top: 10px">
                                                   <table style="width: 100%;">
                                                       <tr>
                                                           <td style="text-align:center">
                                                               <asp:ImageButton ID="Imgbtncarica" runat="server" ImageUrl="~/Image/Upload.png"
                                                                   ValidationGroup="carica" />
                                                           </td>
                                                           <td style="text-align:center">
                                                               <asp:ImageButton ID="Imgbtnesci_6" runat="server" ImageUrl="~/Image/esci1.png" />
                                                           </td>
                                                       </tr>
                                                   </table>
                                               </div>
                                           </div>
                                               <div id="conferma" class="Divloadprofile1" style="padding-top:10px;display:none">
                                           <div>
                                               <asp:Image ID="Imgprofile_2" runat="server" ImageUrl="~/Image/avatar.png" Height="250px" Width="250px" CssClass="AnteprimaImgmaxsize"/>
                                           </div>
                                           <div style="width:395px; padding-top: 10px">
                                               <table style="width: 100%;">
                                                   <tr>
                                                       <td align="center">
                                                           <asp:ImageButton ID="Imgbtnesci_7" runat="server" ImageUrl="~/Image/esci1.png" />
                                                       </td>
                                                   </tr>
                                               </table>
                                           </div>
 
                                       </div>
                                   </div>                           
                           </ContentTemplate>                        
                       </telerik:RadWindow>                                   
                   </Windows>
       </telerik:RadWindowManager>


MasterChiefMasterChef
Top achievements
Rank 2
 answered on 21 Mar 2013
1 answer
128 views
I have a Tabstrip set up with MultipageViews displaying the tab contents. Some of my MultipageViews contain links that cause the page to postback. Everything works fine except the selected tab always returns to index 0. How can I set the selected tab on the server-side after a postback casued by a link on the MultipageView?

Thanks.
Nencho
Telerik team
 answered on 21 Mar 2013
2 answers
101 views
Hi

Please forgive me if this has already been answered in a previous post, I have searched but could not find the answer.

My editor has all its icons missing!!  I think it maybe something to do with a missing style sheet.
I have attached a screen shot of my problem.

Hope someone can help.

Many Thanks
Qball
Top achievements
Rank 1
 answered on 21 Mar 2013
5 answers
231 views
I have an ajaxified RadGrid with a RadTreeList in the <NestedViewTemplate>.  The data for both comes back as it should.  Expanding an item on the RadGrid works fine and reveals the RadTreeList with the correct number of rows/data; however, when attempting to expand one of the nodes on the RadTreeList, the RadGrid collapses.  On re-expanding the RadGrid, the RadTreeList node is displayed expanded.  How may I prevent the RadGrid from collapsing during the RadTreeList node expansion/collapse?

Thanks for the help!
Carlos
Top achievements
Rank 1
 answered on 21 Mar 2013
3 answers
546 views
Here's the layout code for a simple RadGrid I've put in my web page:

<telerik:RadGrid ID="radGridSummary" runat="server" AutoGenerateColumns="false" BorderColor="Gray" BorderStyle="Solid" BorderWidth="1" Width="587px"
                 CellPadding="0" GridLines="Both" Font-Size="11px" OnItemDataBound="radGridSummary_ItemDataBound" OnItemCommand="radGridSummary_ItemCommand">
  <HeaderStyle Font-Bold="true" ForeColor="#031d5b" VerticalAlign="Middle" Height="20" CssClass="pointerOnly headerGridRB" />
  <ItemStyle CssClass="radGridItem" />
  <AlternatingItemStyle CssClass="radGridAltItem" />
  <ClientSettings EnablePostBackOnRowClick="true" EnableRowHoverStyle="true" Scrolling-UseStaticHeaders="true" Scrolling-AllowScroll="true" Scrolling-ScrollHeight="200px" />
 
  <MasterTableView BorderWidth="0" DataKeyNames="TaskID, TaskLevel, TaskActivity">
    <Columns>
      <telerik:GridBoundColumn DataField="TaskDescription" HeaderText="Description" SortExpression="TaskDescription">
        <HeaderStyle HorizontalAlign="Left" />
        <ItemStyle HorizontalAlign="Left" />
      </telerik:GridBoundColumn>
 
      <telerik:GridTemplateColumn HeaderText="Level">
        <HeaderStyle HorizontalAlign="Center" Width="70px" />
        <ItemStyle HorizontalAlign="Center" />
        <ItemTemplate>
          <%-- Note: This needs to remain as a Label, as it's accessed by code in 'IndicateRowDeletion' --%>
          <asp:Label ID="labelLevelName" runat="server" Text='<%# GetLevelDescription(Convert.ToInt32(Eval("TaskLevel"))) %>' />
        </ItemTemplate>
      </telerik:GridTemplateColumn>
 
      <telerik:GridBoundColumn DataField="ActivityMajTask" HeaderText="Activity" SortExpression="ActivityMajTask">
        <HeaderStyle HorizontalAlign="Center"  />  <%-- Note: Removed Width restriction to allow this one to expand as needed --%>
        <ItemStyle HorizontalAlign="Center" />
      </telerik:GridBoundColumn>
 
      <telerik:GridBoundColumn DataField="TaskStdHours" HeaderText="Std Hours" SortExpression="TaskStdHours" DataFormatString="{0:F2}">
        <HeaderStyle HorizontalAlign="Center" Width="70px" />
        <ItemStyle HorizontalAlign="Right" CssClass="indentRight20" />
      </telerik:GridBoundColumn>
 
      <telerik:GridTemplateColumn HeaderText="Completed">
        <HeaderStyle HorizontalAlign="Center" Width="70px" />
        <ItemStyle HorizontalAlign="Center" />
        <ItemTemplate>
          <%-- Note: This needs to remain as a Label, as it's accessed by code in 'IndicateRowDeletion' --%>
          <asp:Label ID="labelCompleted" runat="server" Text='<%# Convert.ToBoolean(Eval("TaskStatus")) ? "Yes" : "No" %>' />
        </ItemTemplate>
      </telerik:GridTemplateColumn>
    </Columns>
  </MasterTableView>
</telerik:RadGrid>

The alignment seemed to be working fine until I enabled AutoScrolling.  Now, as you can see, the alignment is all messed up.

If you could tell me what to do with the Level and Activity columns then I think I could figure out the others.

Robert
Robert
Top achievements
Rank 1
 answered on 21 Mar 2013
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?