Telerik Forums
UI for WPF Forum
1 answer
170 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
191 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
158 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
115 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
129 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
160 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
102 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
132 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
2 answers
90 views
In the examples I've found, related to the RadGridView control, when it comes to columns they use the GridViewDataColumn, which appears to me to bind to just one data element from the collection the grid view is bound to. I'd like to bind to 3 data elements in one column with the RadGridView. Specifically, I'd like to bind to the client's last name, first name and generation. (e.g.: "Smith, John" or "Smith Jr., John"). And then the column's header will simply say, "Client's Name". How do I do that?
Rod
Top achievements
Rank 1
 answered on 26 Mar 2013
2 answers
193 views

Hello, I was wondering how to change and/or remove the "root" composite filter in the RadDataFilter. I am loading filters programmatically and I need to change the default "And" to an "Or". If this is not possible, than I just need to remove this root filter and add my own. Please see the code below as well as the attached screen shot. I am using .NET 4.0 (full) and Telerik 2013 Q1. Thank you.

XAML:

<T:RadDataFilter x:Name="filtMain" AutoGenerateItemPropertyDefinitions="False" />

Code Behind:
filtMain.ItemPropertyDefinitions.Add(new ItemPropertyDefinition("FirstName", typeof(string), "First Name"));
filtMain.ItemPropertyDefinitions.Add(new ItemPropertyDefinition("MiddleName", typeof(string), "Middle Name"));
filtMain.ItemPropertyDefinitions.Add(new ItemPropertyDefinition("LastName", typeof(string), "Last Name"));
CompositeFilterDescriptor parent = new CompositeFilterDescriptor() { LogicalOperator = FilterCompositionLogicalOperator.Or };
parent.FilterDescriptors.Add(new FilterDescriptor("FirstName", FilterOperator.EndsWith, "an"));
parent.FilterDescriptors.Add(new FilterDescriptor("MiddleName", FilterOperator.IsEqualTo, "Bob"));
parent.FilterDescriptors.Add(new FilterDescriptor("LastName", FilterOperator.DoesNotContain, "Doe"));
// FilterDescriptors is empty. Where is the root "And" composite that I see on the screen???
filtMain.FilterDescriptors.Add(parent);

Josh
Top achievements
Rank 1
 answered on 26 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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?