Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
208 views

Hello, 

I'm having a hard time trying to make this work.  I have a grid set up with a form template and what I'm trying to accomplish is that when the user clicks on 'lbtEchelle', I want to get the values of one dropdown and one radtextbox to set them as arguments for a radwindow.  So far, I always get an 'undefined' variable in javascript.  I've looked at the example posted here, tried it (it worked flawlessly) and even tried it's javascript in my project... same result.  I'm pretty sure it's a small detail I'm overlooking but I need help.  I'm still quite newbish...

Here's the relevant code.

  Private Sub rgridSimCours_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rgridSimCours.ItemCreated  
 
  'Lors de la création des items, récupérer les clientID de rtxtEtbCode2 et cboCycle pour les ajouter dans le   
  'javascript pour pouvoir les accéder lors du onclientclick de lbtEchelle.  
  If (TypeOf e.Item Is GridEditFormItem AndAlso e.Item.IsInEditMode) Then  
 
  Dim editFormItem As GridEditFormItem = CType(e.Item, GridEditFormItem)  
  Dim rtxt As RadTextBox = editFormItem.FindControl("rtxtEtbCode2")  
  Dim cbo As DropDownList = editFormItem.FindControl("cboCycles")  
 
  rgridSimCours.Controls.Add(New LiteralControl("<script type='text/javascript'>window['rtxt'] = '" & rtxt.ClientID & "';</script>"))  
 
  End If  
 
  End Sub  
 
 
 

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="sim_cours.aspx.vb" Inherits="Simulation._Default" %>  
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>  
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
 
<html xmlns="http://www.w3.org/1999/xhtml" >  
<head runat="server">  
    <title>Untitled Page</title>  
    <link href="style/grid_style.css" rel="stylesheet" type="text/css" />  
    <link href="style/style.css" rel="stylesheet" type="text/css" />  
    <script src="script/dialog.js" type="text/javascript"></script>  
    <script src="script/alert.js" type="text/javascript"></script>  
    <style type="text/css">  
        .style1  
        {  
            width: 92px;  
        }  
        .style2  
        {  
            width: 215px;  
        }  
        .style3  
        {  
            width: 37px;  
        }  
        </style>  
