Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
71 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
98 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
96 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
138 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
142 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
256 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
113 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
349 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
95 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
2 answers
54 views
I am working with the radtabStrip. I have 2 tabs.
On the button click I am taking to the second tab.
In the first tab I have two divs. Each div has has 2 radiobuttons.
The first div is opened always and when a selection is made in the first radio button set, then only the second div of radiobuttons is opened.
In the first user control.
window.onload = function() {
    debugger
        $('.travelType2Class').hide();
        if (document.getElementById("<% =domestic.ClientID %>").checked == true) {
            $('.travelType2Class').fadeIn();
        }
        if (document.getElementById("<% =international.ClientID %>").checked == true) {
            $('.travelType2Class').fadeIn();
        }
    }

It worked fine. And when I went to second usercontrol, I should allow the user to go to the first tab and change some data in middle.
So, when I try to click on first tab, I am able to see the first div with the checked value correctly. The problem is the second div of radiobuttons is not opened.
I dont know what I should do to make the second div state as open when the tab is clicked.
As, I showed here, I tried in the window.onload, but I see that this event is fired for the first time when the first usercontrol loads and is never fired even when that tab is clicked. I even tried in the OnPreRender() method of ascx page. It is getting fired. In that I tried to make the Div visible state as true.
Nothing is working.
I am stuck with this.
Could any one pls tell me how to solve this.

Thanks in advance.
Pams
Top achievements
Rank 1
 answered on 02 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?