重点如下:
1
<AjaxEvents>
2
<Click OnEvent&#61;"PanelTree_Click" >
3
<EventMask ShowMask&#61;"true" Msg&#61;"正在执行,请稍后" />
4
<ExtraParams>
5
<ext:Parameter Name&#61;"Id" Value&#61;"node.id" Mode&#61;"Raw">ext:Parameter>
6
ExtraParams>
7
Click>
8
9
AjaxEvents>

2

3

4

5

6

7

8

9

<ext:Parameter Name&#61;"Id" Value&#61;"node.id" Mode&#61;"Raw">ext:Parameter>
这边value&#61;"node.id"就可以饿了&#xff0c;模式一定要改为Raw
code Behind
1
[AjaxMethod]
2
protected void PanelTree_Click(object sender,AjaxEventArgs e)
3
{
4
string str &#61; e.ExtraParams["Id"];
5
if (string.IsNullOrEmpty(str) || str&#61;&#61;"root")
6
{
7
BuildDataTable();
8
}
9
else
10
{
11
BuildDataTable(int.SafeParse(str));
12
}
13
}

2

3



4

5

6



7

8

9

10



11

12

13
