Mar 19, 2012, 5:22 PM
[CLOSED] rowexpander for specific rows
hello guys, am looking for you help to hide expand button from the record have value "ahmed" in its Employee coulmn.
Is it possible !
Is it possible !
<ext:FormPanel ID="fpSubjects" IDMode="Static" runat="server" Title="subjects" Width="500" AutoHeight="true">
<Items>
<ext:Panel ID="pSubjects" IDMode="Static" runat="server" >
<Items>
<ext:TableLayout ID="tl1" IDMode="Static" runat="server" Columns="1">
<Cells>
<ext:Cell>
<ext:GridPanel ID="gpSubjects" IDMode="Static" runat="server" AutoHeight="true" Width="500"
Title="offering" Collapsed="false" Collapsible="true" >
<Store>
<ext:Store ID="Store1" runat="server">
<Reader>
<ext:ArrayReader>
<Fields>
<ext:RecordField Name="employee_ID"></ext:RecordField>
<ext:RecordField Name="employee_firstName"></ext:RecordField>
<ext:RecordField Name="employee_secondName"></ext:RecordField>
</Fields>
</ext:ArrayReader>
</Reader>
</ext:Store>
</Store>
<ColumnModel>
<Columns>
<ext:RowNumbererColumn Header="#"></ext:RowNumbererColumn>
<ext:Column Header="Employee ID" ColumnID="clEmployeeID" DataIndex="employee_ID" Width="60">
</ext:Column>
<ext:Column Header="Employee Name" ColumnID="clEmployeeName" DataIndex="employee_Name" Width="60">
</ext:Column>
</Columns>
</ColumnModel>
<SelectionModel>
<ext:RowSelectionModel ID="RowSelectionModel2" runat="server" SingleSelect="true" />
</SelectionModel>
<Plugins>
<ext:RowExpander ID="RowExpander" runat="server">
<Component>
<ext:FormPanel ID="RowEditorRegistration" runat="server" Padding="6" AutoHeight="true" Width="400"
Border="false" Layout="form" ForceLayout="true" ButtonAlign="Right" Cls="white-footer">
<Items>
<ext:GridPanel ID="gpOfferingElectiveSubjects" IDMode="Static" runat="server" AutoHeight="true" Width="300"
Title="Elective" Collapsed="false" Collapsible="true" >
<Store>
<ext:Store ID="Store2" runat="server">
<Reader>
<ext:ArrayReader>
<Fields>
<ext:RecordField Name="employee_ID"></ext:RecordField>
<ext:RecordField Name="employee_firstName"></ext:RecordField>
<ext:RecordField Name="employee_secondName"></ext:RecordField>
</Fields>
</ext:ArrayReader>
</Reader>
</ext:Store>
</Store>
<ColumnModel>
<Columns>
<ext:RowNumbererColumn Header="#"></ext:RowNumbererColumn>
<ext:Column Header="Employee ID" ColumnID="clEmployeeID" DataIndex="employee_ID" Width="100">
</ext:Column>
<ext:Column Header="Employee Name" ColumnID="clEmployeeName" DataIndex="employee_Name" Width="100">
</ext:Column>
</Columns>
</ColumnModel>
<SelectionModel>
<ext:RowSelectionModel ID="RowSelectionModel6" LazyMode="Instance" runat="server" SingleSelect="true" />
</SelectionModel>
</ext:GridPanel>
</Items>
</ext:FormPanel>
</Component>
<Listeners>
<Expand Handler="Ext.fly(body).swallowEvent(['click', 'mousedown', 'mouseup', 'dblclick'], true);" />
</Listeners>
</ext:RowExpander>
</Plugins>
</ext:GridPanel>
</ext:Cell>
</Cells>
</ext:TableLayout>
</Items>
</ext:Panel>
</Items>
</ext:FormPanel>
Last edited by Daniil; Mar 21, 2012 at 8:26 AM.
Reason: [CLOSED]