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

   I am using user control contains rad grid and which is placed in rad window <ContentTemplate> and i have asp button on click of button at server side i need to show rad window pop up and which should contain the user control inside it..and after selecting the row from user control i need to close the pop up...how can i do it...

the code is follows.
<asp:Button ID="btnRole" LabelNumber="BTSA10001" runat="server" OnClick="btnRole_Click" />

 <telerik:radwindow id="rwCodeLabelWindow" runat="server" skin="Office2007" behaviors="Close"
        modal="true" height="550px" width="800px" title="Code and Label">
         <ContentTemplate>
        <uc:CodeLabelPopUp ID="ucCodeLabelPopUp" runat="server" />
        </ContentTemplate>
    </telerik:radwindow>


Please let me know.
rdmptn
Top achievements
Rank 1
 answered on 26 Apr 2012
5 answers
269 views
how apply right-to-left direction for  pagerstyle of TreeList?
Tsvetina
Telerik team
 answered on 26 Apr 2012
1 answer
87 views

Hello,

When I have one RadUpload, it's work :

<table> 
     <tr> 
          <td class="label_up" colspan="2"><asp:Label ID="LBL_image" runat="server" CssClass="bold">Image : </asp:Label></td> 
     </tr> 
     <tr> 
          <td></td> 
          <td style="white-space:nowrap;"> 
               <asp:Label runat="server" ID="info_image"></asp:Label> 
          </td> 
     </tr> 
     <tr> 
          <td class="width110"> 
               <asp:Image runat="server" ID="Imagea" ImageUrl="./images/7.gif"></asp:Image> 
          </td> 
          <td> 
               <telerik:RadUpload ID="RadUpload1" runat="server" ControlObjectsVisibility="None" 
               overwriteexistingfiles="False" targetfolder="~/images/données" 
               Skin="Vista" InputSize="20" MaxFileInputsCount="1" InitialFileInputsCount="1"> 
               </telerik:RadUpload> 
    
               <telerik:RadButton ID="SubmitButton" runat="server" Text="Upload image" onclick="SubmitButton_Click"> 
               </telerik:RadButton> 
          </td> 
     </tr> 
     <tr> 
          <td></td> 
          <td> 
               <telerik:RadButton ID="DeleteButton" runat="server" OnClick="DeleteImage" ClientIDMode="Static"> 
               </telerik:RadButton> 
          </td> 
     </tr> 
</table>

