Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
225 views
Hi;

You show this  http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx on your website. But I can't find where I can get that to run it on my system.

??? - thanks - dave
David Thielen
Top achievements
Rank 1
 answered on 25 Apr 2013
1 answer
416 views
<script type="text/javascript">
        function pageLoad() {
            $find('<%= RadButtonClickTest.ClientID %>').focus();
        }
 
        function RadButtonClickTest_OnClientClicking(sender, args) {
            args.set_cancel(!confirm("Are you sure cancel?"));
        }
</script>

<div>
        Has fired server side event?: <asp:Label ID="LabelTest" runat="server" Text="No"></asp:Label> 
        <telerik:RadButton ID="RadButtonClickTest" runat="server" Skin="Simple" Text="Cancel" UseSubmitBehavior="false" TabIndex="1" OnClientClicking="RadButtonClickTest_OnClientClicking" OnClick="RadButtonClickTest_Click" />
</div>


We updated telerik version to v2013.1.417 for our site.
And then we got big problems with RadButton.
When I press enter key instead of clicking on a RadButton, there are two problems like below.

1. If I select "OK" at confirm window, it doesn't fire server side event even if AutoPostBack=true.
2. If I select "Cancel" at confirm window, first time, it is work successfully. But if I press enter key on a RadButton again, Client side event does not fire and server side event fire directly.

I don't understand this problem. You can download full test source from below link.
http://www.mediafire.com/?80q15q2hk6surq4
Please refer to it.
Our site have a lot of RadButton. So this problem is so big issue.
What's the problem with RadButton?

Thanks
Hee
Danail Vasilev
Telerik team
 answered on 25 Apr 2013
3 answers
112 views
Hi,
On some pages, my radgrid has textboxes in template columns and in some other pages, we have checkboxes in template columns. Common requirement is upon submit (submit button) is clicked, I need to make sure that atleast 1 textbox or 1 checkbox is checked. So, I am planning to write a common code to be used for all the pages.

I am using this link javascript code to begin with:

For eg:
http://www.telerik.com/community/forums/aspnet-ajax/grid/checkbox-template-column-in-radgrid.aspx

<script type="text/javascript">
    function ClientClick(gridName, templateColumnName) {
        var count = 0;
        var grid = $find(gridName);
        var MasterTable = grid.get_masterTableView();
        for (var i = 0; i < MasterTable.get_dataItems().length; i++) {
            var gridItemElement = MasterTable.get_dataItems()[i].findElement("CheckBox1");
                    // Instead of hard codeing, I need to find what type of control is in template column 
                    // and based on that write code
            if (gridItemElement.checked) {
                count++;
                break;
            }
        }
        if (count == 0) {
            alert("Please check atleast one !");
            return false;
        }
    }
</script>

so something like this:
var inputElement = cell.getelementbytagname('INPUT')
if (inputElement.type) ==  "CheckBox"{}
elseif (inputElement.type == "text"

Summary, I need to find the type of control and then code.

Thanks,
Prathiba
Prathibarani
Top achievements
Rank 1
 answered on 25 Apr 2013
1 answer
158 views
I am using radcalendar control.
Problem is markup validation for HTML5
Radcalendar is generating some attributes like summary, cellspacing, abbr... that are not by standard:
The cellspacing attribute on the table element is obsolete. Use CSS instead
The summary attribute is obsolete. Consider describing the structure of the table in a caption element or in a figure element containing the table; or, simplify the structure of the table so that no description is needed
The abbr attribute on the th element is obsolete. Consider instead beginning the cell contents with concise text, followed by further elaboration if needed.

Is there any possibility not to generate those attributes?
arnaud
Top achievements
Rank 1
 answered on 25 Apr 2013
0 answers
58 views
I am using telerik radmenu from a sitemapdatasource in my application.But the menu items failed to use localizaed name.
if i give the menu something like this in the file names CHRS.en-US  under app_globalresources.
<data name="txt:home" xml:space="preserve">
    <value>home</value>
  </data>
then menus diaplay {txt:home} not simply home.I need the menu display simply home.
any help?
yishagerew
Top achievements
Rank 1
 asked on 25 Apr 2013
3 answers
282 views
Hi Telerik,

I have a radtextbox, a required field validator and a radbutton on a page.

If I try clicking the radbutton with nothing in the textbox, the validator works and stops the page from posting.

If I then enter something in the text box and submit, it works as expected. I then (in codebehind) clear the text box.

Now, with the empty textbox, I click the button again, it actually does a postback and the postback has to handle the validation, which is not correct. The validator is not firing.

I have put a sample code zip file at http://www.revilloc.com/validate-problem.zip showing the issue. I am using telerik version 2013.1.403.40

Thank you.
David.
Marin Bratanov
Telerik team
 answered on 25 Apr 2013
0 answers
53 views
I am using radmenu from a sitemap data source in my application.Everything works fine in using a resoource files from  CHUS.en-US and CHUS.en-fr as my application is bilingual.I assign all controls like {txt:home} in the application interface and
<data name="txt:home" xml:space="preserve">
    <value>Home</value>
  </data>
in the global resource files.
Radmenu items display {txt:home}  than the right one as Home.
Any help?
yishagerew
Top achievements
Rank 1
 asked on 25 Apr 2013
1 answer
238 views
Hi, I have  a RadFileExplorer. I use CustomColumnsContentProvider to load the Treeview but when I use UNC path, base.ResolveRootDirectoryAsTree(path) shows error "Failed to map the path '\\SampleServer\FolderName'"

Here is my Code:

web.config:

<add key="UNCPath" value="\\SampleServer\\FolderName"  />

aspx.cs:

RadFileExplorer1.Configuration.ViewPaths = new string[] { ConfigurationManager.AppSettings["UNCPath"] };


CustomColumnsContentProvider:

 public override DirectoryItem ResolveRootDirectoryAsTree(string path)
 {
     DirectoryItem originalFolder =
base.ResolveRootDirectoryAsTree(path);


Shows error on this part:

     DirectoryItem originalFolder = base.ResolveRootDirectoryAsTree(path);

How can I access UNC in ResolveRootDIrectory?
Vessy
Telerik team
 answered on 25 Apr 2013
3 answers
220 views
Hi,

Is there a way to change the color of a series based on a condition? For eg: I am plotting a line chart with a series with values between 0 and 200.Is there a way to change the color of the series if it goes past 100?

Thanks,
Sri
Petar Kirov
Telerik team
 answered on 25 Apr 2013
3 answers
133 views
We have recently upgraded from version 2008 to 2012 and now it start showing following error: 

Microsoft JScript runtime error: Unable to get value of the property 'ajaxRequestWithTarget': object is null or undefined


it is happening at the following line :
<%= radajaxpanel.ClientID %>.ajaxRequestWithTarget('<%= radajaxpanel.UniqueID %>', eventArgs.get_item().get_value())

Is it because ajaxRequestWithTarget is no longer supported by radAjaxPanel ? Thanks in advance. 


Regards


Maria Ilieva
Telerik team
 answered on 25 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?