When user types in non-numeric input into filter cell, exception is thrown. Expected behavior would be that grid just ignores such a value.
When I binded such datatable to GridView it freezed during expand tree node. I also test it with RadTreeView and it works fine.
Sub-Properties binding - nullable support, initialization order
Problem: When adding a new row using the RadGridView control, when the row is actually added to the control (after the initial editing in the new row area), two rows actually appear and they both appear to be bound to the same object. The attached example is in vb, but I believe I did the same thing in c#. Also, I believe the same occurs whether you are using .NET 3.5 or .NET 4. This is not a problem using a standard datagridview. It exists with RadGridView. As such, I thought the problem was limited to RadGridView and not OpenAccess, but I am not really sure which is the culprit. My sample uses the Cars table copied from the SofiaCarRental example. I have used the older Reverse Mapped style OA project. I have seen this behavior since 2010.Q3, but not sure when it really started.
When the form loads, the rows visible area have the expander, but when scrolling down the list or resizing the form to show the hidden rows, the expander is not shown.
I have noticed some strange behaviour when adding and editing records in a hierarchical radGridview. I have attached a Visual Studio Sample solutions to help illustrate this issue. Follow these steps to recreate the issue: 1.Run the attached sample solution. Form1 will load with a radGridview containing hierarchical data. 2. Expand the region record to show it's child records. 3. Click on "Click here to add new row" directly underneath the Field_Value column and enter any value. 4. Try and click on the Operator column on the same row to add a value. You will notice that nothing happens. 5. Expand the Sub_Region record to show it's child records. 6. Click on "Click here to add new row" directly underneath the Operator column and enter any value. 7. Try and click on the Field_Value column on the same row to add a value. You will notice that nothing happens. I have noticed that this behaviour happens not only when you are adding a new row, but in existing rows as well. If you move around between records after expanding the nodes this issue happens allot (but not always). If you try a few different scenarios by collapsing and expanding the nodes and adding or editing records in different orders you should be able to reproduce the error allot. If you use the TAB key then it does not seem to be an issue, only when you are trying to click into the adjacent column on the same row. It does not seem like correct behaviour. Is this a bug or am I doing something wrong? Please let me know if there is a way to correct this behaviour?
if you group by diffrent columns - change a grouping - delete a grouping - add another one - you'll see that pretty soon the count goes off.
I have create a model Entity with two table on sql 2008 . Order and detailorder ( one to many related) In detailorder Class in have create a custom property public readonly property Amount as decimal get return qta * price end get end property In order Class in have create a custom property public property TotalAmount as decimal get M_TotalAmount end get set (value as decimal) M_TotalAmount =value end set end property in the orderdetail class i have added the code private sub onqtaChaged me.Order.RicalculateTotalAmount end sub in the Order class I have added private sub RicalculateTotalAmount Dim total as decimal=0 for each orderdetail in me.orderdetails total =total + orderdetail.Amount net end sub Well. I have put inside the form a Bindingsource component (Bindingsource1) and i set a datasource of the OrderEntity then I have put inside the form a Bindingsource component (Bindingsource2) and i set a datasource of the Orderdetails Entity of OrderEntity I have put into form some control of Order in binding on Bindingsource1 Then i put a radgridview ad the datasource property set to Bindingsource2 Ok now i run the project Now i enter in the cell Qta of radgridview and i change the current value. With mouse i change focus on the another textbox out the Gridview Radgridview Crash!! I olso try to : After run project Now i enter in the cell Qta of radgridview and i change the current value. With mouse i change focus on the another textbox inside the same datagridrow then i change focus inside the another radtextbox out of radgridview the radgridview work fine.
Relation is defined in DataSet bound to RadGridView control
related to fitering functionality of RadGridView control Comment: Refreshing the master template of RadGridView in the CellEndEdit event handler is not allowed from the current architecture of the control. Use radGridView1.TableElement.Update(GridUINotifyAction.DataChanged) instead.
Makes RadGridView to be thread safe by using from BackgroundWorker
Workaround: the MasterTemplate has Copy method, which allows overriding in its descendants. Thus, it is possible to modify the copied data according to the specific requirements: public class CustomGrid : RadGridView { protected override RadGridViewElement CreateGridViewElement() { return new CustomRadGridViewElement(); } public override string ThemeClassName { get { return typeof(RadGridView).FullName; } } } public class CustomRadGridViewElement : RadGridViewElement { protected override MasterGridViewTemplate CreateTemplate() { return new CustomMasterGridViewTemplate(); } protected override Type ThemeEffectiveType { get { return typeof(RadGridViewElement); } } } public class CustomMasterGridViewTemplate : MasterGridViewTemplate { public override void Copy() { base.Copy(); if (Clipboard.ContainsData(DataFormats.Text)) { string data = Clipboard.GetData(DataFormats.Text).ToString(); if (data != string.Empty) { StringBuilder sb = new StringBuilder(data); //modify the copied data and replace it in the clipboard Clipboard.SetData(DataFormats.Text, sb.ToString()); } } } }
To reproduce: Add a RadGridView with a GridViewComboBoxColumn and add 70000 items as datasource. You will notice that openning it is slow. Workaround: Use the following custom editor: public class MyEditor : RadDropDownListEditor { protected override RadElement CreateEditorElement() { return new MyEditorElement() { SyncSelectionWithText = false }; } } public class MyEditorElement : RadDropDownListEditorElement { public override void NotifyOwner(PopupEditorNotificationData notificationData) { if (notificationData.notificationContext == PopupEditorNotificationData.Context.TextChanged && !this.SyncSelectionWithText) { return; } base.NotifyOwner(notificationData); } }
If SqlDataReader object has been used for loading data in RadGridView, column expressions does not work.
To reproduce: add a RadGridView and bind it to the Northwind.Products data table. Use the following code: private void Form1_Load(object sender, EventArgs e) { this.productsTableAdapter.Fill(this.nwindDataSet.Products); RadMessageBox.Show(string.Format("TOTAL2 = {0}", NewExpression())); } public string NewExpression() { this.radGridView1.Columns.Add(new GridViewDecimalColumn("TOTAL1") { Expression = "ReorderLevel + UnitsOnOrder" }); this.radGridView1.Columns.Add(new GridViewDecimalColumn("TOTAL2") { Expression = "TOTAL1 + UnitPrice" }); //uncomment to get the value of "TOTAL2" // var total1 = this.radGridView1.Rows[2].Cells["TOTAL1"].Value; var total2 = this.radGridView1.Rows[2].Cells["TOTAL2"].Value; return total2.ToString(); } It is not possible to access the column value ("TOTAL2") before firstly to access the column "TOTAL1" value.
To reproduce: - Add grid with enabled paging and filtering to a blank form. - Select the second page and apply a filter.
IMPROVE. RadGridView - add the current selection and the new selection to the SelectionChanging event.
Provide calculation of the 'Ceiling' function in a column expression: column.Expression = "Ceiling(ColumnName)";
Replacing the RadTextBoxItem with RadTextBoxElement in the RadGridView editor will provide richer theming capabilities.
The HeaderText of the RadGridView column should be set to the caption of the DataTable column Caption when it is provided.