Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
1.2K+ views
Hi all, I have an ASP.NET repeater and inside it, some Telerik Web Controls (as shown below)
<asp:Repeater ID="rptAreeScopertura" runat="server"> 
                    <HeaderTemplate> 
                        <table class="Tabella"> 
                            <tr> 
                                <th class="CellaIntestazione" style="width: 40px;"> 
                                    <asp:Label ID="lblSelezionaTitolo" runat="server" /> 
                                </th> 
                                <th class="CellaIntestazione" style="width: 200px;"> 
                                    <asp:Label ID="lblAreaScoperturaTitolo" runat="server" /> 
                                </th> 
                                <th class="CellaIntestazione" style="width: 80px;"> 
                                    <asp:Label ID="lblTipoScoperturaTitolo" runat="server" /> 
                                </th> 
                                <th class="CellaIntestazione" style="width: 140px;"> 
                                    <asp:Label ID="lblTipoServizioInclusoTitolo" runat="server" /> 
                                </th> 
                                <th class="CellaIntestazione" style="width: 350px;"> 
                                    <asp:Label ID="lblTipoPeriodicitaOffertaTitolo" runat="server" /> 
                                </th> 
                            </tr> 
                    </HeaderTemplate> 
                    <ItemTemplate> 
                        <tr> 
                            <td style="text-align: center;"> 
                                <input type="checkbox" id="chkProva" value='<%# Eval("IDAreaScopertura") %>' runat="server" 
                                    onclick="toggleTB(this);" /> 
                            </td> 
                            <td> 
                                <asp:Label ID="lblAreaScopertura" runat="server" Text='<%# Eval("AreaScopertura") %>' /> 
                            </td> 
                            <td> 
                                <telerik:RadComboBox ID="rRadComboBoxTipoScopertura" runat="server" /> 
                            </td> 
                            <td> 
                                <telerik:RadComboBox ID="rRadComboBoxTipoServizioIncluso" runat="server" /> 
                            </td> 
                            <td style="text-align: center;"> 
                                <telerik:RadComboBox ID="rRadComboBoxTipoPeriodicitaOfferta" runat="server" /> 
                                <asp:Label ID="lblOppure" runat="server" /> 
                                <telerik:RadTextBox ID="rRadTextBoxTipoPeriodicitaPersonalizzata" runat="server" /> 
                            </td> 
                        </tr> 
                    </ItemTemplate> 
                    <FooterTemplate> 
                        </table> 
                    </FooterTemplate> 
                </asp:Repeater> 
I would chkProva checkbox to enable/disable all controls inside repeater item.
How can I get it client-side? Is it possible?

I've tried with the following javascript code in the HEAD tags
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> 
 
        <script type="text/javascript"> 
 
            function toggleTB(what) { 
                var RadComboBox = $find("<%= rRadComboBoxTipoScopertura.ClientID %>"); 
                RadComboBox.enabled = what.checked; 
            } 
 
        </script> 
 
    </telerik:RadCodeBlock> 

but I get the following errore message at runtime:
Name 'rRadComboBoxTipoScopertura' not declared. 
 
Error in the following code source (Row 11): 
 
Row 9:   
Row 10:             function toggleTB(what) { 
Row 11:                 var RadComboBox = $find("<%= rRadComboBoxTipoScopertura.ClientID %>"); 
Row 12:                 RadComboBox.disable(); 
Row 13:             } 

because (I suppose) it can't find the rRadComboBoxTipoScopertura control inside repeater...

In alternative it could be done server-side with an Ajax Panel solution... but how?

Thanks to all!

Giulio
Princy
Top achievements
Rank 2
 answered on 08 Oct 2009
2 answers
61 views
Like the title says, when using the client side method MasterTableView.editItems(index) there is a full page postback.  Is this the expected behavior of the method or is there a way to show the edit form without hitting the server so there is not a full page post back?

Thanks.
Thomas Salt
Top achievements
Rank 1
 answered on 08 Oct 2009
1 answer
106 views
I have a RadMenu that is loaded via a Linq to SQL class in div "RadMenu1".  In div2 I want a Title field (a label) and a AspImage to be loaded when a user selects a link from the RadMenu.

My Table currently looks like this:
idProject
projLink
projTitle
projImage

Example:
<div id="RadMenu1">
Link1  (id=idProject, Text=projLink)
Link2  (id=idProject, Text=projLink)
Link3  (id=idProject, Text=projLink)
</div>

<div id="div2">
Title  (id=idProject, Text=ProjTitle)
Image  (id=idProject, ImageUrl=projImage)
</div>


I am currently loading my RadMenu like this:
ClassesDataContext db = new ClassesDataContext();
                var prod = from p in db.ProjectImages
                           select p;

                RadMenu1.DataSource = prod;
                RadMenu1.DataFieldID = "idProjects";
                RadMenu1.DataTextField = "projLink";
                RadMenu1.DataValueField = "idProjects";
                RadMenu1.DataBind();

This is where I am stuck. How do I load the corresponding Label and ASPImage on click of one of the RadMenu Items?
Vesko
Top achievements
Rank 2
 answered on 08 Oct 2009
2 answers
68 views
We've run into an issue where users running IE8 have fonts on the page in other divs and drop down lists are being made larger when users interact with the Combo Box.

