Telerik Forums
UI for WPF Forum
2 answers
134 views
hi!!!


i need to display  images in a column of the datagrid in code behind.
the images are store in the dataset in byte() format

have i to deserialize the image or what can i do???


Oscar Zapata
Top achievements
Rank 1
 answered on 02 Mar 2010
1 answer
93 views
Hi,

I have a simple application that show grid to the user and according to the user selection i refresh the grid.

when i refresh the grid i do the following:
1) create a new list with the new items
2) grid.ItemsSource = newlist;

if the new list has more than 1000 objects the refresh takes several seconds.

How can i improve the refresh time of the grid ?

I also tried to work with ObservableCollection and update it instead of binding a new list, but it still took several seconds.

Thanks you,
Ofer
Vlad
Telerik team
 answered on 02 Mar 2010
1 answer
104 views
How can i disable the GroupPanel in a child grid of a hierarchical grid?

I tried:
myChildTableDefinition.SetValue(RadGridView.ShowGroupPanelProperty, false)
But this does not work.
Vlad
Telerik team
 answered on 02 Mar 2010
0 answers
146 views

 

 

Hi.. again...
I have GridViewComboColumn in a GridView. How can I programatically set focus the combox in the current row and open it?
I have button on a form that addes a new row... so I want to set focus to the combobox so the user can begin entereing.... thanks again

<
telerikPresentation:GridViewComboBoxColumn DisplayMemberPath="comm_name" SelectedValueMemberPath="comm_name" DataMemberBinding="{Binding comm_name}" Header="Commodity" Width="175" />

 

 

Jon
Top achievements
Rank 1
 asked on 02 Mar 2010
2 answers
99 views
Where do I find the double click.. ?

I want to click on the row.. get the SelectedItem and close the window.

thanks again
Jon
Top achievements
Rank 1
 answered on 02 Mar 2010
1 answer
106 views

When I edit the control's template at Generics.xaml with the following code, the controls doesn't render.

 
<Popup x:Name="PART_Popup" AllowsTransparency="True" IsOpen="{Binding IsDropDownOpen, RelativeSource={RelativeSource TemplatedParent}}" Placement="Bottom" StaysOpen="False">     
    <Grid x:Name="DropDownRoot">     
        <telerikInput:RadCalendar x:Name="CalendarElement" />    
    </Grid>    
</Popup> 

If I remove the Name it renders, but doesn't have interaction with the other components of the control such as the PickerTextBox.

If I edit the control's template at user control resources all works fine.

Regards and thank you in advance.

Konstantina
Telerik team
 answered on 02 Mar 2010
7 answers
179 views
Hi,

I got some hierachical RadGridViews in my application, bound to untyped DataSets.
They are not showing any child-rows with the new beta (only the column-headers are visible).

Here is my code:
                TableRelation relation = new TableRelation(); 
                relation.FieldNames.Add(new FieldDescriptorNamePair("id", "master_id")); 
           
                GridViewTableDefinition childTable = new GridViewTableDefinition() 
                { 
                    DataSource = myDataSet.Tables[childTable].DefaultView, 
                    Relation = relation,   
                }; 
                 
                radgv_ordersAndOffersToSchedule.TableDefinition.ChildTableDefinitions.Clear(); 
                radgv_ordersAndOffersToSchedule.TableDefinition.ChildTableDefinitions.Add(childTable); 
 
radgv_ordersAndOffersToSchedule.ItemsSource = myDataSet.Tables["masterTable"].DefaultView; 

I tried a lot of things to get it working again, but had no success.

Best Regards
Steffen
Vlad
Telerik team
 answered on 02 Mar 2010
5 answers
573 views
I'm evaluating the RadGridView as a possible data grid for a project I am working on.  One of the things I need the grid to do is to use custom controls to display and edit the contents of cells.  I can do this with the CellTemplate and CellEditTemplate like so:

<controls:GridViewDataColumn Header="Field 1"
  <controls:GridViewDataColumn.CellTemplate> 
    <DataTemplate> 
      <my:CustomControl Text="{Binding Field1}"/> 
    </DataTemplate> 
  </controls:GridViewDataColumn.CellTemplate> 
</controls:GridViewDataColumn> 
The CellEditTemplate works similarly.  This code works fine.  However, it is not very maintainable.  If I have 20 columns in my table that all use those same custom controls, I have to have 20 copies of this code, with only the field name changing.  If I need to change that template, such as to add a property setting to my:CustomControl, I have to edit all 20 of those copies.  

What I would like to do is make that DataTemplate a shared resource.  I have been able to do something like this with some of the other grids I've tried, but I haven't figured out how to do it with RadGridView yet.  Obviously hard-coding {Binding Field1} isn't going to work, but I don't know what binding I need to put in there to make it bind to whatever the GridViewDataColumn is bound to.  I know I can bind a column to a field by doing the following:

<controls:GridViewDataColumn Header="Field 1" DataMemberBinding="{Binding Field1}"/> 

This works as well, if I don't want to use my custom controls.  I'm just not sure how to write the DataTemplates in such a way that they bind to whatever that DataMemberBinding is set to.

If this is possible, please let me know so that I can continue my evaluation of the control.

Thanks,

Jason


Usame Esendir
Top achievements
Rank 1
 answered on 02 Mar 2010
5 answers
169 views
I face a performance issue with Q1 2010 beta and Visual Studio professional Release Candidate (RC, not beta 2).

All the forms with RadGrids take a lot of time to fill the grid with data (for a grid with 100 rows, it takes appr. 30 seconds).

I am using Entity Framework. It is not due to EF, because if I replace RadGrid with MS Data Grid, it is OK.

Q3 2009 was much faster.

By the way, I installed RC because beta 2 stopped working after the installation of Q1 2010. I was getting a message "Visual studio has stopped working" which I could not debug because VS Debuger also could not start. I tried to solve it by reseting VS settings but it didn't work. So, I uninstalled VS Beta 2 and installed VS RC.

Thanks.
KOSTAS SEFERIS
Top achievements
Rank 1
 answered on 01 Mar 2010
11 answers
191 views
Hey,

I have a problem when trying to format my Gridview text.  On my cell I set text alignment using the following:

myCell.TextAlignment = TextAlignment.Right; 
And that does what I want to do until I scroll from left to right on my GridView, at which point I get funky alignment results (I've noticed other misc. issues with the gridview control as well... issues with characters being cut off, etc. and most of them relate to scrolling).  See image for details (I blanked column names and used fake data on this example).

Is there anything I can try to fix this?  It's probably going to be a deal-breaker for this project in terms of using Telerik's gridview control.
Larry
Top achievements
Rank 1
 answered on 01 Mar 2010
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)
WatermarkTextBox
DesktopAlert
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?