Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
196 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
88 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
186 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
298 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
122 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
95 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
222 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
534 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
1 answer
85 views
I have a RadComboBox that uses the SelectedIndexChanged event handler to set the value of another combo box on the page. I have a RadAjaxManagerProxy on the content control and an AjaxSetting for the combo box with the affected combo box specified as the updated control. Here's the code for the Ajax settings.

<telerik:RadAjaxManagerProxy id="RadAjaxManagerProxy1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="cboPhysMunicipality">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="cboPhysDistrictOffice" LoadingPanelID="RadAjaxLoadingPanel1"/>
                <telerik:AjaxUpdatedControl ControlID="cboMailStateCountry" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>       
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>

The Combo box calls the selected index changed event handler; but it doesn't use the Ajax Manager, it never shows the loading panel, and it clears out other combo boxes that shouldn't be affected. It think these are getting cleared because it's doing a full post back instead of an Ajax update.

Now, here's where it gets really wierd. If I type in the combo box until it highlights the desired item, and then press enter, it works perfectly. However, if I type until it highlights, then click on the desired item, it doesn't use the ajax loading panel, it just posts back.

One other thing, if I set AllowCustomText to false; everything works just like it should. But if I set AllowCustomText = true, this is what I end up with. Unfortunately, I have to have AllowCustomText set to true for this field.

Any ideas why AllowCustomText would stop the RadComboBox from doing an Ajax update?
Nencho
Telerik team
 answered on 21 Mar 2013
1 answer
172 views
Since the RadEditor doesn't have OnFocus or OnBlur ClientEvents, Is it possible to expand the height of a RadEditor when the focus is set and and reset it back to a specified height when leaving the focus of the control? 

If so, please provide an example on implementing this functionality.

Thank You!
Rumen
Telerik team
 answered on 21 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?