Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
39 views
Hi,
Is it possible to set the appointment End time depending on the selected value of an attribute (which is a combobox)? Can this be acheived in codebehind or javascript?
Thanks.
Ivana
Telerik team
 answered on 20 Sep 2012
4 answers
104 views
I have a custom ascx control that has a radComboBox. This is my code for the combo box and javascript code:
<telerik:RadComboBox ID="radWQStatus" runat="server" AllowCustomText="false" Width="300px"
    DropDownWidth="350px" MaxHeight="300px" NoWrap="true" HighlightTemplatedItems="true"
    ExpandDirection="Down" ExpandDelay="0" CollapseDelay="0" CheckBoxes="true" EnableCheckAllItemsCheckBox="false"
    AutoPostBack="true" OnClientDropDownClosing="OnClientDropDownClosingWQS">
    <Items>
        <telerik:RadComboBoxItem runat="server" Text="Value1" Value="1" />
        <telerik:RadComboBoxItem runat="server" Text="Value2" Value="2" />
        <telerik:RadComboBoxItem runat="server" Text="Value3" Value="3" />
    </Items>
</telerik:RadComboBox>


<script type="text/javascript" language="javascript">
    function OnClientDropDownClosingWQS(sender, args)
        {
            if (args.get_domEvent().target == sender.get_imageDomElement()) {
                args.set_cancel(false);
            }
            else {
                args.set_cancel(true);
            }
        }
</script>

The problem I am having is the combo box keeps closing after each single selection. If I place this same code on a aspx page it works as expected, I can check multiple items before the box closes. What do I have to do to keep the combo box from closing when used in an ascx control place on an aspx page.
dhuss
Top achievements
Rank 1
 answered on 20 Sep 2012
5 answers
157 views
We use .Net2.0 and the latest version of RadControls for ASP.NET AJAX. If there is only one combobox on the page then a selection of another option from this combobox causes a javascript error
document.createEventObject is not a function 
set_text()("1 Year")Telerik....a38ec41c0 (line 4317) 
_select()(Object rawEvent=Event click altKey=false button=0)Telerik....a38ec41c0 (line 5161) 
_performSelect()(Object _element=li.rcbItem _parent=Object _text=1 Year, Object rawEvent=Event click altKey=false button=0)Telerik....a38ec41c0 (line 4279) 
_onDropDownClick()(Object rawEvent=Event click altKey=false button=0)Telerik....a38ec41c0 (line 3908) 
(?)()()ScriptRe...066005795 (line 50) 
browserHandler()(click clientX=25, clientY=-103)ScriptRe...066005795 (line 3034) 
[Break on this error] var _99=document.createEventObject(); 
and as a result the value is not changed on server. If there are more than one combobox then at first following js-error occurs
Sys.ArgumentException: Value must not be null for Controls and Behaviors. Parameter name: element 
_getAbbrMonthIndex()("")Telerik....a38ec41c0 (line 799) 
Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_HiddenField&_TSM_CombinedScripts_=%3b%3bTelerik.Web.UI%2c+Version%3d2008.1.619.20%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a16ee7c61-0c72-4885-ba3b-3c21a3307fa9%3a393f5085%3a9703c1f0%3aa3f85c94%3a665c7bcf%3bAjaxControlToolkit%2c+Version%3d1.0.10606.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3a2cca7565-7b56-4e56-8ddb-228c2761ce32%3a9ea3f0e2%3bAjaxControlToolkit%2c+Version%3d1.0.10606.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3a2cca7565-7b56-4e56-8ddb-228c2761ce32%3ae2e86ef9%3bAjaxControlToolkit%2c+Version%3d1.0.10606.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3a2cca7565-7b56-4e56-8ddb-228c2761ce32%3ac7c04611%3bAjaxControlToolkit%2c+Version%3d1.0.10606.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3a2cca7565-7b56-4e56-8ddb-228c2761ce32%3a1df13a87%3bAjaxControlToolkit%2c+Version%3d1.0.10606.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3a2cca7565-7b56-4e56-8ddb-228c2761ce32%3acd120801%3bAjaxControlToolkit%2c+Version%3d1.0.10606.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3a2cca7565-7b56-4e56-8ddb-228c2761ce32%3ac4c00916%3bAjaxControlToolkit%2c+Version%3d1.0.10606.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3a2cca7565-7b56-4e56-8ddb-228c2761ce32%3a3858419b%3bAjaxControlToolkit%2c+Version%3d1.0.10606.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3a2cca7565-7b56-4e56-8ddb-228c2761ce32%3a96741c43%3bAjaxControlToolkit%2c+Version%3d1.0.10606.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3a2cca7565-7b56-4e56-8ddb-228c2761ce32%3a38ec41c0()()Telerik....a38ec41c0 (line 5803) 
[Break on this error] this._upperAbbrMonths=this._toUpperArray...s.dateTimeFormat.AbbreviatedMonthNames); 
, because of this error all but one comboboxes are disabled and the one working combobox causes the previous error.

Nencho
Telerik team
 answered on 20 Sep 2012