</head>  
<body>  
    <form id="form1" runat="server">  
        <asp:ScriptManager ID="sm" runat="server">  
        </asp:ScriptManager>  
        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">  
            <script type="text/javascript">  
            function showetb()  
            {     
              var countryField = document.getElementById(window['rtxt']);  
              alert(window['rtxt']);  
                
              if(!countryField)  
              {  
                alert("no item in edit/insert mode available");  
                return;  
              }   
              else  
              {    
                alert("Title edited value is: " + countryField.value);  
              }    
                
            }  
            </script>  
        </telerik:RadCodeBlock>  
          
        <div style="margin:auto; width: 650px; text-align: left; margin-bottom:1.5em"><asp:Label ID="lblTitrePage" CssClass="txt_titre" runat="server" Text="Gestion des cours simulés"></asp:Label></div>  
        <telerik:RadAjaxPanel EnableAJAX="true" ID="RadAjaxPanel1" runat="server">  
              
        <div style="margin:auto; width: 650px; margin-bottom:1em">  
            <fieldset style="text-align: left">  
                <legend>Recherche</legend>  
                <table id="recherche">  
                    <tr>  
                        <td class="style1"><asp:Label ID="lblSigle" runat="server" Text="Sigle :"   
                                meta:resourcekey="lblSigleResource1"></asp:Label></td>  
                        <td class="style2">  
                            <telerik:RadTextBox ID="rtxtSigle" runat="server" Width="200px"   
                                InvalidStyleDuration="100" LabelCssClass=""   
                                meta:resourcekey="rtxtSigleResource1">  
                            </telerik:RadTextBox></td>  
                        <td align="right" class="style3"><asp:Label ID="lblTitre" runat="server"   
                                Text="Titre :" meta:resourcekey="lblTitreResource1"></asp:Label></td>  
                        <td align="right">  
                            <telerik:RadTextBox ID="rtxtTitre" runat="server" Width="250px"   
                                InvalidStyleDuration="100" LabelCssClass=""   
                                meta:resourcekey="rtxtTitreResource1">  
                            </telerik:RadTextBox></td>  
                    </tr>                      
                    <tr>  
                        <td class="style1">  
                            <asp:Label ID="lblEtbCode" runat="server" Text="Établissement :"   
                                meta:resourcekey="lblEtbCodeResource1"></asp:Label>  
                        </td>  
                        <td class="style2">  
                            <telerik:RadTextBox ID="rtxtEtbCode" runat="server" Width="200px"   
                                InvalidStyleDuration="100" LabelCssClass=""   
                                meta:resourcekey="rtxtEtbCodeResource1">  
                            </telerik:RadTextBox></td>  
                        <td colspan="2" align="right">  
                            <asp:Button CssClass="bouton" ID="btnSoumettre" runat="server" Text="Soumettre" CausesValidation="false"   
                                meta:resourcekey="btnSoumettreResource1" />  
                        </td>  
                    </tr>                      
                </table>  
            </fieldset>  
          
        </div>  
          
        <div style="text-align:center; margin:auto; width: 650px;">  
          
            <fieldset>  
                <legend>Résultats</legend><br />  
                    <telerik:RadGrid ID="rgridSimCours" runat="server"  
                        AutoGenerateColumns="False" GridLines="None" Skin="Web20"   
                        Width="600px" ShowStatusBar="True" OnNeedDataSource="rgridSimCours_NeedDataSource"  
                        BorderColor="#4796FF" BorderStyle="Solid" BorderWidth="1px"  AllowPaging="true"  
                        AllowSorting="True" meta:resourcekey="rgridSimCoursResource1">  
                        <ValidationSettings CommandsToValidate="Enregistrer" EnableValidation="False" />  
                        <PagerStyle NextPagesToolTip="Pages suivantes" NextPageToolTip="Page suivante"   
                            PagerTextFormat="Changer de page: {4} &amp;nbsp;Page {0} de {1}, résultats {2} à {3} sur {5}."   
                            PrevPagesToolTip="Pages précédentes" PrevPageToolTip="Page précédente" />  
                        <MasterTableView BorderStyle="None" CellPadding="0" CommandItemDisplay="Top"  
                            NoDetailRecordsText="" NoMasterRecordsText="Aucun enregistrement.">  
                            <RowIndicatorColumn Visible="false" >  
                                <HeaderStyle Width="20px" />  
                            </RowIndicatorColumn>  
                            <ExpandCollapseColumn Resizable="False" Visible="False">  
                                <HeaderStyle Width="20px" />  
                            </ExpandCollapseColumn>  
                            <Columns>  
                                <telerik:GridBoundColumn DataField="Sigle" HeaderText="Sigle" SortAscImageUrl="images/sortasc.gif" SortDescImageUrl="images/sortdesc.gif"   
                                    meta:resourcekey="GridBoundColumnResource1" UniqueName="Sigle">  
                                    <HeaderStyle BorderStyle="None" CssClass="grid_header" HorizontalAlign="Left" ForeColor="White"    
                                        VerticalAlign="Bottom" />  
                                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Width="115px" />  
                                </telerik:GridBoundColumn>  
                                <telerik:GridBoundColumn DataField="EtbCode" HeaderText="Établissement" SortAscImageUrl="images/sortasc.gif" SortDescImageUrl="images/sortdesc.gif"  
                                    meta:resourcekey="GridBoundColumnResource2" UniqueName="EtbCode">  
                                    <HeaderStyle CssClass="grid_header" HorizontalAlign="Left" ForeColor="White"   
                                        VerticalAlign="Bottom" />  
                                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Width="115px" />  
                                </telerik:GridBoundColumn>  
                                <telerik:GridBoundColumn DataField="Titre" HeaderText="Titre" SortAscImageUrl="images/sortasc.gif" SortDescImageUrl="images/sortdesc.gif"  
                                    meta:resourcekey="GridBoundColumnResource3" UniqueName="Titre">  
                                    <HeaderStyle CssClass="grid_header" HorizontalAlign="Left" ForeColor="White"   
                                        VerticalAlign="Bottom" />  
                                    <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Width="320px" />  
                                </telerik:GridBoundColumn>  
                                <telerik:GridBoundColumn HeaderText="GDA" SortExpression="CrsID" SortAscImageUrl="images/sortasc.gif" SortDescImageUrl="images/sortdesc.gif"   
                                    meta:resourcekey="GridBoundColumnResource4" UniqueName="IndGda">  
                                    <HeaderStyle CssClass="grid_header" HorizontalAlign="Center" ForeColor="White"    
                                        VerticalAlign="Bottom" />  
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Top" Width="50px" />  
                                </telerik:GridBoundColumn>  
                                <telerik:GridEditCommandColumn ButtonType="ImageButton"   
                                    EditImageUrl="images/modifier.png" HeaderText="Détail">  
                                    <HeaderStyle BorderStyle="None" CssClass="grid_header" HorizontalAlign="Center" />  
                                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Top" Width="50px" />  
                                </telerik:GridEditCommandColumn>  
                                <telerik:GridBoundColumn DataField="NbCredit" UniqueName="NbCredit" Visible="False"></telerik:GridBoundColumn>  
                                <telerik:GridBoundColumn DataField="CrsID" UniqueName="CrsID" Visible="False"></telerik:GridBoundColumn>  
                                <telerik:GridBoundColumn DataField="NatureCours" UniqueName="NatureCours" Visible="False"></telerik:GridBoundColumn>  
                                <telerik:GridBoundColumn DataField="EchId" UniqueName="EchId" Visible="False"></telerik:GridBoundColumn>  
                                <telerik:GridBoundColumn DataField="EchDescription" UniqueName="EchDescription" Visible="False"></telerik:GridBoundColumn>  
                                <telerik:GridBoundColumn DataField="DateCreation" UniqueName="DateCreation" Visible="False"></telerik:GridBoundColumn>  
                                <telerik:GridBoundColumn DataField="CycCode" UniqueName="CycCode" Visible="False"></telerik:GridBoundColumn>  
                            </Columns>  
                            <EditFormSettings EditFormType="Template">  
                                <EditColumn UniqueName="EditColumn">  
                                </EditColumn>  
                                <FormTemplate>  
                                    <table bgcolor="#D1D1D1" style="width:100%;">  
                                        <tr>  
                                            <td align="left">  
                                                Identificateur :</td>  
                                            <td align="left">  
                                                <telerik:RadTextBox ID="rtxtCrsId" runat="server" BorderStyle="Solid"   
                                                    BorderWidth="1px" MaxLength="6" ReadOnly="True" Width="75px">  
                                                </telerik:RadTextBox>  
                                            </td>  
                                            <td align="right" colspan="2">  
                                                <asp:ImageButton ID="ibtEnregistrer" runat="server" CommandName="Enregistrer"   
                                                    CssClass="png" ImageUrl="~/images/enregistrer.png"   
                                                    meta:resourcekey="ibtEnregistrerResource1" ToolTip="Enregistrer" />  
                                                &nbsp;&nbsp;&nbsp;  
                                                <asp:ImageButton ID="ibtAnnuler" runat="server" CausesValidation="False"   
                                                    CommandName="Cancel" CssClass="png" ImageUrl="~/images/annuler.png"   
                                                    meta:resourcekey="ibtAnnulerResource1" ToolTip="Annuler" />  
                                                &nbsp;&nbsp;&nbsp;  
                                                <asp:ImageButton ID="ibtSupprimer" runat="server" CausesValidation="False"   
                                                    CommandName="Supprimer" CssClass="png" ImageUrl="~/images/supprimer.png"   
                                                    meta:resourcekey="ibtSupprimerResource1" ToolTip="Supprimer" />  
                                            </td>  
                                        </tr>  
                                        <tr>  
                                            <td align="left">  
                                                Sigle :</td>  
                                            <td align="left" valign="top">  
                                                <telerik:RadTextBox ID="rtxtSigle2" MaxLength="11" runat="server">  
                                                </telerik:RadTextBox>  
                                                <asp:RequiredFieldValidator ID="rfvSigle" runat="server" ErrorMessage="*"   
                                                    ControlToValidate="rtxtSigle2"></asp:RequiredFieldValidator>  
                                            </td>  
                                            <td align="left" >  
                                                Établissement :</td>  
                                            <td align="left" valign="top">  
                                                <telerik:RadTextBox  ID="rtxtEtbCode2" MaxLength="6" runat="server">  
                                                </telerik:RadTextBox>  
                                                <asp:RequiredFieldValidator ID="rfvEtbCode" runat="server" ErrorMessage="*"   
                                                    ControlToValidate="rtxtEtbCode2"></asp:RequiredFieldValidator>  
                                            </td>  
                                        </tr>  
                                        <tr valign="top">  
                                            <td align="left" valign="middle">  
                                                Titre :</td>  
                                            <td align="left" colspan="3" valign="top">  
                                                <telerik:RadTextBox ID="rtxtTitre2" runat="server" MaxLength="125" Rows="1" Width="400px">  
                                                </telerik:RadTextBox>  
                                                <asp:RequiredFieldValidator ID="rfvTitre" runat="server" ErrorMessage="*"   
                                                    ControlToValidate="rtxtTitre2"></asp:RequiredFieldValidator>  
                                            </td>  
                                        </tr>  
                                        <tr>  
                                            <td align="left">  
                                                Nb crédit :</td>  
                                            <td align="left" valign="top">  
                                                <telerik:RadTextBox ID="rtxtNbCredit" MaxLength="3" runat="server" Width="25px">  
                                                </telerik:RadTextBox>  
                                                <asp:RequiredFieldValidator ID="rfvNbCredit" runat="server" ErrorMessage="*"   
                                                    ControlToValidate="rtxtNbCredit"></asp:RequiredFieldValidator>  
                                            </td>  
                                            <td align="left">  
                                                Nature du cours :</td>  
                                            <td align="left">  
                                                <asp:DropDownList ID="cboNaturecours" runat="server"   
                                                    meta:resourcekey="DropDownList1Resource1">  
                                                </asp:DropDownList>  
                                            </td>  
                                        </tr>  
                                        <tr>  
                                            <td align="left">  
                                                Cycle :</td>  
                                            <td align="left" valign="top" colspan="3">  
                                                <asp:DropDownList ID="cboCycles" runat="server"   
                                                    meta:resourcekey="DropDownList1Resource1">  
                                                </asp:DropDownList>  
                                            </td>  
                                        </tr>  
                                        <tr>  
                                            <td align="left">  
                                                Échelle de notation :</td>  
                                            <td align="left" colspan="2" valign="top">  
                                                <telerik:RadTextBox ID="rtxtEchelle" ReadOnly="true" runat="server"   
                                                    Width="250px">  
                                                </telerik:RadTextBox>  
                                                <asp:RequiredFieldValidator ID="rfvEchId" runat="server" ErrorMessage="*"   
                                                    ControlToValidate="rtxtEchId"></asp:RequiredFieldValidator>  
                                            </td>  
                                            <td align="left">  
                                                <asp:LinkButton ID="lbtEchelle" runat="server"   
                                                    onclientclick="showetb();return false;"  
                                                    meta:resourcekey="LinkButton1Resource1" CausesValidation="False"   
                                                    onclick="lbtEchelle_Click">Sélectionner</asp:LinkButton>  
                                                <telerik:RadTextBox ID="rtxtEchId" Runat="server" Visible="False" Width="10px">  
                                                </telerik:RadTextBox>  
                                            </td>  
                                        </tr>  
                                        <tr>  
                                            <td align="left">  
                                                Date de création :</td>  
                                            <td align="left" valign="top">  
                                                <telerik:RadTextBox ID="rtxtDateCreation" runat="server" Width="70px">  
                                                </telerik:RadTextBox>  
                                            </td>  
                                            <td align="right">  
                                                &nbsp;</td>  
                                            <td align="left">  
                                                <asp:LinkButton ID="lbtMigrer" runat="server"   
                                                    meta:resourcekey="LinkButton2Resource1" Visible="False">Migrer au GDA</asp:LinkButton>  
                                            </td>  
                                        </tr>  
                                    </table>  
                                </FormTemplate>  
                                <PopUpSettings ScrollBars="None" />  
                            </EditFormSettings>  
                            <ItemStyle BorderStyle="None" CssClass="grid_item" />  
                            <AlternatingItemStyle BorderStyle="None" CssClass="grid_item_alt" />  
                            <HeaderStyle BorderStyle="None" />  
                            <CommandItemTemplate>  
                                <table class="grid_command">  
                                    <tr>  
                                        <td>  
                                            <asp:LinkButton ID="lbtAjouter" runat="server" CommandName="Ajouter"   
                                                Font-Underline="False" ForeColor="White" meta:resourcekey="lbtAjouterResource1"><img   
                                                border="0" class="png" src="images/ajouter.png" />&nbsp;&nbsp;Ajouter un cours</asp:LinkButton>  
                                        </td>  
                                    </tr>  
                                </table>  
                            </CommandItemTemplate>  
                        </MasterTableView>  
                        <EditItemStyle BackColor="#9F9F9F" />  
                        <ItemStyle BorderStyle="None" />  
                          
                        <SelectedItemStyle BackColor="#9F9F9F" BorderStyle="None" />  
                        <SortingSettings SortedAscToolTip="Tri ascendant"   
                            SortedDescToolTip="Tri descendant" SortToolTip="Cliquez ici pour trier" />  
                        <StatusBarSettings ReadyText="Attente d'opération" LoadingText="Opération en cours <img src='images/chargement.gif' border='0' />"  />  
                    </telerik:RadGrid>  
                <br />  
 
            </fieldset>          
        </div>  
        </telerik:RadAjaxPanel>  
          
        <br />  
        <telerik:RadWindowManager ID="rwm" runat="server" Skin="Web20">  
            <Windows>  
                <telerik:RadWindow ID="Dialog_Echelle"   
                        Behaviors="Close"   
                        ReloadOnShow = "true"  
                        OnClientclose = "OnClientclose"  
                        Left="250px"  
                        Modal = "true"  
                        Runat="server"   
                        Width="270px"                           
                        Height="250px"   
                        Title="Échelle de notation"   
                        NavigateUrl="dialog_echelle_notation.aspx">  
                </telerik:RadWindow>  
            </Windows>  
        </telerik:RadWindowManager>  
 
          
    </form>  
