Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
117 views
Hi,

We are using Telerik control of version 2009.2.701.35.

In our application we have requirement as when the user performs any ajax postback operation till the operation is completed the user should not be able to perform another operation (like clicking another button in the page) and so the screen should be like readonly.

We have a master page which is common for all pages in the application. Currently In the master page on Ajax OnResponseStart event we get the form tag and make it disabled and OnResponseEnd event we get the form tag and make it enabled.

In this scenario UI shows the whole screen as disabled on request start but the user is able to perform any operation.

Please let us know if there is any option to implement this functionality using RadAjax controls.

Thanks
Tsvetina
Telerik team
 answered on 21 Mar 2012
8 answers
101 views
Hi,

I am adding 300 nodes to a treeview using the client side API.
And get this notorious message from Internet Explorer: 

A script on this page is causing your web browser to run slowly.
If it continues to run, your computer might become
unresponsive.


I even tried using bulkUpdateWith, but it didn't help and I still get the same message.
Is there anything that can be done about it?

I am using version 2011.3.1305.35

Here is my AddNode function :

function AddNode(nodesColl, member, memberIdx, members) {
    var node = new Telerik.Web.UI.RadTreeNode()
 
    node.set_value(member.Id)
    node.set_text(member.Tx)
 
    if (IsMemberHasChildMembers(memberIdx, member, members)) {
        node.set_expandMode(Telerik.Web.UI.TreeNodeExpandMode.ServerSideCallBack)
    }
    else {
        node.set_expandMode(Telerik.Web.UI.TreeNodeExpandMode.ClientSide)
    }
 
    if (member.Sl) {
        node.check()
    }
 
    node.get_attributes().setAttribute("MemberIdx", memberIdx)
 
    nodesColl.add(node)
}
 
function IsMemberHasChildMembers(memberIdx, member, members) {
    if (members.length == memberIdx + 1) {
        return false
    }
 
    var nextMember = members[memberIdx + 1]
    var hasChildren = nextMember.Lv > member.Lv
 
    return hasChildren
}


Thanks,
Michael
Bozhidar
Telerik team
 answered on 21 Mar 2012
3 answers
112 views

My apologies for posting this bug here. I tried posting it in the PITS, but it got lost somewhere. So posting it here once again.
-------------------------------------------------------------------------------------------------------------
With the following settings for RadNumericTextBox,

<telerik:RadNumericTextBox ID="RadInputNum1" runat="server" NumberFormat-DecimalSeparator="," NumberFormat-GroupSeparator="."/>

 

if i decide to enter the numbers using the number keys on the right-hand side of my keyboard (not the keys above the Qwerty keys), i face some problem.
 

Say, by mistake I press dot (.) (with the intention to add decimal). Ofcourse, the control does not allow me to enter that dot (.) because decimalseparator is set as comma (,). 

The problem occurs, when i continue to press the comma (with the intention to add decimal) after pressing the dot (.) and i enter digits after the decimal.

In this case, first problem is that i see two commas in edit mode (since i pressed dot and then comma).

Second problem is, that the value gets modified when i navigate out of the control.

E.g. I press:

123456 then a dot {from right hand side number keys} (.) then a comma (,) and finally 78

In this case, i get the display as "123.456,00"

Ideally it should display "123.456,78"

Tarun
Top achievements
Rank 1
 answered on 21 Mar 2012
15 answers
295 views
Hi
      I am using radgrid which is having the functionality of custom inline edit template, i used form template to define controls as well.
But i am facing problem in clientside function calling. I used to call my own customized JS function.

My simplified JS function:
function myFunValidation()  
{  
alert("hai check");  
return true;  
}  
 

My aspx code:

<EditFormSettings EditFormType="Template">  
<FormTemplate> 
     <asp:Button ID="btnUpdate" Text="Update" runat="server" CommandName="Update" OnClientClick="return myFunValidation()"/>  
 

 

My Issue is i am not able to postback the page, even if the suppse all data's in the page is valid. I used a simple validation in my above code,but is not working fine and no Postback occures.It seemed as a dead call.

It would be great, if i know how can achieve the above scenario.

