Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
324 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
136 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
110 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
244 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
562 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
101 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
207 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
3 answers
86 views
Hi All,

       This is AKR. I am using Telerik radlistbox, when i click on item i facing an Popup Message With Title : Message from Web Page and With Message " Out of Memory at line :2 ". Please any one suggest me how to Solve this.

Thanks in advance.

AKR
Bozhidar
Telerik team
 answered on 21 Mar 2013
2 answers
226 views
I have a client side event handler for OnCommand. How can I get the index of the row that caused the OnCommand event to be fired. In my case I have a GridButtonColumn of type ImageButton. Clicking the image for an item in the row causes the OnCommand to fire. I need to know which row was clicked.
Diana
Top achievements
Rank 1
 answered on 21 Mar 2013
1 answer
93 views

Hello,

I'm completely new to telerik software and have been asked to add 2 new fields to our radhtml control.  Does anyone know how I go about this?

Thanks
Rumen
Telerik team
 answered on 21 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?