</body>  
</html>  
 

François
Top achievements
Rank 1
 answered on 18 Jul 2008
9 answers
208 views
Hi,
I have seen the demo for check multiple textbox on client side. but we need to put the RadSpell check on toolbar of the Master Page.

and for every content page, i would set the ControlToCheck property dynamically by programme, but this only support single control, how to support multiple text control to check?

another question associated with this is that, since i am using RadToolBar, i want to set the spell check as an image button. but when I set the ButtonType as ImageButton, it doenst work.

thanks in advance.
Lini
Telerik team
 answered on 18 Jul 2008
2 answers
107 views
Hi,

I have a web part hosted in the MOSS 2007.  It seems like that when you increase the size of the appointment it shrinks from the bottom.  For instance, When you incase the size of appointment the shorter it will become, however, it  looks fine with one hour appointment.  But when you create an appointment between 8am to 1pm then its very obvious.  

It seems to like losing 5 minutes in each hour you add to the appointment.  It is also happening at the following site as well where you have hosted a web part in the SharePoint environment.

http://sharepoint.telerik.com/Products/RadControlsAjax/Pages/RadScheduler.aspx

However, It seems to work fine when the server control is not hosted in the SharePoint. 

Could anyone please help me what could be wrong with that? 

Any help would be appreciated.

