Hello!
We are developing a n app with a Map controll element. And for the app purposes, we need some interactable and dynamicly added.
For example, by click on the map, dricen by OpenStreetMap provider, you add a point (e.g. Ellipse) on the map. Then, you can click on that point and select it for altering (changing location or color, for instance) or delitin the point.
Bu the problem is, that adding elemnts by clicikg on the map during the rubtime is provided by Visualization layer. And that layer operates with MapShapeData, whic can not be interactive (clickable). And clicakble elemnts are provided by the Information layer, and that layer loaded only once, during the app loading.
So here is the question: is it posible to operate with clickable items with the Visualization Layer, or is it possible to mannualy "reload" the information layer to update is Items collection, displayed on the screen? Or, maybe, there is another way to solve the problem?
Thank ypu and best regards,
S. Kozlovskiy.
Assuming we have the following grid
<
telerik:RadGridView
ColumnWidth
=
"*"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
Header
=
"Coverage"
/>
<
telerik:GridViewDataColumn
Header
=
"Deductible"
/>
<
telerik:GridViewDataColumn
Width
=
"Auto"
Header
=
"Limit"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
The Limit column does not expand but the Deductible column is shrunk from the left when we try to resize the Limit column (drag separator b/w Deductible and Limit columns to the left).
The expected behavior is:
1.Limit column should expand
2. Deductible column should shrunk from the right
Thank you,
Jan
We have been trying to achieve the following behavior:
1. From window, open a popup/modal dialog ().
2. From within the popup/modal dialog, open another popup/modal dialog ().
It works fine but when the second popup is opened and you click the first popup, the second active popup goes behind its parent.
We cannot use ShowDialog() since we want these popups in individual tabs. Meaning, I can open one tab and inside it. I can also open tab and a popup inside it. ShowDialog() blocks the whole application and user cannot switch between tabs.
Refer to attached images for details of the issue faced
s is causing usability issues since the user will never know how to bring the active popup back if they mistakenly click outside it on the first popup.
I use RadNumericUpDown in many places. My application runs on a PC and on the Microsoft Surface and uses the Windows8Touch theme.
My problem is that whenever the user types the + or - button of a RadNumericUpDown on the MS Surface, the Window Virtual Keyboard appears, immediately obscuring the very control you are using. The user isn't trying to edit the text box, mind you, just tapping the buttons.
I can see the cause: Whenever you tap one of those buttons, the edit control gets keyboard focus. This triggers Windows (at a very low level) to pop up the virtual keyboard.
But if the user is only tapping the buttons, it seems that the edit box should not get focus. That should not happen until you actually try to *type* in it. And even if you think it *should* get focus, there at least needs to be a way to prevent it from happening.
Here is what I tried:
1. I tried to setting the entire RadNumericControl's IsEditable property to "False" but this has no effect. Even though the user cannot edit the box, tapping the UP or DOWN button *still* makes the edit control think it is being edited enough to give it focus and force that virtual keyboard to appear
2. I tried setting the entire control's "Focusable" property to "False" but that didn't work either. The internal edit control still gets keyboard focus. This is because the Telerik template for the control fails to pass the "Focusable" to its internal edit through TemplateBinding.
I have managed to "fix" this by copying the entire RadNumericUpDown control's template and making it pass "Focusable" to its internal edit via the TemplateBinding. Then I use this template for my RadNumericUpDown and set them to not Focusable.
But I don't want to copy the entire template that because a)it's overkill and b) my copied template is not using the Telerik Windows8Touch theme that I applied to everything else. So it looks out of place and terrible. Yeah, maybe I can copy stuff from the Telerik XAML files but again, I'd really prefer a simple property on the RadNumericUpDown.
Am I missing some simpler method here? Does RadNumericUpDown give me a way to get at the internal edit control and prevent it from getting keyboard focus short of copying its entire template?
Also, am I correct that it's internal edit should NOT get keyboard focus if you just tap the buttons (at least if it's not editable)?
I am hoping you can point me to an easier way.
It's hard to control is it show or hidden.
now i can only use remove and add form behaviors.
ShowTrackInfo and ShowIntersectionPoints can not totally control whole trackball
Hello,
How do I format data (e.g. in GridViewDataColumn) to have a "%" prefix?
We do not want the value to be multiplied by 100 (e.g. when user enters "1", it should show "1%" instead of "100%")
Also, when data is null, it should show an empty field, "", instead of "%".
Thank you,
Jan
Hello,
I have a grid with a GridViewPinRowColumn and I need to detect, when the user has pinned or unpinned a row. Is there an event which I can subscribe?
Best regards,
Thomas
Is there a way of changing what group headers are shown depending on which columns have been grouped?
I have a small banking application which displays a breakdown of all fees.
AllFees.PNG shows all of the fees ungrouped
GroupedByDesk.PNG shows the desired behaviour of grouping on any column other than currency (sums all of the rows 'Amount' values exchanged into a single currency)
GroupedByCurrency shows the desired behaviour of grouping by currency alone (sums all of the amounts in that currency)
Where it gets more interesting is if you group by Currency and another column. The desired behaviour is to show ONLY the exchanged sum in the header down in each group, and child group etc., until the Currency grouping, where you ONLY display the currency sum, as demonstrated in GroupByDeskThenCurrency.PNG
I have some working code that prevents the exchanged sum aggregate being displayed (as long as the Currency is the first grouping), but it's still not quite what the desired outcome is. Said code:
private void GridView_Grouped(object sender, Telerik.Windows.Controls.GridViewGroupedEventArgs e)
{
foreach (Telerik.Windows.Controls.GridViewColumn col in this.GridView.Columns)
{
col.AggregateFunctions.Clear();
}
bool groupedByCurrency = false;
bool addedFxdSumAggregate = false;
foreach (ColumnGroupDescriptor gd in this.GridView.GroupDescriptors)
{
if (gd.DisplayContent.ToString() == "Currency")
{
groupedByCurrency = true;
this.GridView.Columns["Currency"].AggregateFunctions.Add(this.currSumFunction);
}
if (!groupedByCurrency && !addedFxdSumAggregate)
{
this.GridView.Columns[gd.DisplayContent.ToString()].AggregateFunctions.Add(this.fxableSumFunction);
addedFxdSumAggregate = true;
}
}
public
class
Products : INotifyPropertyChanged, IDataErrorInfo
{
private
Int64 m_ID;
private
SqlHierarchyId m_Hierarchy;
private
string
m_Name;
private
Int16 m_Level;
private
ObservableCollection<Products> m_ChildProducts;
// Default Constructor
public
Products()
{
ChildProducts =
new
ObservableCollection<Products>();
}
//Properties
public
Int64 ID
{
get
{
return
m_ID;
}
set
{
m_ID = value;
OnPropertyChanged(
new
PropertyChangedEventArgs(
"ID"
));
}
}
public
SqlHierarchyId Hierarchy
{
get
{
return
m_Hierarchy;
}
set
{
m_Hierarchy = value;
OnPropertyChanged(
new
PropertyChangedEventArgs(
"Hierarchy"
));
}
}
public
Int16 Level
{
get
{
return
m_Level;
}
set
{
m_Level = value;
OnPropertyChanged(
new
PropertyChangedEventArgs(
"Level"
));
}
}
public
String Name
{
get
{
return
m_Name;
}
set
{
m_Name = value;
OnPropertyChanged(
new
PropertyChangedEventArgs(
"Name"
));
}
}
public
ObservableCollection<Products> ChildProducts
{
get
{
return
m_ChildProducts;
}
set
{
m_ChildProducts = value;
OnPropertyChanged(
new
PropertyChangedEventArgs(
"ChildProducts"
));
}
}
//INotifyPropertyChanged Event
public
event
PropertyChangedEventHandler PropertyChanged;
public
void
OnPropertyChanged(PropertyChangedEventArgs e)
{
if
(PropertyChanged !=
null
)
PropertyChanged(
this
, e);
}
}
public
static
ObservableCollection<Products> GetProductsHierarchy()
{
ObservableCollection<Products> products =
new
ObservableCollection<Products>();
SqlConnection connection =
new
SqlConnection(DBConnection.GetConnection().ConnectionString);
string
selectStatement =
"SELECT ID, Hierarchy, Name "
+
"FROM SpecProducts "
+
"WHERE (EnableDisable IS NULL)"
+
"ORDER BY Hierarchy"
;
SqlCommand selectCommand =
new
SqlCommand(selectStatement, connection);
try
{
connection.Open();
SqlDataReader reader = selectCommand.ExecuteReader();
while
(reader.Read())
{
Products product =
new
Products();
product.ID = (Int64)reader[
"ID"
];
product.Name = reader[
"Name"
].ToString();
product.Hierarchy = (SqlHierarchyId)reader[
"Hierarchy"
];
product.Level = (Int16)product.Hierarchy.GetLevel();
//**** How to create recursive loop to add unknown levels to nodes???? ****
products.Add(product);
}
return
products;
}
catch
(SqlException ex)
{
throw
ex;
}
finally
{
connection.Close();
}
}
ObservableCollection<Node> nodes =
new
ObservableCollection<Node>();
nodes.Add(
new
Node(
"Company"
));
nodes[0].Nodes.Add(
new
Node(
"Department"
));
nodes[0].Nodes[0].Nodes.Add(
new
Node(
"here are you"
));
nodes[0].Nodes[0].Nodes[0].Nodes.Add(
new
Node(
"even deeper"
));
radTreeView1.ItemsSource = nodes;