or
| If e.Item.OwnerTableView.Name = "DetailTB" Then |
| If e.CommandName = RadGrid.EditCommandName Then |
| RadGrid1.MasterTableView.IsItemInserted = False |
| End If |
| End If |

| Dim rs As SqlDataReader = something |
| Dim dt As New DataTable |
| dt.Load(rs) |
| RadTreeView1.DataSource = dt |
| RadTreeView1.DataTextField = dt.Columns("descriptions").ToString |
| RadTreeView1.DataValueField = dt.Columns("sections").ToString |
| RadTreeView1.DataBind() |
| RadTreeView1.SelectedNode.Value = "somthing" always tells me that object reference is nothing can you tell me why or how do i set it to select the first value in the tree view. also if the first node in treeview is expandable, how do i expand it and then select the first child node in that parent node. thank you |
| RadTreeView1.SelectedNode.Value = "somthing" always tells me that object reference is nothing can you tell me why or how do i set it to select the first value in the tree view. also if the first node in treeview is expandable, how do i expand it and then select the first child node in that parent node. thank you |
| ///***Add ColorSwatch Control |
| case AttributeControlTypeEnum.ColorSwatch: |
| { |
| ///***Define RadColorPicker Attributes |
| RadColorPicker rcpColorSwatch = new RadColorPicker(); |
| rcpColorSwatch.ID = attribute.ProductAttribute.Name; |
| rcpColorSwatch.Preset = ColorPreset.None; |
| rcpColorSwatch.ShowEmptyColor = false; |
| rcpColorSwatch.PreviewColor = false; |
| ///***Add Attribute Collection Values to ColorPickerItemCollection |
| ProductVariantAttributeValueCollection pvaValues = attribute.ProductVariantAttributeValues; |
| foreach (ProductVariantAttributeValue pvaValue in pvaValues) |
| { |
| string pvaValuepvaValueName = pvaValue.Name; |
| decimal priceAdjustmentBase = TaxManager.GetPrice(productVariant, pvaValue.PriceAdjustment); |
| decimal priceAdjustment = CurrencyManager.ConvertCurrency(priceAdjustmentBase, CurrencyManager.PrimaryStoreCurrency, NopContext.Current.WorkingCurrency); |
| if (priceAdjustmentBase > decimal.Zero) |
| pvaValueName += string.Format(" [+{0}]", PriceHelper.FormatPrice(priceAdjustment, false, false)); |
| ColorPickerItem cpiValueItem = new ColorPickerItem((ColorTranslator.FromHtml(pvaValue.ProductVariantAttributeValueID.ToString())), (pvaValueName)); |
| rcpColorSwatch.Items.Add(cpiValueItem); ///Above-This is the ValueId of color. I need this plus the color value |
| } |
| divAttribute.Controls.Add(rcpColorSwatch); |
| } |
| break; |
column.CurrentFilterFunction =
GridKnownFunction.NoFilter;
Then I rebind the grid
The grid then refreshes but all the records are missing. I would have expected the grid to show all records...
So how do I programatically clear the filter in code behind c# and have the grids show all records.
I am just frustrated I missed something and google this time has failed me.
Thanks in advance
Stephen Altemus