Thank you,
-Salman
salman
Top achievements
Rank 1
 answered on 18 Jul 2008
2 answers
225 views
Hi,

    Previously, we bought a license for RadControls for ASP.NET but when it comes to RadControls for ASP.NET AJAX, we can only download the trial version. I'm still not sure though because the person who bought it said that she added me as developer to the license. Do we need her account to download the newer version or do we need to purchase another license for it?  Unfortunately, the person who bought the license is on maternity leave right now so we don't have any way to check if she can download anything using her account. Are there any other options we can do?

    Your prompt response would be greatly appreciated. Thanks!

Regards,
Francis
Arthur
Top achievements
Rank 2
 answered on 18 Jul 2008
2 answers
94 views
Hello,   
     I am using RadAjax version - v1.18.1.0. The problem that I have is that
AjaxLoadingPanel doesn't update the repeater and shows the content of the repeater in 2 places in page: one in the right place and the other one for no reason in the top of the page, and the content of the repeater is not updated in none of the places when it is clicked on scrollbar.

I have a repeater, a control scollbar associated with the repeater and a button. The scrollbar control changes the datasource of the repeater on click. On button event on_click I have the following code:

divCoursesVisible.Visible  = ! divCoursesVisible.Visible;  
coursesVerticalScrollBar.Visible = !coursesVerticalScrollBar.Visible;  
 

