Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
70 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
159 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
103 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
3 answers
103 views
I have a scheduler app that's been working well for over a year until I upgraded to 2012.1.411. I'm getting the error below when I try to load the page. The scheduler works in my development environment, but not on the production server. So I think this is environmental, but I can't figure out what is causing the error. I've tried the approach in the article "Using ResourcePopulationMode=ServerSide and authentication", but that hasn't solved the problem.

A critical error has occurred. An error occurred while requesting resources from the web service. Server responded with: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd"> <HTML><HEAD><TITLE>Not Found</TITLE> <META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD> <BODY><h2>Not Found</h2> <hr><p>HTTP Error 404. The requested resource is not found.</p> </BODY></HTML>

The scheduler I built is rather complex so I build a page with the the wcf demo applicaiton, http://demos.telerik.com/aspnet-ajax/scheduler/examples/wcf/defaultcs.aspx and I get the same error message.

If I set ResourcePopulationMode to "Manual" or "ClientSide" the scheduler can make all the calls to the service except the "GetResources" call.

I'm pretty sure this is environmental, but I can't figure out what it is. If someone can point me in the right direction I'd appreciate it.

Thanks.

Boyan Dimitrov
Telerik team
 answered on 20 Sep 2012
0 answers
109 views
Hi buddy,

Is it possible to have progressbar column in the radgrid, like in torrent, which shows the percentage and time taken.
Any help will be appreciated.

Thanks in advance,
Nirmal Kumar B
Nirmal
Top achievements
Rank 1
 asked on 20 Sep 2012
7 answers
257 views
Hey at Telerik

I have tried with css to fix width of a radpanelitem when text contains whitespaces.
I have tried with no-wrap with no luck.

I have in cluded three screenshots that illustrates the problem.

The RadPanelBar item looks fine in IE, but styling is all messed up under Firefox and Chrome.

Sincerly

Jan
Kate
Telerik team
 answered on 20 Sep 2012
0 answers
54 views
Here is the below code, which i used. 

private string GetNextWrongWord() {
//SpellChecker spell = new SpellChecker(Server.MapPath("~/App_Data/RadSpell"));
spellCheck.Text = Session["Spell"].ToString();
if(ddlLanguage.SelectedValue.ToString() == "1") {
spellCheck.DictionaryLanguage = "en-US";
} else if(ddlLanguage.SelectedValue.ToString() == "2") {
spellCheck.DictionaryLanguage = "fr-FR";
} else if(ddlLanguage.SelectedValue.ToString() == "3") {
spellCheck.DictionaryLanguage = "de-DE";
} else if(ddlLanguage.SelectedValue.ToString() == "4") {
spellCheck.DictionaryLanguage = "es-ES";
} else if(ddlLanguage.SelectedValue.ToString() == "5") {
spellCheck.DictionaryLanguage = "en-AU";
} else {
spellCheck.DictionaryLanguage = "en-GB";
}
string sWrongWord = "";
spellCheck.CheckText();
if(Flagignore == 2) {
int k = 0;
SpellCheckErrors errors = spellCheck.Errors;
foreach(SpellCheckError error in errors) {
sWrongWord = error.MistakenWord.ToString();
try {
if(sWrongWord == strIgnoreAllWords[k].ToString()) {
sWrongWord = "";
} else {
bool a = Array.Exists(strIgnoreAllWords, element => element == sWrongWord);
if(a == true) {
sWrongWord = "";
} else {
return sWrongWord;
}
}
} catch(Exception) {
break;
}
k++;
}
} else {
int k = 0;
SpellCheckErrors errors = spellCheck.Errors;
foreach(SpellCheckError error in errors) {
sWrongWord = error.MistakenWord.ToString();
try {
strIgnoreNewWords = Session["IgnoreWord"].ToString().Split(',');
if(strIgnoreNewWords != null) {
bool a = Array.Exists(strIgnoreNewWords, element => element == sWrongWord);
if(a == true) {
sWrongWord = "";
} else {
return sWrongWord;
}
} else {
if(sWrongWord == strIgnoreWords[k].ToString()) {
sWrongWord = "";
} else {
break;
}
}
} catch(Exception) {
break;
}
k++;
}
}


return sWrongWord;
}

So please help me.
Venky
Top achievements
Rank 2
 asked on 20 Sep 2012
8 answers
518 views
how to find out the version of telerik rad editor which we are using in the project, through code ?
Venky
Top achievements
Rank 2
 answered on 20 Sep 2012
4 answers
137 views
Hello,

I have telerik grid on my web page , which get created dynamically.
i have vertical scrollbar for th same , which is working fine on Internet Explorer but that is not working on Chrome and Mozilla.

ANy solution?

i have added some part of my code below. Not all but some part.

objGridView.ClientSettings.Scrolling.FrozenColumnsCount = 1;
  
objGridView.ClientSettings.Scrolling.AllowScroll =  true
   
objGridView.ClientSettings.Scrolling.UseStaticHeaders = true
   
objGridView.ClientSettings.Scrolling.SaveScrollPosition =  true;
  
Panel objPanel = ((Panel)this.Parent.FindControl("MasterPlaceHolder").FindControl("ucModel1").FindControl("pnlModel"));
  
objPanel.Controls.Clear();
  
objPanel.Controls.Add(objGridView);
Vargis
Top achievements
Rank 1
 answered on 20 Sep 2012
3 answers
111 views

Hi,

I have a user control that is loaded dynamically from another page using a placeholder. I want to show a modal RadDock (defined in the .ascx page) when the user clicks a button that is contained in the user control. I have tried with the modal extender and the RadDock is showed, but all the page and the user control gets disabled including the RadDock itself (this not happens if I show a modal RadDock from a single .aspx page without user controls).

Is it possible to use modal RadDock from a user control, without the RadDock getting disabled after showing?
Slav
Telerik team
 answered on 20 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?