Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
150 views
Hi there,

I have an ASP.net wizard control, with a RadDatePicker on one of the steps. I have added a RequiredFieldValidator as per this documentation. 

Unfortunately, the validator isn't firing when I enter an invalid date, and I can move to the next step in the wizard. If I move to the next step, then return to the previous step and enter an invalid date, it then fires.

My code for the RadDatePicker and Validator is as below:
<telerik:RadDatePicker ID="rdpMAEDROut" Runat="server" Culture="en-US">
    <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False"
            ViewSelectorText="x" daynameformat="Short" showrowheaders="False"></Calendar>
    <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
    <DateInput DisplayDateFormat="dd/MM/yyyy" DateFormat="dd/MM/yyyy"
            emptymessage="dd/mm/yyyy" CssClass="RDPInvalid"></DateInput>
</telerik:RadDatePicker>
<asp:RequiredFieldValidator CssClass="RequiredFieldValidator"
        ID="rfvMAEDROut" runat="server"
     ControlToValidate="rdpMAEDROut"
        ErrorMessage="You must enter a valid value in this field." ></asp:RequiredFieldValidator>

Any ideas would be greatly appreciated :)

Maria Ilieva
Telerik team
 answered on 02 Dec 2010
3 answers
86 views
Hi,
i am using RadMaskedTextBox,i am facing one issue ,please follow the following example.

I have set mask as Letter

i have entered "abc" first time

next time i put mouse point  at before  "a" letter  and trying enter letters "def",actually my Intention is enter total text as "defabc",but it is overlapping abc and enters "def"

please let me know is there any way to solve this issue,


Maria Ilieva
Telerik team
 answered on 02 Dec 2010
3 answers
106 views
Hi,

I have a page with a lot of Rad Controls on it - inside a RadGrid control. I have a RadAjaxManager on the page master page and I am using Rad Ajax Manager Proxy on each page. Also I am intensively using the client-side API of the RadControls (RadComboBox, RadNumericBox, etc). The grid control is inside a RadPageView and I am usign RadTabStrip to switch between different other views.
All of this is AJAX-enabled (I have turned the  RenderSelectedPageOnly = true of the Radmultipage, however, if set to false does not make a difference). The problem is that each time I switch to another tab and then return to the previous (with the grid and the controls), or when I perform sorting of the grid, the clientside objects for the editor controls (I use $find('controlClientID')) , it is null.
Any clues on this issue will be helpful.
Maria Ilieva
Telerik team
 answered on 02 Dec 2010
5 answers
152 views
Hi! I require all of my RadGrids using the below Skin to ge exportable without paging. Issue is that all grids are on Content Pages that inherit a Single Master page with a RadAjaxManager. All child pages have a RadAjaxManagerProxy. So all grids are AJAXified. I'm into completion here so a major overhaul is not optional. kindly advice a strategy. All grids have different names, btw.

Thanks.

<telerik:RadGrid runat="server" GridLines="None" Skin="Office2007" SkinID="RadGrid_UnPageable" >   
    <MasterTableView EnableNoRecordsTemplate="true" ShowHeadersWhenNoRecords="true">
      <CommandItemSettings ShowRefreshButton="true" ShowExportToWordButton="false" ShowExportToExcelButton="false" ShowExportToPdfButton="false" ShowExportToCsvButton="false" />
        <PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric" Position="Bottom" />
        <NoRecordsTemplate>There is no data to display.</NoRecordsTemplate>
    </MasterTableView>
    <ExportSettings HideStructureColumns="true" ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true" />
    <ClientSettings>
        <Selecting AllowRowSelect="True" />
    </ClientSettings>
</telerik:RadGrid>
Daniel
Telerik team
 answered on 02 Dec 2010
5 answers
162 views
Hi,

I´d like to get return of RadConfirm when Button NO was pressed.
How can I do that at runtime with VB.net?

Tks

Luiz
Georgi Tunev
Telerik team
 answered on 02 Dec 2010
3 answers
170 views
Hi,
Is any property in TreeView to set max width of node?
In my application some nodes are too long:
http://img232.imageshack.us/img232/5127/telerik.png
How to fix this?

Thanks.
Dimitar Terziev
Telerik team
 answered on 02 Dec 2010
5 answers
275 views
      This is using 2009Q3 Rad Ajax., .NET Framework 2 in Visual Studio 2005.  I have a RadWindow, and it it's content template it has a Rad Progress Area. In the OnClientProgressStarted even of the Progress Manager it calls the following JavaScript. The Javascript writes a title into the Progress Bar's Top Panel, Disables some tabs in the Radtabstrip and then shows and centers the Rad Window.  It works great in IE8, but in IE6 the screen gets disabled but the rad window never appears.  Attached are two screen captures demonstrating this.

  function progressStarted(radProgressManager) {    
         
                var container = document.getElementById('usrAddBatch_RadWindow1_C_RadProgressArea1_Panel');    
                var new_element = document.createElement('h2');    
                new_element.innerHTML = 'Creating Renewals';    
                new_element.setAttribute("class""clsLoadHeader");     //For Most Browsers    
                new_element.setAttribute("className""clsLoadHeader"); //For IE; harmless to other browsers.   
                if (container) 
                {  
                 
                     
                   container.insertBefore(new_element, container.firstChild);    
                 
                } 
         
         
                //Disable the tabs while we are processing renewals 
                 var tabStrip = $find("Radtabstrip1"); 
                 
                  if (tabStrip) 
                  { 
                       
                        for (x = 0; x < tabStrip.get_tabs().get_count(); x++) 
                        { 
                                tabStrip.get_tabs().getTab(x).set_enabled(false);       
                                                 
                        } 
                   
                  } 
                   
                  // Show the rad window 
                  var radWindow = $find("usrAddBatch_RadWindow1"); 
                   
                  if (radWindow) { 
                   
                    radWindow.show(); 
                    radWindow.center(); 
                    radWindow.set_behaviors(Telerik.Web.UI.WindowBehaviors.None); 
                    radWindow.set_visibleStatusbar(false); 
                    radWindow.set_visibleTitlebar(false); 
                     
                    radWindow.set_modal(true); 
                     
                  } 
 
         }  
  
            <telerik:RadWindow ID="RadWindow1"   
                                                          EnableEmbeddedSkins="false"  
                                                          runat="server"  
                                                          VisibleOnPageLoad="false"  
                                                          Width="448"  
                                                          Height="208"
                                          <ContentTemplate> 
                                                <telerik:RadProgressArea style="margin-left:auto;margin-right:0px;"  
                                                                         ID="RadProgressArea1"  
                                                                         runat="server"  
                                                                         Height="58px"   
                                                                         ProgressIndicators="TotalProgressBar, TotalProgressPercent, TimeElapsed"  
                                                                         Skin="Office2007" > 
                                                    <Localization Uploaded="Completed"  />  
                                                </telerik:RadProgressArea> 
                                            </ContentTemplate> 
                                        </telerik:RadWindow> 
                                        <telerik:RadProgressManager OnClientProgressStarted="progressStarted" ID="RadProgressManager1" runat="server" /> 