The aspx :

scrollbar control:

<ucSB:VerticalScrollBar id="coursesVerticalScrollBar" runat="server"></ucSB:VerticalScrollBar> 


repeater:

<div id="divCoursesRpt" runat="server">  
         <div id="divCoursesVisible" runat="server">  
          <asp:Repeater id="rptCoursesList" Runat="server" EnableViewState="true">  
           <ItemTemplate>  
            <tr class='<%# ListRowCSSClass(rptCoursesList.Items.Count) %>'>  
             <td colspan="2">&nbsp;</td>  
             <td id="cellCoursesName" runat="server">  
              <asp:Label ID="lblCourseName" Runat="server"></asp:Label>  
             </td>  
             <asp:Repeater Runat="server" ID="rptUserCourse" EnableViewState="False">  
              <ItemTemplate>  
               <td align="center">  
                <ucSelector:UserCourse runat="server" id="userCourseSelector"></ucSelector:UserCourse>  
               </td>  
              </ItemTemplate>  
             </asp:Repeater>  
            </tr>  
           </ItemTemplate>  
           <FooterTemplate>  
            <tr class='<%# ListRowCSSClass(1) %>' >  
             <td class="NoRecords" id="noRecordCell" runat="server" valign="bottom">  
              &nbsp;No course found!<br>  
              <br>  
             </td>  
            </tr>  
           </FooterTemplate>  
          </asp:Repeater>  
         </div>  
        </div>  
 
