Jan 22, 2010, 4:43 PM
[0.8.1] Renderer bug
Hi,
I have been reading on the net, and I see that ExtJs has a delay field por the renderer, and we dont get it on coolite.
What's going on is when I select my rows on client side, I cant get the first row selected since the grid is still rendering.
You need to use 40+ rows.
Any help would be appreciated.
Thanks,
I have been reading on the net, and I see that ExtJs has a delay field por the renderer, and we dont get it on coolite.
What's going on is when I select my rows on client side, I cant get the first row selected since the grid is still rendering.
You need to use 40+ rows.
Any help would be appreciated.
Thanks,
var renderVeiculo = function (value, metadata, record, rowIndex, colIndex, store){
if (record.data.RVR_IND_DECISAO == 0) {
<%= GridPanelVeiculo.ClientID %>.getSelectionModel().selectRow(rowIndex);
}
return value;
}
<ext:Store ID="StoreVeiculo" runat="server">
<Reader>
<ext:JsonReader ReaderID="NURENAVAM">
<Fields>
<ext:RecordField Name="NURENAVAM" />
<ext:RecordField Name="DSPLACAVEICULO" />
<ext:RecordField Name="DSMARCAMODELO" />
<ext:RecordField Name="DSANOFRABRICACAO" />
<ext:RecordField Name="RVR_RTB_NUM_BENEFICIO" />
<ext:RecordField Name="RVR_IND_DECISAO" />
<%--Se está selecionado--%>
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
<ext:GridPanel AutoHeight="true" AutoExpandColumn="dsMarcaModelo" ID="GridPanelVeiculo"
runat="server" StoreID="StoreVeiculo" StripeRows="true">
<ColumnModel runat="server">
<Columns>
<ext:Column Header="Renavam" Sortable="true" DataIndex="NURENAVAM">
</ext:Column>
<ext:Column Header="Placa" Sortable="true" DataIndex="DSPLACAVEICULO" />
<ext:Column ColumnID="dsMarcaModelo" Header="Modelo" Sortable="true" DataIndex="DSMARCAMODELO" />
<ext:Column Header="Ano fabricação" Sortable="true" DataIndex="DSANOFRABRICACAO">
<Renderer Fn="renderVeiculo" />
</ext:Column>
</Columns>
</ColumnModel>
<SelectionModel>
<ext:CheckboxSelectionModel ID="SelectionModelVeiculo" runat="server" />
</SelectionModel>
<BottomBar>
<ext:PagingToolbar runat="server" PageSize="10" />
</BottomBar>
</ext:GridPanel>