But, if I add an another RadUpload, the fist one dissapears on the client page. :-(

<table>  
     <tr>  
          <td class="label_up" colspan="2"><asp:Label ID="LBL_image" runat="server" CssClass="bold">Image : </asp:Label></td>  
     </tr>  
     <tr>  
          <td></td>  
          <td style="white-space:nowrap;">  
               <asp:Label runat="server" ID="info_image"></asp:Label>  
          </td>  
     </tr>  
     <tr>  
          <td class="width110">  
               <asp:Image runat="server" ID="Imagea" ImageUrl="./images/7.gif"></asp:Image>  
          </td>  
          <td>  
               <telerik:RadUpload ID="RadUpload1" runat="server" ControlObjectsVisibility="None" 
               overwriteexistingfiles="False" targetfolder="~/images/données" 
               Skin="Vista" InputSize="20" MaxFileInputsCount="1" InitialFileInputsCount="1">  
               </telerik:RadUpload>  
      
               <telerik:RadButton ID="SubmitButton" runat="server" Text="Upload image" onclick="SubmitButton_Click">  
               </telerik:RadButton>  
          </td>  
     </tr>  
     <tr>  
          <td></td>  
          <td>  
               <telerik:RadButton ID="DeleteButton" runat="server" OnClick="DeleteImage" ClientIDMode="Static">  
               </telerik:RadButton>  
          </td>  
     </tr>
     <tr>
          <td class="label_up" colspan="2">
               <asp:Label ID="LBL_documents" runat="server" CssClass="bold">Documents :</asp:Label>
          </td>
     </tr>
     <tr>
          <td colspan="2">
               <asp:Label runat="server" ID="Documents"></asp:Label>
          </td>
     </tr>
     <tr>
          <td>
               <telerik:RadUpload ID="RadUpload2" runat="server" />                        
          </td>
          <td>
               <asp:Repeater ID="repeaterResults" runat="server" Visible="False">
                    <HeaderTemplate>
                         <div class="title">Uploaded files in the target folder:</div>
                    </HeaderTemplate>
                    <ItemTemplate>
                         <%#DataBinder.Eval(Container.DataItem, "FileName")%>
                         <%#DataBinder.Eval(Container.DataItem, "ContentLength").ToString() + " bytes"%>
                         <br />
                    </ItemTemplate>
               </asp:Repeater>
          </td>
     </tr>
     <tr>
          <td>
               <telerik:RadButton runat="server" ID="RadButton1" Text="Upload files" onclick="SubmitFileButton_Click" />
          </td>
     </tr>
</table> 

Have you an idea?
Plamen
Telerik team
 answered on 26 Apr 2012
3 answers
440 views
Hi, how would you go about adding a css class to any top level checkboxes?

Regards,
-DJ-
Bozhidar
Telerik team
 answered on 26 Apr 2012
7 answers
377 views
I'm setting up code to export my grids to Excel using the new ExcelML methods. I'm having a problem using the code in this demo:

http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/excelmlexport/defaultcs.aspx

PageSetupElement is coming back as an unknown type or namespace.

I have the following declarations in my code behind:
using Telerik.Web.UI;
using Telerik.Web.UI.GridExcelBuilder;

Is there another one I have to add to gain access to this type?
Daniel
Telerik team
 answered on 26 Apr 2012
2 answers
136 views
I have one combobox in the page, set EnableLoadOnDemand="True", when the items in the combobox is loading, it shows the text "loading...", how can I put a loadingPanel instead of the text "loading...".

when I tried to enable
multipleRowsColumns using DropDownCssClass, even the text "loading..." not appear anymore.

could anyone help?
Cat Cheshire
Top achievements
Rank 1
 answered on 26 Apr 2012
0 answers
180 views
i want to call RadCombobox1_SelectedIndexChanged Event on page load from code behind with out using Java Script please its urgent....
Amit
Top achievements
Rank 1
 asked on 26 Apr 2012
3 answers
368 views
Hi

I am building the list of items in the itemcreated event, as suggested in a reply to another post, using this approach:

combo.Items.Add(New RadComboBoxItem(sb.ToString, MemberID))


This is working fine so far, but I would like to change the background color (or text color) of the item based on some criteria. (Such as Member not paid up!)

My question is how to add the relevant style attribute to the item I am adding . I was expecting to find something like...

combo.Items.AddAttribute( something here)

but I didn't find it the right approach anywhere in the docs. Sorry if it is there somewhere.

Can someone help me out?

Thanks

Clive


Princy
Top achievements
Rank 2
 answered on 26 Apr 2012
1 answer
130 views
Hello,
I'm getting stuck on a page where an ajaxified rad grid is used. On double clicking a row of record from the grid opens a group of inline telerik controls including a rad grid. I'm looking forward for some methods using which i can find this rad grid(inside edit form setting) in javascript for refreshing it after adding some bunch of records. Please help me on this.
Thanks in advance.
Shinu
Top achievements
Rank 2
 answered on 26 Apr 2012
1 answer
171 views
Hello, I've seemed to always have issues with ajaxing my pages using the AjaxManager.


In 2 of my pages, they are pretty straight forward. In one page I did get it to work, but now it appears it doesn't want to work at all. It's doing normal postbacks(reloading the page) which is screwing with the results.


On Page 1:
I have a grid that I am using a item template on to add a textbox:
<telerik:GridTemplateColumn FilterControlAltText="Filter Size_Small column"
    HeaderText="S" UniqueName="Size_Small" DataField="Size_Small">
    <ItemTemplate>
        <telerik:RadTextBox ID="txt_Small" runat="server" Width="25" MaxLength="4" Text="0" ></telerik:RadTextBox>
    </ItemTemplate>
</telerik:GridTemplateColumn>

I also have a standard label on the page named lbl_Brand.

For TESTING purposes, I put up a button (button1) and made the following code in it:

For Each item As GridDataItem In grid_Colors.MasterTableView.Items
    Dim txtbox As RadTextBox = item("Size_Small").FindControl("txt_Small")
    lbl_Brand.Text = item("ColorName").Text & " : Small: " & txtbox.Text
Next

As per this, it should display the ColorName(It works even though i didn't include code), and then it ALWAYS returns Small: 0. It's returning the DEFAULT value of that textbox.

So, I am trying to ajax it so it doesn't reload the page on me, here is the code:

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                                    <ajaxsettings>
                                        <telerik:AjaxSetting AjaxControlID="Button1">
                                            <updatedcontrols>
                                                <telerik:AjaxUpdatedControl ControlID="lbl_Brand"
                                                    UpdatePanelRenderMode="Inline" />
                                            </updatedcontrols>
                                        </telerik:AjaxSetting>
                                    </ajaxsettings>
                                </telerik:RadAjaxManager>

As you can see, I have Button1 setup to update lbl_Brand which is what should display the value. However, this is causing the page to reload.


Is there a certain process to adding the ajaxmanager and using it? Like, does it's location in the html matter? Does it need to be in a certain framework? Etc.
TIM
Top achievements
Rank 1
 answered on 25 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?