<radA:RadAjaxManager id="radAjaxManager1" runat="server">  
       <AjaxSettings>  
        <rada:AjaxSetting AjaxControlID="coursesVerticalScrollBar">  
         <UpdatedControls>  
          <rada:AjaxUpdatedControl ControlID="coursesVerticalScrollBar"></rada:AjaxUpdatedControl>  
          <rada:AjaxUpdatedControl ControlID="divCoursesRpt"></rada:AjaxUpdatedControl>  
         </UpdatedControls>  
        </rada:AjaxSetting>  
       </AjaxSettings>  
      </radA:RadAjaxManager>  
 
 
<radA:AjaxLoadingPanel id="loadingPanelCourseList" runat="server" BackColor="#E0E0E0" MinDisplayTime="2000" 
       Transparency="10">  
       <IMG id="imgLoading" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; MARGIN-TOP: 40px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" 
        alt="Loading..." src="../../../../Resources/Images/loading.gif" runat="server">  
      </radA:AjaxLoadingPanel> 


Thank you.
Iana Tsolova
Telerik team
 answered on 18 Jul 2008
3 answers
202 views
I have a GridCalculatedColumn with dataformatstring as currency but it seems not working

                            <telerik:GridCalculatedColumn DataType="System.Double"
                            DataFields="Quantity, UnitPrice" Expression="{0}*{1}"
                            HeaderText="Line Total" UniqueName="LineTotal" ItemStyle-Width="100"
                            DataFormatString="{0:c}" ItemStyle-HorizontalAlign="Right"
                            HeaderStyle-HorizontalAlign="Right">
                            </telerik:GridCalculatedColumn> 

