Jump to content
Software FX Community

vaioklm

Members
  • Posts

    13
  • Joined

  • Last visited

vaioklm's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. The DataBinding Event. That is where I am adding all of my columns to the Grid.
  2. It didn't seem to make a difference. If I moved the entire block of code to the Init, the column didn't show on the grid. When I left the Columns.Add in the Databinding Event and moved the rest to the Init, it rendered ok, but still behaved the same on callbacks or postbacks.
  3. I create a template column with the following code: Dim tcTemplateColumn As New GridFX.WebForms.TemplateColumntcTemplateColumn.Title = "Template Test"Dim itTest As New itTestTemplatetcTemplateColumn.ItemTemplate = itTestColumns.Add(tcTemplateColumn) The template is very basic. It does nothing more than create a literal containing the word "Test". The grid will initially render fine and I see my template column as expected. However, if I attempt to Sort, Group, Hide a Column, etc... (essentially anything that causes a callback), the Grid goes out to lunch and I eventually get a window asking if I'd like to continue waiting. If something causes the entire page to postback, I get the following error: [ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.Parameter name: index] System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) +62 System.ThrowHelper.ThrowArgumentOutOfRangeException() +12 System.Collections.Generic.List`1.get_Item(Int32 index) +2583412 cq.c() +101 cq.e() +167 cq.r() +24 cq.a(Grid A_0) +34 GridFX.WebForms.TemplateColumn.e() +88 GridFX.WebForms.GridColumn.a(Grid A_0) +34 GridFX.WebForms.GridColumnCollection.b(GridColumn A_0) +96 GridFX.WebForms.GridColumnCollection.d(GridColumn A_0) +31 GridFX.WebForms.ObservableList`1.Add(T item) +164 GridFX.WebForms.GridColumnCollection.b(lq A_0) +201 GridFX.WebForms.Grid.b(lq A_0) +87 GridFX.WebForms.Grid.c(Object A_0) +115 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +251 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +142 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +300 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +142 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +300 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +142 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +300 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +142 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +300 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +142 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +300 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +142 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +300 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +142 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +300 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +142 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +300 System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +142 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +300 System.Web.UI.Page.LoadAllState() +520 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3444
  4. I create a lookup field using the following code: Dim luSysNo As GridFX.WebForms.LookupFieldluSysNo = New GridFX.WebForms.LookupFieldluSysNo.DataPath = "cll_sys_no"luSysNo.ReadOnly = FalseluSysNo.MissingValueText = "Missing"Dim liItem As New GridFX.WebForms.LookupItemliItem.Text = "Test"liItem.Value = "0"luSysNo.LookupItems.Add(liItem)DataFields.Add(CType(luSysNo, GridFX.WebForms.DataField))Dim fcSysNo As GridFX.WebForms.FieldColumnfcSysNo = New GridFX.WebForms.FieldColumn(CType(luSysNo, GridFX.WebForms.DataField))fcSysNo.Title = ""fcSysNo.Visible = TruefcSysNo.Style.Wrap = FalseColumns.Add(fcSysNo) The grid renders fine and I see my "Test" and "Missing" values as I would expect. But as soon as I put it into edit mode, I get the following error: There was a problem while processing your request. The specific error message was: Exception type: System.NullReferenceExceptionMessage: Object reference not set to an instance of an object.Stack Trace: at GridFX.WebForms.LookupField.n() at GridFX.WebForms.LookupField.p() at GridFX.WebForms.LookupField.q() at GridFX.WebForms.LookupField.a(ListItemCollection A_0, LookupFieldInputSettings A_1) at GridFX.WebForms.LookupField.a(IFieldControl A_0, Object A_1) at GridFX.WebForms.DataField.i(IFieldControl A_0) at dc.b() at l3.k() at System.Web.UI.Control.EnsureChildControls() at l3.c(EventArgs A_0) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.AddAt(Int32 index, Control child) at GridFX.WebForms.OutputCellContainer.b.a(Int32 A_0, OutputCell A_1) at GridFX.WebForms.OutputCellContainer.a(Object A_0, ListChangeEventArgs`1 A_1) at GridFX.WebForms.GridItem.a(Object A_0, ListChangeEventArgs`1 A_1) at GridFX.WebForms.ObservableList`1.a(ListChangeEventArgs`1 A_0) at GridFX.WebForms.ObservableList`1.Add(T item) at is.d() at GridFX.WebForms.GridItem.t() at GridFX.WebForms.GridItem.set_Editing(Boolean value) at GridFX.WebForms.GridCommands.g(CellContainerCommandArgs`1 A_0) at GridFX.WebForms.Command`1.b(TArgs A_0) at GridFX.WebForms.Command`1.a(CommandArgs A_0) at GridFX.WebForms.Grid.a(String A_0, pb A_1) at GridFX.WebForms.Grid.i(String A_0) If I remove the lookup field, the grid will go into edit mode without error.
  5. When creating a lookup field that will display as a drop down list during updates, is there a way to filter the items displayed in the drop down based on the value of another column in that row?
×
×
  • Create New...