Telerik Forums
UI for WPF Forum
1 answer
130 views
Hi,

I have a random number of carousel items in my list, currently my goal is to have all the items in one page (by setting the itemsPerPage property)
that works fine, but I don't want mouse wheel scroll, arrow keys on the keyboard or enter key to move the items (behaviors similar to .moveby)
I need to change those navigation controls to instead change the scale stops and the position of the top container item,
e.g. say topcontainer item is the middle one at the start, when user presses left arrow key on the keyboard should move the topcontainer item 1 space from the very middle to the left, and vise versa
Can this be achieved with RadCarousel?

btw, after loading the page with RadCarousel, I have set RadCarousel as focused, if I press navigation keys on the keyboard straight away, the items doesn't move straight away but have some delays, however the mouse scroll works immediately, is this a bug. Also, if I hide the scroll bars the navigations keys changed behaviors to select items instead of moving them. Is there a way to only hide the next page buttons? The reason is that my customers are saying is that going to the next page basically shows nothing in the screen which looks a bit weird

so basically my requirement is to have everthing in one page, and we don't want to go to the next page or previous page, instead we need to have mouse scroll, navigations keys to change the position of top container item and their scales

Cheers,
Tim
Maya
Telerik team
 answered on 31 Jan 2011
3 answers
111 views
See attachments.
Kaloyan
Telerik team
 answered on 31 Jan 2011
2 answers
153 views
Hi Telerik,

First off I would like to say I just love this control. I asked about this type of control in Q1 2010 and you brougth it soon after. Thanks.

I now have a task of displaying a dynamic number of columns (booleans), so I can't simply create a view object on which to bind. What is the best approach to achieve this? Is it possible to do this using a datatable as source, and in code behind add the needed columns?

Also, is it possible to define one or more columns as fixed (not autogenerated) and let the rest dynamic columns be autogenerated?

Here's a simple overview of the "problem":

Order    | Customer    | Supplier    | Parameter1    | Parameter2    | ...    | ParameterX
1             c1                    s1                Y                        N                    Y        N
2             c1                    s1                N                        Y                    Y        Y
    2a        c2                     s2                Y                        Y                    Y        Y

The problem is that the number of parameters (and their names) is not available until retrieving this from the datasource, hence I need to create the parameter columns dynamically.
Important to note though is that the number of parameters will be the same for all orders in the data retrieved.

Any advice would be appriciated!

Best regards,
Kasper Schou
                    
Kasper Schou
Top achievements
Rank 1
 answered on 31 Jan 2011
3 answers
114 views
Hi,

I'm trying to achieve several customization on a single calendarbuttonitem (date) according to a series of date attributes, i.e.:

1. Holidays should have a colored background
2. Wednesdays should be bolded

Now I can achieve this easily using the DayTemplateSelector for each of the above separately by checking for wednesdays and returning a "wednesdayTemplate" that bolds the text, and for holidays returning a "holidayTemplate" that sets the background color.

But what if the date is both a wednesday and a holiday, I would like to add both styles. The real case is much more complicated, hence I can't accept simply creating a third template combining the styles.

What I really need is having only one template that are capable of binding to multiple values. It would be sufficient if I somehow could build the template in code behind rather that binding it in XAML, i.e. accessing the template setting backgroundcolor and font.

Is this possible, and what would be the recommended approach?

Thanks in advance!

Best regards,
Kasper Schou 
Kaloyan
Telerik team
 answered on 31 Jan 2011
0 answers
103 views
HI,

Is it possible to bind dataview object to perticular cell in gridview...?
OR
Is Gridview cell having DataSource Property????

Thank You
Somnath
Top achievements
Rank 1
 asked on 31 Jan 2011
12 answers
451 views
Hi there,

I save the docking layout while closing the application

private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
  FileStream saveStream = new FileStream("usrLayout.xml", FileMode.OpenOrCreate);
  radDocking1.SaveLayout(saveStream);
  saveStream.Close();
}

and I want to load this Layout when the application is startet the next time. I do so in the Loaded-Event of the Docking-tool

private void radDocking1_Loaded(object sender, RoutedEventArgs e)
{
  if (File.Exists("usrLayout.xml"))
  {
    Stream loadStream = new FileStream("usrLayout.xml", FileMode.Open);
    loadStream.Seek(0, SeekOrigin.Begin);
    this.radDocking1.LoadLayout(loadStream);
    loadStream.Close();
  }
}

The Layout seems to be loaded correctly but all Panels are now empty. For example: I have in one of the Panels a TreeView but after using my loading-Method the TreeView is not shown in the panel.

Any idea what I do wrong?

Greetings
Andi
George
Telerik team
 answered on 31 Jan 2011
6 answers
248 views
Hello,

