Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
58 views

Hi Team,

I have a combo box like this and client function as shown below. 

   <telerik:RadComboBox ID="cmbCurrency" runat="server" CausesValidation="false"  ClientIDMode="AutoID"
                    EmptyMessage="[Select All]" Filter="Contains" MaxHeight="150" Width="100%" HighlightTemplatedItems="true" 
                    AllowCustomText="true"  OnClientDropDownClosed="onDropDownClosing"> 
                     <ItemTemplate>  
                        <div onclick="StopPropagation(event)" >  
                            <asp:CheckBox runat="server" ID="cbxItem" Text='<%# Eval("CurrencyCode") %>' onclick="onCheckBoxClick(this,'cmbCurrency')"/>   
                        </div>  
                    </ItemTemplate>  
                </telerik:RadComboBox>

 

//<Combo box 2  with same onclick event > 

 

Onclick Event:

 function onCheckBoxClick(chk, val) {
                var combo = $find("ctl00_MainContent_radDockSelection_C_ctl00_" + val);

                        //prevent second combo from closing 
                cancelDropDownClosing = true;
                //holds the text of all checked items 
                var text = "";
                //get the collection of all items 
                var items = combo.get_items();
                for (var i = 0; i < items.get_count(); i++) {
                    var item = items.getItem(i);
                    //get the checkbox element of the current item 
                    var chk1 = $get(combo.get_id() + "_i" + 0 + "_cbxItem");
                    var chk2 = $get(combo.get_id() + "_i" + i + "_cbxItem");

                    if (chk.nextSibling.innerHTML != "[Select All]") {
                        chk1.checked = false;
                        if (chk2.checked == true)
                            text += chk2.nextSibling.innerHTML + ", ";
                    }
                    else {
                        if (chk1.checked == true)
                            text = "[Select All]";
                        chk2.checked = false;
                        chk1.checked = true;
                    }


                }
                text = removeLastComma(text);

                if (text.length > 0) {
                    //set the text of the combobox   
                    combo.set_text(text);
                    combo.ToolTip = text;
                }

            }

There were 2 problems

1) Check boxes was not responsive.i.e they are not allowing to check either. I change clientstateId as AutoId then It worked.
2) Check all seems not working. 

 

Please let me know How to fix this.

 

Note : the code recently migrated to dotnet 4 and hosted in windows 2008 r2 .

 

Thanks in Advance.

 

Krish

 

 

 

 

 

 

 

 

Krishna
Top achievements
Rank 1
 answered on 22 Jun 2015
3 answers
116 views

Hello, 

i need to build an Audiometric chart like this in c# .net 4

chart

x values are: 125, 500, 1000, 2000, 4000, 8000 Consider that the series can have intermediate values, example 750, 3000, 6000.

i suppose that values are logarithmic but I could not find the correct values.

Marin Bratanov
Telerik team
 answered on 22 Jun 2015
3 answers
124 views
Hi,

I am using sitecore 6.6 which is using Telerik RadEditor control as the Rich Text Editor field type. Presently, It generates output as XHTML; I want the output to be HTML 5. Is it possible to make this change?

Any suggestions will be appreciated.

Regards
Dheeraj Palagiri.
Marin Bratanov
Telerik team
 answered on 22 Jun 2015
6 answers
164 views

Hi,

I need a control to enter time in hours and minutes. Is there any control like textbox with up and down arrows to select hour and minutes in telerik.

Please let me know.

Eyup
Telerik team
 answered on 22 Jun 2015
1 answer
164 views

We have a record maintenance page on a web app that we are developing that sits for an age before submitting the form once the 'Save' button has been pressed BUT that only happens under a very specific set of circumstances.  We have deployed the site to a couple of our test servers (both of which are running Windows Server 2003 Web Edition SP2 & IIS6), when we access the site on Server A through Chrome (43.0) the submission is very slow but if we use FireFox then it acts as expected and it always acts as expected, irrespective of the browser, on Server B.  We have a number of record maintenance forms and this is the only which that exhibits this behaviour, although it is the most complicated form we have.

I can't post the actual code, but we have a RadAjaxManager covering all fields on the form, which we use for field change checking and field validation, numerous control types including four RadAsyncUpload controls and a RadNotification.  If I remove the RadAjaxManager, obviously we lose all the AJAX functionality but the Save works as expected. 

Unfortunately the Server A is remote and it is not possible to debug on there to try and determine and watch point it if stalling.

Any help/pointers would be appreciated.

Many thanks

Maria Ilieva
Telerik team
 answered on 22 Jun 2015
2 answers
104 views
I am using GridTemplateColumn (RadGrid) with edit cell
functionality. That is working fine in IE 9 and above versions. With IE 8 when
I click on any cell to edit it I am getting error in getUniqueNameByCellIndex
function on the code mentioned below –

e.CellIndex-f.Cellindex

e & f are undefined.


Can you please help me out to fix this issue?

 

 
Shilpa
Top achievements
Rank 1
 answered on 22 Jun 2015
1 answer
89 views

I am doing something wrong by Telerik application. When I click on a node in my TreeView it takes 24 seconds for data to appear on the screen. I have profiled the whole process and cannot see when the delay is occurring. This is my first REALLY big application and I need help. I have  eliminated the database  as the cause of my problems.

 

Please come up with places I can look and diangostics I can use.

Nencho
Telerik team
 answered on 22 Jun 2015
2 answers
79 views
I am using telerik image editor. I want to set default pan(right upper corner of image) on page load.
I have attached one image. Please find attachment: img.png
I want pan only highlighted in yellow on page load and it should not affect zoom in and zoom out functionality. 

So please let me know the any solution.
Ignatiuz
Top achievements
Rank 1
 answered on 22 Jun 2015
3 answers
163 views

Whenever i add new record of RadGrid Batch Edit mode, I'll have a new row with <tr> ID like: RadGrid1_ctl00__-1,RadGrid1_ctl00__-2,RadGrid1_ctl00__-3....

So how do I get that ID of my current selected row ( contain my pointer ) by script code.

I have tried to use get_itemIndex() but its not working.

Tks

Hiep

Konstantin Dikov
Telerik team
 answered on 22 Jun 2015
2 answers
391 views

Telerik RadAsyncUpload control is used upload files to file system or shared folder. if file already exist we need to append counter value to the end of the file.So i wrote logic to added integer value to the end of  file name. This code works with single file but if upload multiples, this code fails .I want to rename multiple files if already exist in file share.

 protected void RadAsyncUpload1_FileUploaded(object sender, FileUploadedEventArgs e)
        {
           
            List<ListItem> files = new List<ListItem>();
            int counter = 1;
            foreach (UploadedFile file in AsyncUpload1.UploadedFiles)
            {
                
                string targetFolder = AsyncUpload1.TargetFolder;
                string targetFileName = System.IO.Path.Combine(targetFolder,
                    file.GetNameWithoutExtension() + counter.ToString() + file.GetExtension());
                while (System.IO.File.Exists(targetFileName))
                {
                    counter++;
                    targetFileName = System.IO.Path.Combine(targetFolder,
                        file.GetNameWithoutExtension() + counter.ToString() + file.GetExtension());
                    
                }
           
               file.SaveAs(targetFileName);
                
            }

Praveen kumar
Top achievements
Rank 1
 answered on 19 Jun 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?