2 answers
98 views
I am using Telerik.web.ui.dll 2012.2.607.35

i paste mandarin into the editor and it displays, but when i save into db and display in editor again, it is all question marks.

using google chrome.

is there configuration that needs to happen for this Radeditor to enable mandarin copy/paste?
Bruce
Top achievements
Rank 2
 answered on 20 Sep 2012
3 answers
65 views
I have installed RadControlsForAspNetAjaxSetup_2012_2_912 free trial on my server that hosts SharePoint 2010. My issue is, I can't find anything related to Telerik or RadEditor in SharePoint after the install. Is there something else that I need to do or am I missing something? Please let me know how I can resolve this.


Thanks!
Rumen
Telerik team
 answered on 20 Sep 2012
2 answers
332 views
Hi,

I am using rad combo with checkboxs ( ie. Multi Selectable ).

Just want to postback the page, after when users chooses the values in combo.

Tried, selected index changed event, but its not firing.   Please help.
Ram
Top achievements
Rank 1
 answered on 20 Sep 2012
1 answer
51 views
Hello,
I use telerik ajax for search result when the user drag marker on google map.
http://www.forrentproperties.com/list/holiday-rentals/viewsearch/customfieldids/4?searchvalues=0|20000
All work fine on IE, Chrome, Safari but on firefox not.
See screen capture attach for details.
If anyone can help ?
Thank you.
Manu
Pavlina
Telerik team
 answered on 20 Sep 2012
0 answers
54 views
<td id="Td3" runat="server">                                                                  
</td>
<td id="Td4" runat="server">                                                                  
</td>

I bind the check box and combo box in td that assign fine and then
how i get the values server side ,

CheckBox Chkbo = new CheckBox();
                       Chkbo.ID = "chkrms" + a.ToString();
                       //  Div1.Controls.Add(Chkbo);
                       Td3.Controls.Add(Chkbo);
 
                       RadComboBox DropBx = new RadComboBox();
                       DropBx.ID = "droprms" + b.ToString();
                       DropBx.Items.Insert(0, new RadComboBoxItem("   -- Select--   ", ""));
                       DropBx.Items.Insert(1, new RadComboBoxItem("Today", "10000000000001"));
                       DropBx.Items.Insert(2, new RadComboBoxItem("Yesterday", "10000000000002"));
                       DropBx.Items.Insert(3, new RadComboBoxItem("This Week", "10000000000003"));
                       DropBx.Items.Insert(4, new RadComboBoxItem("Last Week", "10000000000004"));
                       DropBx.Items.Insert(5, new RadComboBoxItem("This Month", "10000000000005"));
                       DropBx.Items.Insert(6, new RadComboBoxItem("Last Month", "10000000000006"));
                       DropBx.Items.Insert(7, new RadComboBoxItem("This Quarter", "10000000000007"));
                       DropBx.Items.Insert(8, new RadComboBoxItem("Last Quarter", "10000000000008"));
                       DropBx.Items.Insert(9, new RadComboBoxItem("This Year", "10000000000009"));
                       DropBx.Items.Insert(10, new RadComboBoxItem("Last Year", "10000000000010"));
                       //Div2.Controls.Add(DropBx);
                       Td4.Controls.Add(DropBx);
Thanks Advance,
Mohamed.
mohamed
Top achievements
Rank 1
 asked on 20 Sep 2012
1 answer
132 views
Kindly help me ,
I have two RadAsyncUpload control first one upload Multiple Files and the second one upload one file.
the second one has custom validator that validate the user upload file .
the first one fire ajax when the files uploaded .
but the second one doesn’t fire any ajax because the user should click upload button.
The problem is when the custom validator is fire the error msg the first one doesn’t fire the ajax but when I fire it twice it will make postback .
Here is the two controls:
<telerik:RadAsyncUpload ID="tlkasycupMultipleFile" runat="server" MultipleFileSelection="Automatic"
                    MaxFileInputsCount="100" OnFileUploaded="fnOnFileUploaded" OnClientFilesUploaded="fileUploaded" 
                    OnClientFileUploadFailed="OnClientFileUploadFailed" OnClientFilesSelected="fnShowProgressArea"
                    OnClientValidationFailed="fnOnValidationFailedFileUpload" >
                </telerik:RadAsyncUpload>
         <table>
                    <tr>
                        <td>
                            <telerik:RadTextBox ID="radtxtUploadName" runat="server" Label="Upload Name " LabelWidth="100px"
                                meta:resourcekey="radtxtUploadNameResource1" Width="260px" ClientEvents-OnValueChanging="fnUploadNameTextChanged">
                            </telerik:RadTextBox>
                            <br />
                            <asp:CustomValidator ID="wcvIsSingleFileUploadNameExist" runat="server" Display="Dynamic"
                                ValidationGroup="UploadSingleFile" SetFocusOnError="true" ClientValidationFunction="fnIsSingleFileUploadNameExist"
                                ControlToValidate="radtxtUploadName" ErrorMessage="An Uploaded File with this name already exists. Please enter a different name"
                                Font-Bold="true"></asp:CustomValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <telerik:RadTextBox ID="radtxtDescription" runat="server" Label="Description" LabelWidth="64px"
                                meta:resourcekey="radtxtDescriptionResource1" Width="260px">
                            </telerik:RadTextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <telerik:RadAsyncUpload ID="tlkasycupSingleFileUpload" runat="server" MultipleFileSelection="Disabled"
                                MaxFileInputsCount="1" OnClientFilesUploaded="fnHideProgreesArea" OnClientFileUploadFailed="OnClientFileUploadFailed"
                                OnClientFilesSelected="fnShowProgressAreaAndDisableValidator" OnClientValidationFailed="fnOnValidationFailedFileUpload">
                            </telerik:RadAsyncUpload>
                            <asp:CustomValidator ID="wcvValidUploadFile" runat="server" Display="Dynamic" ValidationGroup="UploadSingleFile"
                                SetFocusOnError="false" ClientValidationFunction="fnCheckUploadFile" ErrorMessage="Please select file to upload it."
                                Font-Bold="true"></asp:CustomValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <telerik:RadButton ID="rbtnUploadSingleFile" runat="server" Text="Upload" OnClick="rbtnUploadSingleFile_Click"
                                ValidationGroup="UploadSingleFile" OnClientClicking="fnEnableCustomeValidator">
                            </telerik:RadButton>
                        </td>
                    </tr>
                </table>
