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
Hello,
i need to build an Audiometric chart like this in c# .net 4
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.
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.
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
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.
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
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);
}