I've tried to save the layout of my panes with the Docking SaveLayout / LoadLayout Method.

It works as long as my panes are docking in the main container.

But if one pane is floating, i can successfully save information about it (only if i move another pane meanwhile) but when loading the layout after restarting the application, only the docking windows appear even if it seems that correct information are saved in the xml file.

<?xml version="1.0" encoding="utf-8" ?> 
- <RadDocking>
- <DocumentHost>
- <RadSplitContainer>
- <Items>
- <RadPaneGroup SerializationTag="AccueilPaneGroup" SplitterChange="781" SelectedIndex="0">
- <Items>
  <RadPane SerializationTag="ActionsFrequentesPane" IsDockable="True" Title="Actions fréquentes" Header="Actions fréquentes" CanUserClose="False" CanUserPin="False" CanFloat="True" /> 
  </Items>
  </RadPaneGroup>
  </Items>
  </RadSplitContainer>
  </DocumentHost>
- <SplitContainers>
- <RadSplitContainer Dock="DockedLeft" Width="240" RelativeWidth="100" RelativeHeight="100" IsAutoGenerated="True">
- <Items>
- <RadPaneGroup RelativeWidth="100" RelativeHeight="100" IsAutoGenerated="True" SelectedIndex="0">
- <Items>
  <RadPane SerializationTag="ListeSimpleParametrablePane" IsDockable="True" Title="Liste paramétrable" Header="Liste paramétrable" CanUserClose="False" CanUserPin="False" CanFloat="True" /> 
  </Items>
  </RadPaneGroup>
  </Items>
  </RadSplitContainer>
- <RadSplitContainer InitialPosition="FloatingDockable" FloatingWidth="220" FloatingHeight="300" FloatingX="1645" FloatingY="285.04" IsInOpenWindow="True" RelativeWidth="100" RelativeHeight="100" IsAutoGenerated="True">
- <Items>
- <RadPaneGroup RelativeWidth="100" RelativeHeight="100" IsAutoGenerated="True" SelectedIndex="0">
- <Items>
  <RadPane SerializationTag="GrapheParametrablePane" IsDockable="True" Title="Graphe paramétrable" Header="Graphe paramétrable" CanUserClose="False" CanUserPin="False" CanFloat="True" /> 
  </Items>
  </RadPaneGroup>
  </Items>
  </RadSplitContainer>
  </SplitContainers>
  </RadDocking>

I can see the RadSplitContainer with FloatingDockable position but the pane is not visible...

Any Help ? Or is it not possible to save layout with floating panes ?

Many thanks !
George
Telerik team
 answered on 31 Jan 2011
1 answer
217 views
Hi,

   Currently, the appointment items are aligned at the top of their group's row and do not fill the space.

   I would like to vertically align the appointment items to be centered, as well as make them slightly larger (height).

   Playing with styles, I noticed that VerticalAlignment property does not respond at all, and modifying Height and/or Margin on AppointmentItem will cause strange clip and layout issue.

   Any suggestion?

Robert.
Dani
Telerik team
 answered on 31 Jan 2011
3 answers
115 views
Is there an option to control Tile movement when a user drags a tile to a different position?  For instance, with five tiles in two rows and a user drags a tile from the first position to the last position tile 5 moves to tile 2 and tile 2 goes to tile 1.  What I need is for the tiles to stay in their relative order except for the tile the user is dragging.  In  other words maintain the original sequence except for the moved tile.
Petar Mladenov
Telerik team
 answered on 31 Jan 2011
5 answers
230 views
Hello,

I am building a demo for a travel agent company using the RadMap demo. I could be wrong that I think that RadMap only show the detail (street level) map for US.  But Bing provide the detail map for a lot of countries other than US (like Japan, China, France, etc).

I searched online and looks like by default Bing will provide the detail map for US. But if you want to see the detail map other than US, you have to load it specially.
I found some sample code used together with Microsoft Bing Map Control.

Does RadMap provide same capability? Can someone show me some sample? 

Much appreciated,
David

 
 UriBuilder tileSourceUri = new UriBuilder("http://r2.tiles.ditu.live.com/tiles/r{quadkey}.png?g=41");
        MapTileLayer tileLayer = new MapTileLayer();
        LocationRectTileSource tileSource =
   new LocationRectTileSource(                    
                                             tileSourceUri.Uri.ToString(),
                                      new LocationRect(new Location(60, 60), new Location(13, 140)),
                                              new Range<double>(1, 16));
        tileLayer.TileSources.Add(tileSource);
        tileLayer.Opacity = 0.9;
        myMap.Children.Add(tileLayer);
Andrey
Telerik team
 answered on 31 Jan 2011
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
VirtualKeyboard
HighlightTextBlock
Security
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?