Data on grid shows as "1100.0000". I want it displays as "$11,000.00".  Please help.


Pavel
Telerik team
 answered on 18 Jul 2008
1 answer
109 views
Hi All,

   I am trying to run the treeview as follows,
It lists all the customers in a company,
The users have can right click on a customer and receive a context menu.
<--- Up to here I am fine --->
Then they can select edit and a window will open with a form in that allows them to edit the selected customer.  So how do I pass the customer id to the window?

Cheers
Yana
Telerik team
 answered on 18 Jul 2008
4 answers
126 views

Hi there,

I'm trying to migrate to RadControls for ASP.NET Ajax but I'm finding a few difficulties. In my existing application I am using AjaxManager (with RadControls for ASP.NET, not the version) to ‘ajaxify’ some ASP Panel controls (ActionContainer and ActionContainer1 in this example) by doing something like this:

RadAjaxManager1.AjaxSettings.AddAjaxSetting(ActionContainer, ActionContainer, null);

RadAjaxManager1.AjaxSettings.AddAjaxSetting(ActionContainer1, ActionContainer1, null);


The effect I am getting is something similar to the one I’d get by using RadAjaxPanel controls. This means that ActionContainers get updated when any control inside them generates one postback. In my simple example I have two panels and each contains one button, one label, and one lisbox. A new line is added to the corresponding list box each time a button is pressed. Besides that, the label inside each panel also is updated each time it is updated.

Once again, the effect is similar to what I would get with two RadAjaxPanels but with a very important difference: their requests can get queued and therefore won’t cancel each other.

        <asp:Panel runat="server" ID="ActionContainer" BorderWidth="5">

            <asp:ListBox ID="ListBox" runat="server" AutoPostBack="true">
            </asp:ListBox>
           
            <asp:Button ID="DoIt" runat="server" OnClick="DoIt_Click" />
            PostBack: <asp:Label ID="InnerPostBackTime" runat="server"></asp:Label>
        </asp:Panel>

        <asp:Panel runat="server" ID="ActionContainer1" BorderWidth="5">
            <asp:ListBox ID="ListBox1" runat="server" AutoPostBack="true">
            </asp:ListBox>
           
            <asp:Button ID="DoIt1" runat="server" OnClick="DoIt1_Click" />
            PostBack: <asp:Label ID="InnerPostBackTime1" runat="server"></asp:Label>
        </asp:Panel>

This works fine with RadControls for ASP.NET Q1 2008 but doesn’t work with RadControls for ASP.NET Ajax Q1 2008. In the later case the labels for both panels get updated when either button is clicked.

I know that one solution for this could be adding settings for every control inside the panel - the ones that generate postbacks - but that’s something I’m trying to avoid.

The question is: is there any way to get the desired behaviour out of the Ajax RadControls?

Thanks,

Paulo

paulo.galão
Top achievements
Rank 1
 answered on 18 Jul 2008
5 answers
115 views
Hello,
columns with background-color appears buggy if the row is selected !

see this example

Thank you for your help!
Daniel
Telerik team
 answered on 18 Jul 2008
1 answer
100 views
Hi,

I use radeditor ressource files into an existing project.

I read this page http://www.telerik.com/help/aspnet-ajax/usingglobalresourcefiles.html.

But, I don't know if the RadEditor can detect automatically the Language of the website ?

Or I have to set manually the Language property ? RadEditor.Language = "it-IT";


Rumen
Telerik team
 answered on 18 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?