Bonjour à tous,
Je cherche à mettre un trigger asynchrone sur deux toolbars (composant telerik) qui sont elle même dans deux autre composants telerik (RadDock).
Mais quand je met le trigger, il ne trouve pas les controls.
voici le code :
Lorsque la page est compilé, les id des toolbars changent. J'ai essayé de mettre ces id mais les controls ne sont pas détectés non plus.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99 <telerik:RadDockLayout ID="RadDockLayout1" runat="server"> <div class="main"> <table border="1" cellpadding="1" cellspacing="1"> <tr> <td> </td> <td> <telerik:RadToolBar runat="server" ID="tbValidation" Skin="Office2007"> <Items> <telerik:RadToolBarButton ImageUrl="Images/submit.gif" ToolTip="OK" CommandName="ok" /> <telerik:RadToolBarButton ImageUrl="Images/close.gif" ToolTip="Annuler" CommandName="cancel" /> </Items> </telerik:RadToolBar> </td> </tr> <tr> <td colspan="2"> <div style="position:relative;"> <div style="position:absolute; z-index:1;"> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <cc1:Map ID="Map1" runat="server" Height="600px" Width="800px"> </cc1:Map> </ContentTemplate> <Triggers> <asp:AsyncPostBackTrigger ControlID="tbInfo" /> <asp:AsyncPostBackTrigger ControlID="tbEdition" /> </Triggers> </asp:UpdatePanel> </div> <div id="toolbar" style="position:absolute; left:75px; z-index:2; filter:Alpha(opacity=20); opacity: .20;" onmouseover="javascript:this.style.filter = 'Alpha(opacity=100)'; this.style.opacity = '1';" onmouseout="javascript:this.style.filter = 'Alpha(opacity=20)'; this.style.opacity = '.20';"> <telerik:RadDockZone ID="dockTop" runat="server" CssClass="zone" Height="65px" Orientation="Horizontal" Width="425px"> </telerik:RadDockZone> </div> </div> </td> </tr> <tr> <td colspan="2"> <asp:Button ID="buttonEditShape" runat="server" Text="edit" ToolTip="Edit Shape" OnClick="buttonEditShape_Click" /> </td> </tr> </table> </div> <telerik:RadDock Left="450" Top="150" ID="RadDock1" runat="server" Height="63px" width="201px" OnClientDockPositionChanged="dockInfo" CssClass="dock" DefaultCommands="ExpandCollapse" Title="Information" Skin="Office2007" style="z-index:10;"> <ContentTemplate> <telerik:RadToolBar runat="server" ID="tbInfo" Skin="Office2007" OnButtonClick="test" OnClientButtonClicked="click_handler"> <Items> <telerik:RadToolBarButton ImageUrl="Images/select.png" CheckOnClick="true" AllowSelfUnCheck="true" ToolTip="Selection" CommandName="select" /> <telerik:RadToolBarButton ImageUrl="Images/overview_replacement.gif" CheckOnClick="true" AllowSelfUnCheck="true" ToolTip="Zoom sur selection" CommandName="zoom" /> <telerik:RadToolBarButton ImageUrl="Images/measuring_stick_on.gif" CheckOnClick="true" AllowSelfUnCheck="true" ToolTip="Mesure de distance" CommandName="measure" /> <telerik:RadToolBarButton ImageUrl="Images/surfaceMeasurement.png" CheckOnClick="true" AllowSelfUnCheck="true" ToolTip="Mesure de surface" CommandName="surfaceMeasure" /> <telerik:RadToolBarButton ImageUrl="Images/btn_map_label.gif" CheckOnClick="true" AllowSelfUnCheck="true" ToolTip="Informations" CommandName="info" /> </Items> </telerik:RadToolBar> </ContentTemplate> </telerik:RadDock> <telerik:RadDock Left="500" Top="250" ID="RadDock2" runat="server" Height="63px" width="201px" OnClientDockPositionChanged="dockEdit" CssClass="dock" DefaultCommands="ExpandCollapse" Title="Edition" Skin="Office2007" style="z-index:10;"> <ContentTemplate> <telerik:RadToolBar runat="server" ID="tbEdition" Skin="Office2007" OnButtonClick="test" OnClientButtonClicked="click_handler"> <Items> <telerik:RadToolBarButton ImageUrl="Images/btn_map_edit.gif" CheckOnClick="true" AllowSelfUnCheck="true" ToolTip="Tracer un nouvel objet" CommandName="draw" /> <telerik:RadToolBarButton ImageUrl="Images/modifynode.png" CheckOnClick="true" AllowSelfUnCheck="true" ToolTip="Sommets" CommandName="node" /> <telerik:RadToolBarButton ImageUrl="Images/Delete.gif" CheckOnClick="true" AllowSelfUnCheck="true" ToolTip="Suppression" CommandName="del" /> <telerik:RadToolBarButton ImageUrl="Images/cut.png" CheckOnClick="true" AllowSelfUnCheck="true" ToolTip="Découper" CommandName="cut" /> <telerik:RadToolBarButton ImageUrl="Images/fusionner.png" CheckOnClick="true" AllowSelfUnCheck="true" ToolTip="Fusionner" CommandName="fuze" /> </Items> </telerik:RadToolBar> </ContentTemplate> </telerik:RadDock> </telerik:RadDockLayout>
Est-ce que quelqu'un aurait déjà rencontrer ce genre de problème ?
Merci d'avance.
Partager