Here is the javascript :
// to fire Ajax Manager to make postback
function fileUploaded(sender, args) {
//        ValidatorEnable(document.getElementById('< %=wcvValidUploadFile.ClientID%>'),false);
//        ValidatorEnable(document.getElementById('< %=wcvIsSingleFileUploadNameExist.ClientID%>'),false);
        var radAjaxManager  =  <%=RadAjaxManagerFileUpload.ClientID%>;
$('[id$=tlkrprogarFileUpload]').hide();//to hide Progress Erea after client complete uploading
radAjaxManager.ajaxRequest();//to fire ajax to make postback
}


    //function to Enable custom Validator with single upload name  
function fnEnableCustomeValidator(sender,eventArgs){
        ValidatorEnable(document.getElementById('<%=wcvValidUploadFile.ClientID%>'),true);
        if (Page_ClientValidate('UploadSingleFile')==false) {
            eventArgs.set_cancel(true);
}
}


    //check if single file upload is selected or not
function fnCheckUploadFile(sender, args) {
var check = true;
var UploadedFile = $find("<%= tlkasycupSingleFileUpload.ClientID %>").getUploadedFiles();
var count=UploadedFile.length;
if(count==0){
check=false
}
args.IsValid = check;
}
Here is the snapshots  : look at the attachment

And here is the ajax manger :

    <telerik:RadAjaxManager ID="RadAjaxManagerFileUpload" runat="server" EnablePageHeadUpdate="False">

        <AjaxSettings>

            <telerik:AjaxSetting AjaxControlID="RadAjaxManagerFileUpload">

                <UpdatedControls>

                    <telerik:AjaxUpdatedControl ControlID="radgSupAcctFileUploads" />

                    <telerik:AjaxUpdatedControl ControlID="tlkasycupMultipleFile" />

                    <telerik:AjaxUpdatedControl ControlID="tlkRadWindowManager" />

                    <telerik:AjaxUpdatedControl ControlID="tlkasycupSingleFileUpload" />

                    <telerik:AjaxUpdatedControl ControlID="radtxtUploadName" />

                    <telerik:AjaxUpdatedControl ControlID="radtxtDescription" />

                </UpdatedControls>

            </telerik:AjaxSetting>

            <telerik:AjaxSetting AjaxControlID="radgSupAcctFileUploads">

                <UpdatedControls>

                    <telerik:AjaxUpdatedControl ControlID="radgSupAcctFileUploads" />

                </UpdatedControls>

            </telerik:AjaxSetting>

            <telerik:AjaxSetting AjaxControlID="rbtnUploadSingleFile">

                <UpdatedControls>

                    <telerik:AjaxUpdatedControl ControlID="radgSupAcctFileUploads" />

                    <telerik:AjaxUpdatedControl ControlID="tlkasycupSingleFileUpload" />

                    <telerik:AjaxUpdatedControl ControlID="tlkRadWindowManager" />

                    <telerik:AjaxUpdatedControl ControlID="radtxtUploadName" />

                    <telerik:AjaxUpdatedControl ControlID="radtxtDescription" />

                </UpdatedControls>

            </telerik:AjaxSetting>

        </AjaxSettings>

    </telerik:RadAjaxManager>

Kindly help me .


Ashraf
Top achievements
Rank 2
 answered on 20 Sep 2012
2 answers
89 views
Hi,
Is there any way we can stop the loop on Rotator? I am using "ButtonOver" Rotator type and I am using left and right control buttons to move. If I have 10 items, after the 10th item I don't want to see 1st item. I would like to stop it after 10th item. May be just disable the right control button.

Can you please help me to achieve this? I searched rotator forums and I couldn't find similar threads.

Thanks for your help.

-Mahesh
Mahesh
Top achievements
Rank 1
 answered on 20 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?