Telerik Forums
UI for WPF Forum
1 answer
32 views
In order to filter my child grid
I try to do the folowing
but now the OnChildGridLoaded
happens few times and I get the child grid few times

 private void OnChildGridLoaded(object sender, RoutedEventArgs e)  
        {  
                try  
                {  
                    if (((ComboBoxValues.ComboValues)cmbActivityType.SelectedValue).Id != 0)  
                    {  
                        dsAcoount.Tables["Budget"].DefaultView.RowFilter = "ActivityTypeID=" + ((ComboBoxValues.ComboValues)cmbActivityType.SelectedValue).Id;  
                        ((RadGridView)sender).ItemsSource = null;  
                        ((RadGridView)sender).ItemsSource = dsAcoount.Tables["Budget"].DefaultView;  
                    }  
Thanks!
Orit
Orit
Top achievements
Rank 1
 answered on 09 Sep 2009
3 answers
131 views
From line 1148 in RadDragAndDropManager.cs in the source  of 08/13

if (el.VisualHit != null && (el.VisualHit as UIElement).IsHitTestVisible)


System.Windows.Media.DrawingVisual doesn't inherit from UIElement, so the as returns null and we get an exception.

Allan Elder
Top achievements
Rank 1
 answered on 08 Sep 2009
1 answer
116 views
Hello,

I have a very simple question: I want to select multiple cells in the GridView, but I can't find the option to do it, and the SelectionMode property is not available. So far all it does is select the whole row, where I want to be able to select only a cell.
Any clue?

Thanks in advance.
Vlad
Telerik team
 answered on 08 Sep 2009
2 answers
228 views
Guys,

I honestly tried your WPF controls, and I must say, the overall impression is not good.

With my first project, I found:
1) The RadGridView control has a bug where items added to bound collections do not display correctly. Component One's grid works.
2) The Toolbox gets some huge amount of classes added to it that are not even controls. Not productive to scroll through a giant list, and I should NOT have to go registry hacking to fix this.
3) Scheduler has no resource support, so I'm told to wait until the next release. Telerik's is easier to work with than C1, but lacks this key feature.

This is the same experience I had last time with Telerik's controls. Bugs!

So I've about 7 days left in evaluation to decide where to spend my $$ and I cannot figure out why I should pay over $1k when all I have used so far with success is the DatePicker. I'd love to buy Telerik, because the documentation is better than the competition, and there are a lot of sample projects, but I get the feeling that the kit isn't well tested, and I cannot afford to make the wrong choice since this app will ship to my customers and become something I must support and base my business off of.
Kaloyan
Telerik team
 answered on 08 Sep 2009
0 answers
114 views
I arranged my "things to do"
and now I need tow things
1. have the ability to filter the child rows
2.  have the ability to filter the items in the ComboBoxColumn of the child grid

I think to do it in the OnChildGridLoaded
when I get to it the value in the ((RadGridView)sender).ItemsSource
is {System.Linq.Enumerable.WhereEnumerableIterator<System.Data.DataRow>}

how can I filter it? or is there another way to filter


 