Georgi Tunev
Telerik team
 answered on 02 Dec 2010
4 answers
128 views

Greetings,
I am currently using version control RadAjaxManager 2010.3.1109.35 with the following problem:

I want to update a particular "asp: DropDownList" when the values of a "Telerik:RadMaskedTextBox" changed.

For this purpose i’m using the client event "OnValueChanged" to trigger a Ajax request, however, this scenario only works one time.

 

After the first ajax request, if i trigger the "OnValueChanged" again, the ajax request isn’t fired. I have done some debug and in the second time i trigger the event, the control RadAjaxManager in the client side is null.

 

How do I solve this problem?

 

Code executed in server side:

 

protected void Adabas_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)
  
{
  
    string argument = (e.Argument);
  
    string[] arrayString = argument.Split(",".ToCharArray());
  
  
    string operacao = arrayString[0];
  
     if (operacao == "CarregarADABAS")
  
        {
  
            ptin.formare.lms.core.utilizadores.cnpj.gestaoCNPJ _gestcnpj = new ptin.formare.lms.core.utilizadores.cnpj.gestaoCNPJ("LMS_BD");
  
            DataTable lista_ADABAS = _gestcnpj.ListaADABASPorCNPJ(arrayString[1]);
  
            ddAdabas.Items.Clear();
  
            ddAdabas.DataSource = lista_ADABAS;
  
            ddAdabas.DataTextField = "ADABAS";
  
            ddAdabas.DataValueField = "ADABAS";
  
            ddAdabas.DataBind();
  
         }
  
}

Code executed in cliente side:

 

<telerik:RadAjaxManager ID="Adabas" runat="server" onajaxrequest="Adabas_AjaxRequest">
  
    <AjaxSettings>
  
        <telerik:AjaxSetting AjaxControlID="Adabas">
  
            <UpdatedControls>
  
                <telerik:AjaxUpdatedControl ControlID="ddAdabas" />
  
            </UpdatedControls>
  
         </telerik:AjaxSetting>
  
    </AjaxSettings>
  
</telerik:RadAjaxManager>
  
   
  
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
  
    <script type="text/javascript">
  
    function CarregaListaADABAS (sender, args)
  
    {
  
      var message = args.get_newValue();
  
         message = message.replace(/[^a-zA-Z 0-9]+/g,'');
  
     var ajaxManager =  $find("<%= Adabas.ClientID %>"); //This value is null in the second time (event OnValueChanged)
  
        if(ajaxManager != null)
  
          {
  
             ajaxManager.ajaxRequest('CarregarADABAS,'+ message);
  
          }
  
    }
  
    </script >
  
</telerik:RadCodeBlock>
  
   
  
<Telerik:RadMaskedTextBox ID="txt_cnpj" runat="server" Rows="1" UseEmbeddedScripts="False" Mask="##.###.###/####-##" TextWithLiterals="..-" CausesValidation="True" Width="125px" Height="11px" Skin="Outlook">
  
     <ClientEvents OnValueChanged="CarregaListaADABAS"/>
  
</Telerik:RadMaskedTextBox>

 

Regards

Filipe Peixinho
Top achievements
Rank 1
 answered on 02 Dec 2010
1 answer
381 views
We have Radgrid with Rad comboboxes kept in GridTemplateColumn Item Templates. Selecting items from existing rows comboboxes and then clicking on add button the grid got rebinded and selected options are not shown. When Add button is clicked we dont want to save new row in database but want to show new row in Radgrid, once required rows are added if we click another button "save" then we need to save the selected values from comboboxes from all rows to database. Can you please suggest the way to add new row to the Radgrid directly client side rather than binding the grid again for getting new row from database. And also suggest for retaining the combobox selected values on adding new row.
Veli
Telerik team
 answered on 02 Dec 2010
1 answer
136 views
Hello,

From the client, I need to attach to the request start event of the RadAjaxpanel or RadAjaxManager.  Is that possible?  Essentially, if a User control is added to the page (which may or may not exist), I want it to attach itself.  There can be more than one UC that may need to attach.  Is it possible to do this?  I may be able to pull off a server-side solution if that is the only option too.

Any guidance would be great.

Thanks.
Brian Mains
Top achievements
Rank 1
 answered on 02 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?