or
<
telerik:RadTreeView
ID
=
"tvNodes"
runat
=
"server"
EnableDragAndDrop
=
"false"
ExpandAnimation-Type
=
"OutExpo"
ExpandAnimation-Duration
=
"800"
EnableDragAndDropBetweenNodes
=
"false"
CollapseAnimation-Type
=
"OutElastic"
CollapseAnimation-Duration
=
"800"
Skin
=
"Windows7"
OnNodeDrop
=
"tvNodes_HandleDrop"
ClientNodePopulating
=
"nodePopulating"
>
<
ContextMenus
>
<
telerik:RadTreeViewContextMenu
ID
=
"NodesTreeMenu"
runat
=
"server"
CssClass
=
"MenuGroup"
Skin
=
"Windows7"
>
<
CollapseAnimation
Type
=
"none"
/>
</
telerik:RadTreeViewContextMenu
>
</
ContextMenus
>
<
WebServiceSettings
Path
=
"../ManageNode.asmx"
Method
=
"GetNodes"
>
</
WebServiceSettings
>
</
telerik:RadTreeView
>
function
nodePopulating(sender, eventArgs) {
var
node = eventArgs.get_node();
var
context = eventArgs.get_context();
SelectedType =
'1'
//selected node id.
SearchText =
''
context[
"ParentID"
] = node.get_value();
context[
"AllowDragAndDrop"
] = allowDragDrop;
context[
"SelectedType"
] = SelectedType;
context[
"SearchText"
] = SearchText;
}
[WebMethod]
public
RadTreeNodeData[] GetNodes(RadTreeNodeData node,
object
context)
{
IDictionary<
string
,
object
> contextDictionary = (IDictionary<
string
,
object
>)context;
List<RadTreeNodeData> nodes =
new
List<RadTreeNodeData>();
int
parentID = Convert.ToInt32(contextDictionary[
"ParentID"
]);
bool
AllowDragAndDrop = Convert.ToBoolean(contextDictionary[
"AllowDragAndDrop"
]);
int
selectedType = Convert.ToInt32(contextDictionary[
"SelectedType"
]);
string
SearchText = Convert.ToString(contextDictionary[
"SearchText"
]);
dsNodes = NodeBLL.GetAllRecordsByNodeDefinition(selectedType, parentID, SearchText.Trim());
for
(
int
rowCount = 0; rowCount < dsNodes.Tables[0].Rows.Count; rowCount++)
{
DataRow childRow = dsNodes.Tables[0].Rows[rowCount];
RadTreeNodeData childNode =
new
RadTreeNodeData();
if
(Convert.ToInt16(childRow[
"StatusID"
]) == Convert.ToInt16(Common.NodeStatus.Archieve))
{
childNode.Text = Common.DecodeXML(Convert.ToString(childRow[
"Name"
])) + Common.deleteFlag;
}
else
{
childNode.Text = Common.DecodeXML(Convert.ToString(childRow[
"Name"
]));
}
childNode.Value = Convert.ToString(childRow[
"ID"
]);
childNode.Attributes.Add(Common.virtualIDAtt, Convert.ToString(childRow[
"virtualID"
]));
childNode.Attributes.Add(Common.isVirtualExist, Convert.ToString(childRow[
"isVirtualExist"
]));
childNode.Attributes.Add(Common.NodeDefinitionID, Convert.ToString(childRow[
"NodeDefinitionID"
]));
childNode.Attributes.Add(Common.ParentNodeID, Convert.ToString(childRow[
"ParentID"
]));
childNode.Attributes.Add(Common.Position, Convert.ToString(childRow[
"Position"
]));
childNode.Attributes.Add(Common.NodeDefinition, Convert.ToString(childRow[
"NodeDefinition"
]));
childNode.ExpandMode = (Convert.ToInt32(childRow[
"ischildexists"
]) > 0) ? TreeNodeExpandMode.WebService : TreeNodeExpandMode.ClientSide;
nodes.Add(childNode);
}
return
nodes.ToArray();
}
Hi
BinaryImage doesn't resize after change ImageUrl image instead previous BinaryImage or image with ImageUrl when ResizeMode="Fit"
Please fix this.
<
telerik:RadPageView
ID
=
"rpvAssignProcess"
runat
=
"server"
>
<
table
cellpadding
=
"0"
cellspacing
=
"0"
>
<
tr
>
<
td
>Available Process</
td
>
<
td
>Assign Process</
td
>
</
tr
>
<
tr
>
<
td
>
<
telerik:RadListBox
ID
=
"rlboxAvailableProcess"
runat
=
"server"
AllowTransfer
=
"True"
DataSourceID
=
"SqlDataSource_Process"
DataTextField
=
"ProcessName"
Skin
=
"WebBlue"
TransferToID
=
"rlboxAssignProcess"
Height
=
"200px"
Width
=
"300px"
DataValueField
=
"ProcessName"
>
<
ButtonSettings
TransferButtons
=
"All"
/>
<
ItemTemplate
>
<
div
>
<
span
style
=
"float:left;padding:10px"
>
<%# DataBinder.Eval(Container.DataItem, "CustomerID")%>
<
br
/>
<%# DataBinder.Eval(Container.DataItem, "ProcessName")%>
</
span
>
</
div
>
</
ItemTemplate
>
<
WebServiceSettings
>
<
ODataSettings
InitialContainerName
=
""
>
</
ODataSettings
>
</
WebServiceSettings
>
</
telerik:RadListBox
>
</
td
>
<
td
>
<
telerik:RadListBox
ID
=
"rlboxAssignProcess"
runat
=
"server"
AllowDelete
=
"false"
AllowReorder
=
"true"
Skin
=
"WebBlue"
Height
=
"200px"
Width
=
"300px"
DataSourceID
=
"SqlDataSource_Process1"
DataTextField
=
"ProcessName"
DataValueField
=
"ProcessName"
>
<
ButtonSettings
Position
=
"Right"
VerticalAlign
=
"Top"
/>
</
telerik:RadListBox
>
</
td
>
</
tr
>
</
table
>
</
telerik:RadPageView
>
Protected
Sub
RadTabStrip1_TabClick(sender
As
Object
, e
As
Telerik.Web.UI.RadTabStripEventArgs)
Handles
RadTabStrip1.TabClick
If
RadTabStrip1.SelectedIndex = 4
Then
Try
Dim
CustomerID
As
String
=
""
For
Each
item
As
GridDataItem
In
rgView1.MasterTableView.Items
If
item.Selected =
True
Then
If
CustomerID =
""
Then
CustomerID = item.Item(
"CustomerID"
).Text
Else
CustomerID +=
"','"
+ item.Item(
"CustomerID"
).Text
End
If
End
If
Next
SqlDataSource_Process.SelectCommand =
"SELECT CustomerID,ProcessName FROM tbl_Process where CustomerID IN ('"
& CustomerID &
"')"
rlboxAvailableProcess.DataBind()
Catch
ex
As
Exception
End
Try
End
If
End
Sub
<
telerik:RadAutoCompleteBox
runat
=
"server"
ID
=
"people"
AllowCustomToken
=
"true"
InputType
=
"Token"
DataSourceID
=
"dsPeople"
DataTextField
=
"Name"
DataValueField
=
"ID"
>
</
telerik:RadAutoCompleteBox
>