private void BindDataMainGrid()  
        {  
            try  
            {  
                thisthis.gvAccount.ItemsSource = this.GetData();              
            }  
            catch{}  
        }  
 
        private DataSet GetData()  
        {  
            try  
            {  
                dsb = ServiceData.GetBudgetsByOBS(iOBSID);  
                if (dsb != null)  
                {  
                    dsb.Tables["Budget"].Columns.Add("SumBudgetAllocation", typeof(float));  
                    dsb.Tables["Budget"].Columns.Add("SumBudgetRequest", typeof(float));  
                    dsb.Tables["Budget"].Columns.Add("SumOrderAllocation", typeof(float));  
                    dsb.Tables["Budget"].Columns.Add("SumOrderPaid", typeof(float));  
                   
                    foreach (DataRow dr in dsb.Tables["Budget"].Rows)  
                    {  
                        dr["RowStatus"] = 0;  
                        if (dsb.Tables["BudgetAllocation"].Select("id=" + Convert.ToInt32(dr["ID"])).GetLength(0) > 0)  
                        {  
                            dr["SumBudgetAllocation"] = Convert.ToDecimal(((LM_Model.dsBudget.BudgetAllocationRow)dsb.Tables["BudgetAllocation"].Select("id=" + Convert.ToInt32(dr["ID"]))[0]).ItemArray[1]);  
                        }  
                        if (dsb.Tables["BudgetRequest"].Select("BudgetId=" + Convert.ToInt32(dr["ID"])).GetLength(0) > 0)  
                        {  
                            dr["SumBudgetRequest"] = Convert.ToDecimal(((LM_Model.dsBudget.BudgetRequestRow)dsb.Tables["BudgetRequest"].Select("BudgetId=" + Convert.ToInt32(dr["ID"]))[0]).ItemArray[1]);  
                        }  
                        if (dsb.Tables["BudgetOrder"].Select("BudgetId=" + Convert.ToInt32(dr["ID"])).GetLength(0) > 0)  
                        {  
                            dr["SumOrderAllocation"] = Convert.ToDecimal(((LM_Model.dsBudget.BudgetOrderRow)dsb.Tables["BudgetOrder"].Select("BudgetId=" + Convert.ToInt32(dr["ID"]))[0]).ItemArray[1]);  
                        }  
                        if (dsb.Tables["BudgetOrderPaid"].Select("Id=" + Convert.ToInt32(dr["ID"])).GetLength(0) > 0)  
                        {  
                            dr["SumOrderPaid"] = Convert.ToDecimal(((LM_Model.dsBudget.BudgetOrderPaidRow)dsb.Tables["BudgetOrderPaid"].Select("Id=" + Convert.ToInt32(dr["ID"]))[0]).ItemArray[1]);  
                        }  
                    }  
                     
                    dsb.Tables["Budget"].Columns.Add("BalanceBudgetAllocation", typeof(float), "TotalBudget-SumBudgetAllocation");  
                    dsb.Tables["Budget"].Columns.Add("BalanceToPay", typeof(float), "SumBudgetRequest-SumOrderPaid");  
                      
                    //Build dsAcoount  
                    dsAcoount = new DataSet();  
                    DataView dv = new DataView(dsb.Tables["Budget"], "Type=1", "", DataViewRowState.CurrentRows);  
                    dsAcoount.Tables.Add((DataTable)dv.ToTable("Account"));  
                    dv = new DataView(dsb.Tables["Budget"], "Type=2", "", DataViewRowState.CurrentRows);  
                    dsAcoount.Tables.Add((DataTable)dv.ToTable("Budget"));  
                    dv = new DataView(dsb.Tables["Budget"], "Type=3", "", DataViewRowState.CurrentRows);  
                    dsAcoount.Tables.Add((DataTable)dv.ToTable("SubBudget"));  
                                    
                    LM_Model.clsEnums.BudgetType eVal = clsEnums.BudgetType.Investment;  
                    decimal dCurrentInvestment = Convert.ToDecimal(dsAcoount.Tables["Account"].Compute("SUM(TotalBudget)", "BudgetType=" + Convert.ToInt32(eVal)));  
                    txtbInvestmentSum.Text = dCurrentInvestment.ToString("#,##0.00");  
                    eVal = clsEnums.BudgetType.Continuous;  
                    decimal dCurrentContinues = Convert.ToDecimal(dsAcoount.Tables["Account"].Compute("SUM(TotalBudget)", "BudgetType=" + Convert.ToInt32(eVal)));  
                    txtbContinuesSum.Text = dCurrentContinues.ToString("#,##0.00");  
 
                    decimal dInvestmentBaseline = Convert.ToDecimal(dsb.Tables["BaselineBudget"].Rows[0]["InvestmentBaseline"]);  
                    decimal dContinuesBaseline = Convert.ToDecimal(dsb.Tables["BaselineBudget"].Rows[0]["ContinuesBaseline"]);  
 
                    decimal dI = (dCurrentInvestment / dInvestmentBaseline - 1) * 100;  
                    decimal dC = (dCurrentContinues / dContinuesBaseline - 1) * 100;  
 
                    txtInv.Text = dI.ToString("#.00");  
                    txtCon.Text = dC.ToString("#.00");  
 
                    DateTime dDate = (DateTime)dsb.Tables["BaselineBudget"].Rows[0]["Date"];  
                    txtBLDate.Text = dDate.ToString("dd/MM/yyyy");  
 
                    //Add Relations  
                    dsAcoount.Relations.Add("BudgetRelation",  
                    dsAcoount.Tables["Account"].Columns["Number"],  
                    dsAcoount.Tables["Budget"].Columns["ParentID"]);  
                      
                    dsAcoount.Relations.Add("SubBudgetRelation",  
                    dsAcoount.Tables["Budget"].Columns["Number"],  
                    dsAcoount.Tables["SubBudget"].Columns["ParentID"]);  
                      
                    return dsAcoount;  
                }  
            }  
            catch { }  
            return null;  
        }  
 
Orit
Top achievements
Rank 1
 asked on 08 Sep 2009
2 answers
71 views
In my OnChildGridLoaded
I need to do two things
1. filter the data of the child grid
2. filter the items in the ComboBoxColumn

right now I try to do only the second thing
the following happens:
I fill the ComboBoxColumn
((GridViewComboBoxColumn)((RadGridView)sender).Columns["ActivityTypeID"]).ItemsSource = ComboBoxValues.GetComboValues(dtActivityType.Select("ID < 2000"));  
 
the comboBox is filled with the correct values
but when I select value in the comboBox
I fly
the error is 
Unable to cast object of type 'System.Data.DataRow' to type 'System.Data.DataRowView
Orit
Top achievements
Rank 1
 answered on 08 Sep 2009
1 answer
150 views
Hello,

I have too many tabs and they are being shrunk so my close button in the tab header is not visible. Additionaly there is no scroll buttons.

I want the tabs to always have the same size and to be able to scroll to next one. Is this possible ?
Valentin.Stoychev
Telerik team
 answered on 08 Sep 2009
3 answers
128 views

We are using the Radtreeview  control in our Query Builder application to show  the Tables and Fields from the Dtabase . The user can drag and drop the fields in to Selection list (select clause - listbox) and Condition list (where clause - listbox).  When i drag and drop  the field in to Selection list or Condition list, the selected treeview item(field) removed from the RadTreeView. I want to use the same field in both the lists.  

How to achive that in RadTreeview?

 
Thanks,

Miroslav
Telerik team
 answered on 07 Sep 2009
3 answers
67 views
Hello,

I am using the simple theme.

Is there any way by code to localize the contents of the popup that appears
when pressing on the filtering icon found on a grid header column ?

Thanks,

Erez
Pavel Pavlov
Telerik team
 answered on 07 Sep 2009
4 answers
134 views
Hi,
We swithed to the most recent version a couple of days ago because we wanted to use the radtoolbar and now our gridview do not display new item that we insert into our collections. We're using CSLA and prior to upgrading everything was ok.

-Terry
Nedyalko Nikolov
Telerik team
 answered on 07 Sep 2009
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?