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
}
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"
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
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
;}
}
...
<
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
>
...
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
tooltipManager.TargetControls.Add(ibAddToSelection.ClientID, value, true);