-Thanks
 

Radoslav
Telerik team
 answered on 21 Mar 2012
4 answers
161 views
Hi,

I have a problem when trying to sorting on a column with a complex object without any value.

My code looks basically as follow:
public class Product{
 
  public int Id {get;set;}
  public string Name {get;set;}
 
  public Statistics Stats {get;set;}
}
 
public class Statistics {
  public int Downloads {get;set;}
}

The grid:

...
 <telerik:GridBoundColumn UniqueName="Id" DataType="System.Int32" DataField="Id" HeaderText="Id">
 </telerik:GridBoundColumn>
 <telerik:GridBoundColumn UniqueName="Name" DataType="System.String" DataField="Name" HeaderText="Name">
 </telerik:GridBoundColumn>
 <telerik:GridBoundColumn UniqueName="Downloads" DataType="System.Int32" DataField="Stats.Downloads" HeaderText="Downloads" DataFormatString="{0:n0}">
 </telerik:GridBoundColumn>
...

When I bind multiple records, some of them have the Stats property null, it's bind correctly. The records without stats are kept blanc for the Downloads column.

However, when I try to sort on the Downloads column, I get a NullReferenceException.

Any idea how to solve this?

Thanks
Danny
Danny
Top achievements
Rank 1
 answered on 21 Mar 2012
1 answer
58 views
Hi,

                                         I am selecting my rows in keypress but on pressing down arrow my scroll bar moves faster than rowselection.How to make it move along with rowselection.Is this possible on setting keyboardnavigation to true.

                                         I have to show a window while pressing enter key on the row, but on setting keyboardnaviagation an edit form automatically comes while pressing enter key.

Help me
Thnx in advance.
Antonio Stoilkov
Telerik team
 answered on 21 Mar 2012
1 answer
97 views
I am currently developing Silverlight apps but I am concerned that this is an eventual dead end.  If possible please provide answers to the following questions and any other information you feel is important. 

1.  If I want to develop windows 8 metro apps and Windows Phone apps  will kendo ui web support it.

2.  Does kendo ui web work with Windows 7 client? 

3.  If kendo ui web works with Windows 7 how limited are touch gesters compared to Windows 8 Metro:

4. Please explain difference between Kendo UI web and mobile apps.

5. Will a kendo web app developed for windows 7 work on a ipad?

Thanks
Rich
Georgi Tunev
Telerik team
 answered on 21 Mar 2012
1 answer
66 views
i'm trying to add a RadFilter to filter my RadGrid which has several coulmns.it works fine. now i need to add a dropdown only for a one column filter.i have a column named  Revision in my RadGrid.i'm trying the following but it doesn't work

   <telerik:RadFilter runat="server" ID="RadFilter1" 
                FilterContainerID="gridSearchL3" ShowApplyButton="true" Height="100px" >
                <FieldEditors>
                <custom:RadFilterDropDownEditor DataValueField="Revision" DataTextField="Revision" DataType="System.String" FieldName="Revision" />
       
                </FieldEditors>
                </telerik:RadFilter>

i'm getting the error " Object reference not set to an instance of an object"
for creating custom dropdown i've used following class

http://www.telerik.com/help/aspnet-ajax/filter-custom-editors.html  
Tsvetina
Telerik team
 answered on 21 Mar 2012
8 answers
646 views
Hello,
When I export radGrid  to excel file I got a table with different text-align styles in each row. !!!!!
I'm trying set style: 

radGrid1.MasterTableView.Style[

"text-align"] = "left";
but this don't solve my problem. This style for a table and not for a table cells.
how can I set cells styles?

Thanks a lot

 

Laura
Top achievements
Rank 1
 answered on 21 Mar 2012
4 answers
108 views
Hello,

I have a problem adding a TargetControl to my radToolTipManager on the client side. We are currently doing this in the code behind where it works like this.

tooltipManager.TargetControls.Add(ibAddToSelection.ClientID, value, true);

But now id like to do this on the clientside.

PS: This is not the same problem as the pinned "Changing TargetControl on the client". Since i also need to set the value.
Guido S
Top achievements
Rank 1
 answered on 21 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?