71457

ext.net how can i use more than data_index on a same Column

Question:

i have the following :

<ext:RecordField Name="ID" /> <ext:RecordField Name="UserName" /> <ext:RecordField Name="FirstName" /> <ext:RecordField Name="LasttName" /> i want use FirstName& LasttName on : <ext:Column ColumnID="Name" Sortable="false" DataIndex="????" Resizable="false" MenuDisabled="true"/>

<strong>What i need is to use more than data_index on a same Column</strong> is that possible, how can i achieve that? thanks in advance!

Answer1:

Try something like this:

//In your head: <script type="text/javascript"> var myRenderer = function(value, metadata, record) { return record.get('FirstName') + ' ' + record.get('LastName'); } </script> <ext:Column ColumnID="Name" Sortable="false" Resizable="false" MenuDisabled="true"> <Renderer Fn="myRenderer" /> </ext:Column>

Recommend

  • how to count the matched keywords using select in mysql codeigniter php?
  • Javascript Keyup Search for Div Values
  • Manually insert an item into a ListView control
  • PageSize not working on Grid in ExtJS
  • Ordering list with jQuery drag and drop
  • How to show complete column as editable in extjs grid(cell editing)?
  • Ext JS, change grid column configs default values globally
  • Setting UIToolbar background image with iOS5.1
  • jQueryUI dialog replacement for confirm?
  • Jquery resizable reposition handle after scroll
  • apply a javascript function to draggable copy
  • how do i write assembly code from c#?
  • How to get latest version of a artifact on Bintray using JSONP
  • Combining two different ActiveRecord collections into one
  • bad substitution shell- trying to use variable as name of array
  • wxPython: displaying multiple widgets in same frame
  • Stop Bash Script if Hive Fails
  • C: Incompatible pointer type initializing
  • Groovy: Unexpected token “:”
  • Replace value with Factor in r data.table
  • Google Custom Search with transparent background
  • How to access EntityManager inside Entity class in EJB3
  • Repeat a vertical line on every page in Report Builder / SSRS
  • Why value captured by reference in lambda is broken? [duplicate]
  • Obtain ObjectIdHex value from mgo query
  • Volusion's generic SQL folder, functionality
  • How to set/get protobuf's extension field in Go?
  • JSON with duplicate key names losing information when parsed
  • Can I have the cursor start on a particular column by default in jqgrid's edit mode?
  • Rearranging Cells in UITableView Bug & Saving Changes
  • Circular dependency while pushing http interceptor
  • Linker errors when using intrinsic function via function pointer
  • FormattedException instead of throw new Exception(string.Format(…)) in .NET
  • Bitwise OR returns boolean when one of operands is nil
  • sending mail using smtp is too slow
  • Busy indicator not showing up in wpf window [duplicate]
  • costura.fody for a dll that references another dll
  • Why is Django giving me: 'first_name' is an invalid keyword argument for this function?
  • Binding checkboxes to object values in AngularJs
  • How can I use `wmic` in a Windows PE script?