Hi, hab Ihr vll ne Idee voran dass liegt dass wenn ich mein gridview in nem Updatepanel habe, updatemode = conditional.. sobal ich au einen Imagebutton klicke verschwinden alle ImageButtons..
so sieht es normaler weise aus
sobalb ich auf eine Aktion klicke verschwinden miene Icons und funktionieren nicht mehr...
So sieht mein Code aus
so sieht es normaler weise aus
sobalb ich auf eine Aktion klicke verschwinden miene Icons und funktionieren nicht mehr...
So sieht mein Code aus
Code:
<form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <div> <br /> <br /> <br /> <br /> <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"> <ContentTemplate> <asp:Button ID="btnAdd" runat="server" Text="Add SkillGroup" CommandName="Insert" BorderColor="Silver" Font-Bold="True" Font-Italic="True" Font-Overline="False" ForeColor="#FF9900" ToolTip="Neue SkillGroup erzeugen" OnClick="btnAdd_Click" /> <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" CellPadding="6" AllowSorting="True" DataKeyNames="ID,Rank,ActiveStatus" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" BackColor="#FF6600" BorderColor="Black" Font-Bold="True" Font-Size="Medium" Font-Strikeout="False" OnRowCommand="GridView1_RowCommand" CellSpacing="3" Font-Names="Verdana" ForeColor="#666666"> <FooterStyle BackColor="#FF8000" Font-Bold="True" ForeColor="White" /> <Columns> <asp:BoundField DataField="ID" Visible="false" ReadOnly="false" /> <asp:BoundField DataField="SkillGroupName" HeaderText="SkillGroup" Visible="true" /> <asp:TemplateField HeaderText="Sort"> <ItemTemplate> <asp:ImageButton ID="SortButtonUp" runat="Server" ImageUrl="~/templates/Images/Hoch.JPG" CausesValidation="false" CommandName="Up" CommandArgument='<%# Container.DataItemIndex %>' Visible="True" ToolTip="Hoch" /> <asp:ImageButton ID="SortButtonDown" runat="Server" ImageUrl="~/templates/Images/Runter.JPG" CausesValidation="false" CommandName="Down" CommandArgument='<%# Container.DataItemIndex %>' Visible="True" ToolTip="Runter" /> </ItemTemplate> </asp:TemplateField> <asp:CommandField HeaderText="Edit" ButtonType="Image" EditImageUrl="~/templates/Images/Add_new.JPG" ShowEditButton="True" EditText="Aktualisieren" /> <asp:TemplateField HeaderText="Add"> <ItemTemplate> <asp:ImageButton ID="AddNewButton" runat="Server" ImageUrl="~/templates/Images/addnew.JPG" CausesValidation="false" CommandName="AddNewGroup" ToolTip="Neue Gruppe hinzufügen" CommandArgument='<%# Container.DataItemIndex %>' Visible="True" /> </ItemTemplate> </asp:TemplateField> <asp:BoundField DataField="ActiveStatus" Visible="false" ReadOnly="false" /> <asp:TemplateField HeaderText="View"> <ItemTemplate> <asp:CheckBox ID="DbStatus" OnCheckedChanged="ActiveStatus_CheckedChanged" AutoPostBack="true" runat="server" ToolTip="Anzeige in der Matrix" /> </ItemTemplate> </asp:TemplateField> </Columns> <RowStyle BackColor="#E2E2E2" Font-Bold="False" ForeColor="Black" /> <EditRowStyle BackColor="#FF9933" /> <SelectedRowStyle BackColor="#A9A9A9" Font-Bold="True" ForeColor="#333333" /> <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" /> <HeaderStyle BackColor="#FF8000" Font-Bold="True" ForeColor="White" Wrap="True" HorizontalAlign="Left" /> <AlternatingRowStyle BackColor="White" Font-Bold="False" ForeColor="Black" /> </asp:GridView> </ContentTemplate> </asp:UpdatePanel> </div> </form>
Comment