Telerik.Web.UI version: 2008.2.826.35
Brian Adle
Top achievements
Rank 1
 answered on 08 Oct 2009
1 answer
124 views

This is my problem.
I have this RadGrid with an EditFormTemplate (UserControl). With a button called "AddNew" we create a new row in the grid.
On the EditFormTemplate we want to have 3 buttons:
- Update
- Cancel
- Update and Insert New

The first two buttons was easy. Button with CommandName="Update" and CommandName="Cancel". These events are bubbled to the RadGrid and handled. The last button i'm lost on how this must be accumplished.
I've created a normal button and in the eventhandler i wrote: 

 

 

 

this.RaiseBubbleEvent(sender, new CommandEventArgs("Update", null));

 

this.RaiseBubbleEvent(sender, new CommandEventArgs("InitInsert", null));

This first event is handled by the RadGrid, but the second one isn't.
How can i create a button the updates the current edited row, and inserts a new one...?

 

 

 

 

 

Princy
Top achievements
Rank 2
 answered on 08 Oct 2009
2 answers
131 views
Hello,

I'm working with RadChart control and I want to display the price evolution of an equity.

I can generate my Chart without problems with an XAxis based on the dateTime (converted with ToOADate method). My problem is that an equity is only traded during the opening periods of the market.

Is it possible to personalize the XAxis items to display only the item that I provide to the Chart?
Here is an example of data :

2009/09/10 ==> 23.4
2009/09/11 ==> 23.6
2009/09/14 ==> 23.2
2009/09/15 ==> 22.9

There is no data for the weekend (2009/09/12 and 2009/09/13) and I want that the chart display only the information about the open days without an approximation for the day without prices.

Thank you for your help.
Quantesys IT
Top achievements
Rank 1
 answered on 08 Oct 2009
3 answers
231 views
On my RadGrid have a column of DropDownLists. I use those DropDownLists to present the sting definitions(from another table) of foreign keys of the table to which i bound my RadGrid over my datasource. Such as:

<

telerik:GridTemplateColumn HeaderText="Sube" SortExpression="SubeId" UniqueName="SubeIdddl" AllowFiltering = "true" filterlistoptions="AllowAllFilters" >

 

 

<ItemTemplate >

 

 

<asp:DropDownList ID="DropDownList1" runat="server" DataValueField = "SubeID" DataTextField = "SubeAdi"

 

 

DataSourceID="MyDataSourceSubeler" SelectedValue='<%# Bind("SubeId") %>' Enabled = "false" Width = "200">

 

 

</asp:DropDownList>

 

 

</ItemTemplate>

 

 

<ItemStyle Width="200px"></ItemStyle>

 

 

</telerik:GridTemplateColumn>

However it throws a worktime error saying that: 

Microsoft JScript worktime error: Sys.WebForms.PageRequestManagerServerErrorException: Expression expected

How can i handle that? thanks...

 

Princy
Top achievements
Rank 2
 answered on 08 Oct 2009
4 answers
184 views
Hello,
Can someone please explain to me how you add a custom heading to the exported excel information?  I need a title that merges across all columns.

Thank you!
Stacy Frank
Sundial Software Co.
Daniel
Telerik team
 answered on 08 Oct 2009
3 answers
142 views
Hello,

I would like a textbox column in my RadGrid. Unfortunately, I must have a boolean data type to get this to work, and what I have now is a char of 1 length (Y and N values). I looked into the sql conversion tables and couldn't find a compatible conversion. Is there a way to get the boxes to check or uncheck based on Y and N values, or a way to convert to boolean that I've missed?

I hope this question is clear, and appreciate any help.
Shinu
Top achievements
Rank 2
 answered on 08 Oct 2009
4 answers
94 views
Hello,

I've upgraded from 2009.1.311.35 to 2009.1.527.20 and found problem that broke some of my functionality: automatic post back on dock close does not work in RadDock anymore.

You can use following code to reproduce the problem, compile it with version 2009.1.311.35 and 2009.1.527.20 and you'll see the difference, close the dock and check if postback was issued.

<body> 
  <form id="form1" runat="server"> 
  <div> 
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" ScriptMode="Debug"> 
    </telerik:RadScriptManager> 
    <telerik:RadDockLayout ID="RadDockLayout1" runat="server"> 
      <telerik:RadDockZone ID="RadDockZone1" runat="server" Height="300px" Width="300px"> 
        <telerik:RadDock ID="RadDock1" runat="server" Width="300px" CommandsAutoPostBack="true" 
          AutoPostBack="true"> 
          <Commands> 
            <telerik:DockCloseCommand AutoPostBack="true" /> 
          </Commands> 
          <ContentTemplate> 
            test 
          </ContentTemplate> 
        </telerik:RadDock> 
      </telerik:RadDockZone> 
    </telerik:RadDockLayout> 
  </div> 
  </form> 
</body> 

My configuration:
  • Telerik For ASP.NET AJAX 2009.1.527.20 and 2009.1.311.35
  • Windows XP Pro SP3
  • Visual Studio 2008
  • FF 3.5,3, IE 7.0

Best regards, Oleg Yaroshevych.
Pero
Telerik team
 answered on 08 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?