Telerik Forums
UI for WPF Forum
2 answers
127 views
Hi
I have a simple parent/child relationship between some tables in my OpenAccess model. I retrieve all the rows in the parent table and display them in a WPF RadGRidView. I now want to display the children within each parent something like this:
Parent1
... Child 11
... Child 12
... Child 13
Parent2
... Child 21
... Child 22
etc.

I notice at runtime the navigation property collection has no members even though in the database there are children.
How can the navigation property collection be populated and would the RadGridView automatically present them in the layout described above?

Thanks
Craig


Craig
Top achievements
Rank 1
 answered on 27 Mar 2013
2 answers
219 views
If I am in edit mode and try to select the text with my mouse it thinks I am dragging that row. I tried to disable this with this code but it had no effect.

                <Style TargetType="telerik:GridViewCell" >
                    <Style.Triggers>
                        <Trigger Property="IsInEditMode" Value="True">
                            <Setter Property="telerik:DragDropManager.AllowCapturedDrag" Value="False"></Setter>
                        </Trigger>
                    </Style.Triggers>
                </Style>

I then added code to OnDragInitialize in my DragDropBehavior attached behavior that returns if the current cell is in edit mode. It does stop the drag from happening but it also interferes with the user from selecting the string. It stops after the first character and changes the cursor to an arrow.

        private void OnDragInitialize(object sender, DragInitializeEventArgs e)<br>        {<br><div><span style="font-size: 11px; line-height: 1.4;">            var radGridClientObject = sender as RadGridView;</span><br></div>            if (radGridClientObject != null)<br>            {<br>                if (radGridClientObject.CurrentCell.IsInEditMode)<br>                {<br>                    return;<br>                }<br>            }<br><div></div>

How can I disable drag/drop when in edit mode?
Thanks, Valerie

Valerie
Top achievements
Rank 1
 answered on 27 Mar 2013
1 answer
147 views
Hi
See following line of code in bold that is commented out.  I get the following compile error:
"Cannot await Telerik.OpenAccess.Metadata.MetadataContainer"
If I use "await Task.Delay(2000);"  as show below it works great.  However I can't rely on a fixed amount of time.  Is there any problem awaiting OpenAccess methods or am I doing something wrong?

Thanks
Rich

        public async Task<MetadataContainer> GetSchema(RadBusyIndicator BusyIndicator, ConnectionInfo connInfo, 
            bool TablesAndViews, bool StoredProcedures, bool Indexes)
        {
            ISchemaReader reader = GetSchemaReader(connInfo);
            String[] schemas = reader.GetSchemas();
            SchemaReadParameters readParameters = new SchemaReadParameters(schemas);
            readParameters.Indexes = Indexes;
            readParameters.StoredProcedures = StoredProcedures;
            readParameters.TablesAndViews = TablesAndViews;
            BusyIndicator.IsBusy = true;
            //MetadataContainer metadataContainer = await reader.GetSchema(readParameters); 
            MetadataContainer metadataContainer = reader.GetSchema(readParameters);   
            await Task.Delay(2000);
            BusyIndicator.IsBusy = false;
            return metadataContainer;
        }



Ivo
Telerik team
 answered on 27 Mar 2013
3 answers
171 views
Hi,
When I am using a custom column and am scrolling in the treelistview the data seems to move around.
In the screenshot the data that is zero should not be zero. but there are columns that are zero. If I scroll around allot all columns will end up having the same number.

I am using version: 2013.1.311.40

here is my custom column code

public override FrameworkElement CreateCellElement(GridViewCell cell, object dataItem)
        {
            Grid cellGrid = cell.Content as Grid;
             
            TextBlock primaryText = new TextBlock(){ TextAlignment = System.Windows.TextAlignment.Right };
            TextBlock compareText = new TextBlock() { TextAlignment = System.Windows.TextAlignment.Right, Foreground = new SolidColorBrush(Color.FromRgb(100, 100, 100))};
 
            if (string.IsNullOrEmpty(this.DataMemberBinding.StringFormat))
            {
                this.ComparedPlanBinding.StringFormat = this.DataFormatString;
                this.DataMemberBinding.StringFormat   = this.DataFormatString;
            }
             
            primaryText.SetBinding(TextBlock.TextProperty, this.DataMemberBinding);
            compareText.SetBinding(TextBlock.TextProperty, ComparedPlanBinding);
 
            if (cellGrid == null)
            {
                cellGrid = new Grid();
                cellGrid.ColumnDefinitions.Add(new ColumnDefinition());
                cellGrid.ColumnDefinitions.Add(new ColumnDefinition() { Width = new GridLength(20)});
                cellGrid.ColumnDefinitions.Add(new ColumnDefinition());
                cellGrid.RowDefinitions.Add(new RowDefinition());
 
                cellGrid.Children.Add(primaryText);
                Grid.SetColumn(primaryText, 0);
                Grid.SetRow(primaryText, 0);
 
                cellGrid.Children.Add(compareText);
                Grid.SetColumn(compareText, 2);
                Grid.SetRow(compareText, 0);
            }
            return cellGrid;
        }

This only a problem when I scroll. Can you please advice.

Best regards
Kristján
Dimitrina
Telerik team
 answered on 27 Mar 2013
1 answer
144 views
Hi,

I have a chart that is updated with live values. The chart's axis always shows a minutes worth of data and a slider controls what part of the axis we are looking at. The chart also supports a track ball feature when moused over. The problem with this is that the track ball info is only updated on mouse movement. The chart however is always changing, so if there is no mouse movement and the cursor is left over the graph, then the track ball information will never be updated. 
I currently have a "bad" solution where I update the mouse position to move a pixel from current location. This works, but isn't very appealing. Is there a way to update the trackball a different way?

Thanks
Petar Marchev
Telerik team
 answered on 27 Mar 2013
5 answers
101 views
Hello 

in http://www.telerik.com/help/wpf/radchartview-populating-with-data-chartdatasource.html is this sample 

public class MyDataSource : ChartDataSource
{
    public MyDataSource()
        : base()
    {
        this.ValueAggregateFunction = new SumFunction();
    }
}


We used that with version 2012.3.1017.40 and it work fine for us. 
Now we tried to upgrad to version 2012.3.1129.40 and is doesnt work. The property "ValueAggregateFunction" is not available
Missing User
 answered on 27 Mar 2013
1 answer
117 views
Hi,

I'm using PivotGrid since beta version.
Now, we have the final version. Thank you.

But, I have a few questions:
- Documentation is poor. It's like in beta version. Other controls, like GridView, have a great documentation;
- How can I translate (localize) RadPivotFieldList?
- How can I make RowGroups begins collapsed?
- How can I make alternate colors in CollumnGroups?

PS.: These features was promissed in beta.

Regards, Getulio.
Rosen Vladimirov
Telerik team
 answered on 27 Mar 2013
2 answers
142 views
I want to use the RadGridView as a simple file explorer style display. To that end I have two columns, the first containing an icon and the second containing the filename.

While I don't mind the entire row highlighting on selection, I wish to configure the RagGridView so that it is always the second column that receives focus on selection change, this way when the user presses F2 the filename cell will enter edit mode. However I haven't found a way to do this yet. Setting the CurrentColumn on SectionChanged is having no effect.

Any suggestions please?
Maya
Telerik team
 answered on 27 Mar 2013
0 answers
91 views
Hi All,

I have a grid and I build some columns up at runtime based on dictionary in each data item that the grid binds to. I need to be able to edit the cell values for each of these columns on Row Data bind, so I am looking for an event like the "RowItemDataBound", but I see there is no such event, I have tried other events but I can't seem to find a way to set the cell values for each row.

How would I go about doing this?
Andrew
Top achievements
Rank 1
 asked on 27 Mar 2013
2 answers
117 views
Hi.. I use Telerik Wpf package(Q1 2013), and I use line chart to have two line series...
but, I  below problem... (please open attached file..)
What can i do...??
KANG
Top achievements
Rank 1
 answered on 27 Mar 2013
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
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
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
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?