Dear Team,
In my first try with Telerik RadGridView Control i succeeded in binding the grid with Dataset [ProcDataSet.xsd]. which list all the rows in my table in RadGridView.
Me.ViewProcurementRate_OceanTableAdapter.Fill(Me.DBOCTOPUSDataSet.viewProcurementRate_Ocean)
now my second issue is to Re-Populate the grid based on user input for instance.
user Input Sea-Port Code and clicks on Search. i want to fill grid with fetching all rows matching user input.
can you please guide me next approach of fetching data from table onto RadGridView.
Thanks
Hi,
is possible to draw open line serie in polar chart as wpf version?
http://www.telerik.com/forums/polarseries-closed-line
Thanks, marc.
Hi, in my radwizard, I have multile steps with different groups. I try to find a way to bypass the validation when I press "previous" button. There is no way I can hit previous without my required field validator interrupting me.
I found a thread where you ask to add the following javascript :
function OnClientButtonClicking(sender, args) {
if (sender.get_activeIndex() > args.get_nextActiveStep().get_index()) {
args.set_cancel(true);
sender.set_activeIndex(args.get_nextActiveStep().get_index());
}
}
When I debug, I can see the script is called but there is something else preventing the page from going to the previous one. Required field validator kicks in as soon as I hit previous.
Thank you for your help
hello
i have a web service that is sending some data to my windows application every 10-15 seconds and i want to use those data as Light Visual Elements and add them to my live tile . also i want to use live tile transition animation .
but the problem is in all the sample i seen, coders always add their light vishal elements manually and when i want to add (and remove) items from my live tile every 10 - 15 second i lost my transition animation
is there a way that i can receive data (text) from a source every x second and add them to livetile and remove old ones and still keep my transition animation like the one in the demo application
and i use the code below
value = random.Next(200);
LiveTile.Items.Clear();
VisualElement.Text = value
VisualElement.TextAlignment = ContentAlignment.TopCenter;
LiveTile.TransitionType = ContentTransitionType.Fade;
LiveTile.Items.Add(VisualElement);
(assuming i declared my panorama and my tile group )
and this code is inside a timer and its running every x seconds.
Thanks
public class MyComboBoxEditorElement : RadDropDownListEditorElement
{
protected override void ProcessKeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter || e.KeyCode == Keys.Tab)
{
List<
string
> dataSource = (List<
string
>)this.DataSource;
string name = this.Text;
if (!NameExists(name))
{
AddToDataSource(name);
RefreshDataSource();
this.SelectedIndex = this.Items.Count - 1;
}else
{
Update( dataSource[this.SelectedIndex].nameID, caseName);
RefreshDataSource();
}
}
base.ProcessKeyDown(sender, e);
}
Hi,
I've found a problem with a MailMerge and a list ExpandoObject as datasource. After switching to Result display mode, it appears to replace the MergefFields with string.empty.
Dynamic object with "static written" property works fine.
Problem seems to be the same as described here: http://www.telerik.com/forums/dynamic-mailmerge
Please apply the same fix in WinForms.
Regards, Tomasz.
Hello,
I have an interesting theme issue with the grid. We have many screens where the grid is used to select the data you are working on and then we allow the users to edit fields for the records based on the grid selection. The editing is done outside of the grid.
When the users are editing data we do not allow them to change the record they are on until they save the data. For this I flip the grid to the disabled state when editing begins, when they save or cancel the edit I then enable the grid.
I have my grid property for "UseDefaultDisabledPaint" to false, which does not grey out the entire grid and leaves it with our color selections.
The issue is the SelectedRow color is turned off. A single SelectedCell from the row is colored, but not the entire row. I need to have the entire row colored when the grid is disabled. I looked into the Visual Style Builder for this property and even in the ADD events I cannot select any property for the row when IsSelected or IsCurrent is true and IsDisabled is also true.
Is there a way to accomplish this with the theme or a way I can do it in code on the based grid? Read Only will not work as I need to not allow a selection of the grid. I was considering modifying the RowsChanging event to stop the users from changing rows, but I would have to also code for filtering, sorting and other events. Disabled would do the trick, I just need to get the entire row to remain colored. Can I do this in the theme or in code?
Thank you in advance,
Ben
I have attached two screen shots. Enabled and disabled samples.
I can also send our theme if you need it.
Hello,
I am trying to add a custom filter option to the filter context menu that appears when you click the filter button above a column in a gridview. This custom filter option will search for empty string values "" within the column. I read some other related forum posts that pointed me towards the 'FilterPopupInitialized' event. However, when I tried to wire up this event handler, I can never seem to hit a breakpoint set on my code inside this method.
Any thoughts on why I can't seem to get to my breakpoint? Also, is this the right approach for adding a custom filter option to the gridview filter context menu?
Thanks,
Matt
Problem:
What should be done to force the Command button to change its content right away, without changing the focus to other cell?
using
System;
using
System.Collections.Generic;
using
System.ComponentModel;
using
System.Data;
using
System.Drawing;
using
System.Linq;
using
System.Text;
using
System.Windows.Forms;
using
Telerik.WinControls.UI;
namespace
GridApp
{
public
partial
class
RadForm1 : Telerik.WinControls.UI.RadForm
{
public
RadForm1()
{
InitializeComponent();
radGridView1.Rows.Add(
new
object
[1] {
"zero"
});
radGridView1.Rows.Add(
new
object
[1] {
"one"
});
radGridView1.Rows.Add(
new
object
[1] {
"two"
});
radGridView1.Rows.Add(
new
object
[1] {
"three"
});
radGridView1.Rows.Add(
new
object
[1] {
"four"
});
}
private
void
radGridView1_CommandCellClick(
object
sender, Telerik.WinControls.UI.GridViewCellEventArgs e)
{
switch
(e.ColumnIndex)
{
case
1:
RadButtonElement b = (RadButtonElement)((GridCellElement)radGridView1.CurrentCell).Children[0];
b.Tag =
true
^ (
bool
)b.Tag;
break
;
default
:
break
;
}
}
private
void
radGridView1_CellFormatting(
object
sender, Telerik.WinControls.UI.CellFormattingEventArgs e)
{
if
(e.ColumnIndex == 1)
{
RadButtonElement b = (RadButtonElement)e.CellElement.Children[0];
b.ImageAlignment = ContentAlignment.MiddleCenter;
b.TextAlignment = ContentAlignment.MiddleCenter;
// set bool data as switch
if
(b.Tag ==
null
) b.Tag =
false
;
b.Text = ((
bool
)b.Tag) ?
"locked"
:
"open"
;
}
}
}
}
I have a winform with a radgridview with filtering enabled. The data source is a dataset. The purpose of the form is to make various global updates to a weight column in the database. So for example the user first sets a filter, for example on a specific zipcode, and say that there are 4 rows that meet that condition. Next to the grid I have a text box and a command button. The user inputs the package weight that is for the filtered zip and clicks a submit button. The code then applies the package weight to the filtered records - this works - and all the values for package weight get properly set and are shown in the grid. Then I have a 'save all' button - this is *almost working'. Previously the code I had in the save button click was:
this.tblDISTRIBUTIONACTIVITYBindingSource1.EndEdit();
this.tmcprod1024DataSet1.AcceptChanges();
nretval = this.tblDISTRIBUTIONACTIVITYTableAdapter1.Update(tmcprod1024DataSet1.tblDISTRIBUTIONACTIVITY);
And in this case, the backend data was never updated, no updates whatsoever. However, I then read some online posts and realized that I needed to eliminate the "acceptchanges" line. After I eliminated that line things were *almost correct* but still not there yet. Now, taking the example above with 4 filtered records, when I click the save button, if say for example the third record is highlighted in the grid, then the three non-highlighted records get updated on the backend, but the highlighted record doesn't get updated. Regardless of which row is highlighted at the time of clicking save, the data on the highlighted row doesn't get updated. Can someone please explain what is wrong and how I can fix this? Thanks.
The code that changes the weight value in the grid, upon clicking the command button, is as follows:
foreach (var onerow in radGridView1.ChildRows)
{
double dnumber;
dnumber = Convert.ToDouble(maskedTextBox2.Text);
onerow.Cells["customerratethisorder"].Value = dnumber;
}