Jul 06, 2010, 5:00 PM
[CLOSED] View text data in new windows or combobox
Hi,
I have a GridView and I want a column with long text.
I want to load this text only if user click on it. Example, a combobox and when I open it, my LOG text is show. Or, a button in my row and when I click on it, I show a new windows with my LOG text.
This is my actual code:
I have an attachement for show you exemple with windows application.
Thanks.
I have a GridView and I want a column with long text.
I want to load this text only if user click on it. Example, a combobox and when I open it, my LOG text is show. Or, a button in my row and when I click on it, I show a new windows with my LOG text.
This is my actual code:
function approvalStoreLoad() {
transactType = Ext.getCmp('criteriaType').getValue();
dateFrom = Ext.getCmp('criteriaDateFrom').getValue().dateFormat('Y-m-d');
dateTo = Ext.getCmp('criteriaDateTo').getValue().dateFormat('Y-m-d');
enableApplyCancel(false);
if (Ext.getCmp('gridPanelEmployee').getSelectionModel().getSelected() != null) {
var conn = new Ext.data.Connection();
conn.request({
url: '<%= Url.Action("GetApprovalLevel", "Approval") %>',
method: 'GET',
params: { employeeId: Ext.getCmp('gridPanelEmployee').getSelectionModel().getSelected().get('Id') },
success: function(responseObject) {
approvalLevel = Ext.decode(responseObject.responseText);
}
});
}
}
<ext:store id="approvalStore" runat="server" autoload="false" groupfield="Date">
<Reader>
<ext:JsonReader Root="data" IDProperty="Quantity">
<Fields>
<ext:RecordField Name="Date" Type="Date" />
<ext:RecordField Name="ProjectName" />
<ext:RecordField Name="ApprovalLevel" Type="String" />
<ext:RecordField Name="ApproverName" />
<ext:RecordField Name="ApprovalDate" Type="Date" />
<ext:RecordField Name="IsApproved" />
<ext:RecordField Name="Quantity" Type="Float" />
<ext:RecordField Name="ApproverName" />
<ext:RecordField Name="ClientName" />
<ext:RecordField Name="Description" />
<ext:RecordField Name="PayCode" />
<ext:RecordField Name="IsBillable" />
<ext:RecordField Name="LOG" />
</Fields>
</ext:JsonReader>
</Reader>
<Listeners>
<Load Handler="approvalStoreLoad()" />
</Listeners>
<BaseParams>
<ext:Parameter Name="employeeId" Value="selectedEmployee()" Mode="Raw" />
<ext:Parameter Name="startDate" Value="criteriaDateFrom.getValue()" Mode="Raw" />
<ext:Parameter Name="endDate" Value="criteriaDateTo.getValue()" Mode="Raw" />
<ext:Parameter Name="approvalType" Value="criteriaType.getValue()" Mode="Raw" />
</BaseParams>
</ext:store>
<ext:GridPanel ID="gridPanelApproval" Border="false" runat="server" StoreID="approvalStore">
<ColumnModel>
<Columns>
<ext:Column DataIndex="fieldLOG" Header="LOG" ColumnID="fieldLOG" Width="240">
Do you have an idea for me?I have an attachement for show you exemple with windows application.
Thanks.
Last edited by geoffrey.mcgill; Jul 15, 2010 at 10:20 PM.