<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Untitled Page</title>
<style>
p {
text-indent: -2.0em;
}
div{
padding:3.0em;
}
</style>
</head>
<body>
<div>
<p>
"On the contrary," said Holmes, quietly, "I have every reason
to believe that I will succeed in discovering Mr. Hosmer Angel."
</p>
<p>
Mr. Windibank gave a violent start, and dropped his gloves.
"I am delighted to hear it," he said.
</p>
<p>
"It is a curious thing," remarked Holmes, "that a typewriter
has really quite as much individuality as a man's handwriting.
Unless they are quite new no two of them write exactly alike.
Some letters get more worn than others, and some wear only on
one side. Now, you remark in this note of yours, Mr. Windibank,
that in every case there is some little slurring over the e, and
a slight defect in the tail of the r. There are fourteen other
characteristics, but those are the more obvious."
</p>
</div>
</body>
</html>
I will need to apply the text-indent: -2.0em; and padding:3.0em; style to particular elements but i'm not sure what ones.
Cheers
Aaron
=
"Sunset"
. Our RadGrid page buttons are somehow split in the middle what makes them too wide and strange looking:<
telerik:RadGrid
ID
=
"RadGridApplicationLogs"
runat
=
"server"
AllowFilteringByColumn
=
"True"
AllowPaging
=
"True"
AllowSorting
=
"True"
GridLines
=
"None"
DataSourceID
=
"ObjectDataSourceApplicationLogs"
ShowGroupPanel
=
"False"
Skin
=
"Sunset"
>
<
MasterTableView
AutoGenerateColumns
=
"False"
DataKeyNames
=
"ApplicationLogID"
CommandItemDisplay
=
"Bottom"
>
<
Columns
>
...
</
Columns
>
</
MasterTableView
>
<
ClientSettings
AllowDragToGroup
=
"False"
EnablePostBackOnRowClick
=
"true"
>
<
Scrolling
AllowScroll
=
"True"
UseStaticHeaders
=
"True"
ScrollHeight
=
"300px"
/>
<
Selecting
AllowRowSelect
=
"True"
/>
<
Resizing
AllowRowResize
=
"False"
EnableRealTimeResize
=
"False"
ResizeGridOnColumnResize
=
"True"
AllowColumnResize
=
"True"
></
Resizing
>
</
ClientSettings
>
</
telerik:RadGrid
>
I have a treeview
1.
<
telerik:RadTreeView
ID
=
"RadTreeViewCombo"
runat
=
"server"
DataFieldID
=
"IdGroup"
DataFieldParentID
=
"IdParentGroup"
2.
DataTextField
=
"Name"
DataValueField
=
"IdGroup"
OnDataBound
=
"RadTreeViewCombo_DataBound"
3.
DataSourceID
=
"edsCosts"
CheckBoxes
=
"True"
CheckChildNodes
=
"True"
>
4.
<
DataBindings
>
5.
<
telerik:RadTreeNodeBinding
Depth
=
"0"
Expanded
=
"false"
/>
6.
</
DataBindings
>
7.
</
telerik:RadTreeView
>
The problem is when a check node then filter by name (filter do only visible = false to unwanted nodes)
then from result nodes I check some nodes after submiting (press button) the property CheckedNodes.Count=0 ?!?!?
If I do only filtering and then checking of result nodes or only checking without filtering there is no problem.
Search algorithm:
01.
protected
void
btnSearch_Click(
object
sender, ImageClickEventArgs e)
02.
{
03.
SearchByName(RadTreeViewCombo.Nodes);
04.
RadTreeViewCombo.ExpandAllNodes();
05.
}
06.
07.
private
void
SearchByName(RadTreeNodeCollection radTreeNodeCollection)
08.
{
09.
foreach
(RadTreeNode node
in
radTreeNodeCollection)
10.
{ RecursiveSearhInNodes(node); }
11.
12.
}
13.
14.
private
void
RecursiveSearhInNodes(RadTreeNode node)
15.
{
16.
if
(!node.Text.ToLower().Contains(txtSearch.Text.Trim().ToLower()))
17.
{ node.Visible =
false
; }
18.
else
19.
{ GoToParent(node.ParentNode); node.Visible =
true
; }
20.
21.
foreach
(RadTreeNode childNodes
in
node.Nodes)
22.
{ RecursiveSearhInNodes(childNodes); }
23.
}
24.
25.
private
void
GoToParent(RadTreeNode parentNode)
26.
{
27.
if
(parentNode !=
null
)
28.
{
29.
if
(parentNode.ParentNode !=
null
)
30.
GoToParent(parentNode.ParentNode);
31.
32.
parentNode.Visible =
true
;
33.
}
34.
}