Telerik Forums
UI for WPF Forum
4 answers
99 views

I have a GridView that users will select rows in, and I would like to trigger calculations after they have filtered, and include ONLY the filtered rows in the calculation.

How do I trigger the calculations, and how do I select only filtered rows?

William
Top achievements
Rank 1
 answered on 01 Mar 2017
8 answers
383 views

I have a custom column, which contains a textbox when in editing mode, and two textblocks when not in editing mode. These controls are created through CreateCellElement and CreatedCellEditElement in my custom column.

The first textblock (A) shows the text - and the second textblock (B) shows a status.

I also have the search as you type on the RadGridView (ShowSearchPanel=True). It works for my custom column (I have bound the datamemberbinding to the text in the viewmodel). But the text in the textblock (A) does not get hightlighted.

The user may enter several lines of text, but textblock A will only show the first line (through alignments) - this is done to keep the rows from becomming to high when users enters a lot of text.

 

Is there any way to have the column highlight, when there is a match in Search as you type?

Inger Marie
Top achievements
Rank 1
 answered on 01 Mar 2017
2 answers
75 views

Good morning,

As you can see in the attached file I've used a RadGridView Control to show some sales.
With my program I can sell two items, then close partially the sales and then insert a new product e close the sales partially or definitively.

I've made this by create an object who refer to my model (my db model) and add to it a variable "Type" (who tells me wath kind of row is).
For the details (see the White row) I read my data db and set the "Type" at 0, for the Yellow and Green row I'm not read the data from db but with an internal foreach with variuous Group by I can know when a Row is a subtotal or a total and for these last 2 condition I set the type at 1 or 2, then with styles and datatrigger I color the lines.

This works, but if I use filter or the search control I lost the total and subtotal row.

 

How can I avoid it?

Marco
Top achievements
Rank 1
 answered on 01 Mar 2017
1 answer
80 views

Hi,

I'm trying to diagnose a memory build inside the RadGridView where the only refence to the memory object is in the inpcSubscriptions in the RadGridView, how do I go about clearing this list down?

 

 

Stefan Nenchev
Telerik team
 answered on 01 Mar 2017
1 answer
121 views

Hello. I ask you about real-time chart with viewing of histirical data in http://www.telerik.com/forums/how-to-create-real-time-chart-(radcartesianchart-with-spline-series)-scrolled-or-panned-in-time. You gave me information with example there but this example works poorly. I've tryed to improve the functioning of the chart in the example but to no avail. So I still need RadCartesianChart that can show historical data. Please give me an example of such RadCartesianChart with historical data viewing that works good, if this is possible ofcourse. I need such RadCartesianChart very much. I would be very grateful to you for your help.

 

Martin Ivanov
Telerik team
 answered on 01 Mar 2017
1 answer
185 views

Hi simple question, I know you can clear the numeric approach in behind code using something like this 

 

    <telerik:RadButton Content="Clear" Command="{Binding ElementName=RMTI,Path=ClearCommand}"/>

 

But I'm looking for an MVVM approach. Any ideas? 

 

In my viewmodel I would set the NumericTextBox value to null but instead of clearing out, it would go to zero. NumericTextBox Value is of type double?

Dinko | Tech Support Engineer
Telerik team
 answered on 28 Feb 2017
9 answers
620 views
Hello. I'm trying to use RadDocking in my project, but I am having trouble with floating panes. In my scenario, I want to float a docked pane and to set the floating window size to either specific value or fullscreen, depending on pane content. I need to do it from code-behind.
I've found this solution: http://www.telerik.com/forums/add-maximize-button-to-radpane-header
And the idea begind it works. But it also creates an unwanted side effect. I can see the window changing size twice: first, when it appers on the screen (at this point it has some initial size, like 200x300), and second time, when I change its size in PaneStateChange event handler. If pane contains some rendering-heavy content this double resizing is especially noticeable. So the question is: is there a way to set initial ToolWindow size, before it is actually displayed (and rendered) for the first time?
Nasko
Telerik team
 answered on 28 Feb 2017
4 answers
203 views
Hello,

I have a requirement where user should be able to traverse through the spreadsheet columns vertically using only Tab or Enter Key.
For ex: If I have entered some value in column1, cell 1, when I press Tab, focus should move on to the next cell in the same column1. and I should be able to keep doing this for, suppose, next 1000 rows.  Then I would like to start on column2, cell1, and do the same traversal using Tab key or Enter key and so on.
So my question is how do I capture the tab key press event or enter key press event and move the focus on to the next cell below the current cell ( not the cell on the right side)  for data entry ?

I would really appreciate the quick response.
Thank you.

Tanya
Telerik team
 answered on 27 Feb 2017
4 answers
192 views
regards
I'm working with RadPivotGrid and RadPivotFieldList (WPF), the data comes from a cube olap. I'm trying to export to excel but when I do after a while the application crashes and I get the following exepcion:
ContextSwitchDeadlock was detected
Message: The CLR has been unable to transition from COM context 0x63ef2c8 to COM context 0x63ef438 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during long running operations.

as I can fix, I would give an example please?
Polya
Telerik team
 answered on 27 Feb 2017
0 answers
47 views

Hi,

I have GridViewDataColumn with a edit template containing a com:

<telerik:RadButton
    Command="{Binding DoSomethingCommand}"
    Focusable="False"
</telerik:RadButton>

 

My button command calls a command hander "MyViewModel.OnDoSomething" method in ViewModel attached to RadGridView row, but I am unable to figure out how to close edit mode after my handler is called. I tried to call CommitEdit() from Click() handler attached to button above. After adding click handler my "MyViewModel.OnDoSomething" is not called anymore.

I could fire new event from MyViewModel.OnDoSomething and intercept this event in View and call CommitEdit from there, but maybe there is a simpler way?

 

Thanks,

Łukasz

 

Lukasz
Top achievements
Rank 1
 asked on 27 Feb 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?