Hi,
I want to remove Ctrl+A, which will select all record in GridView.
I have requirement that User will be able to select multiple record/row by clicking on that. But user should not be able to Select All either from Header selction column check box or Ctrl+A.
Please suggest how to do that ASAP.
--
Manoj S
Hello,
I want to change the color of vertical and horizontal gridLines of my chart (target on my screen '12'), but I don't find which property can do this changement..
The MajorXLine and MajorYLine don't have a semblable property.
Can you help me ?
Thank you very much.
Valentin.
[Using 2015 version]
When row is validated and error set, followed by cancel of the edit, the error persists in the tooltip of the row.
I have implemented the fix suggested by Telerik:-
private void RowEditEndedCommandHandler(GridViewRowEditEndedEventArgs e)
{
if(e.EditAction == GridViewEditAction.Cancel)
e.UserDefinedErrors.Clear();
}
Although this clears the list structure in code, the tooltips remain in the grid - this solution does NOT work.
I've created a simple project which displays this problem.
https://onedrive.live.com/redir?resid=F5592FAA18AF2058!246934&authkey=!ACoJXqIxerfCnkg&ithint=file%2czip
I really need to find a solution to how to clear the error from the tooltips following edit cancellation.
Thanks!
Hello,
I want to use custom provider in my project,
the map can be shown right,but the minimap is nothing in the map.
what should I do?
here is the code in my project:
XAML:
<telerik:RadMap x:Name="map" Center="73.8737, -31.9043" ZoomLevel="7" MinZoomLevel="3" MiniMapExpanderVisibility="Collapsed">
<telerik:RadMap.Providers>
<provider:MapProvider></provider:MapProvider>
</telerik:RadMap.Providers>
</telerik:RadMap>
MapProvider :
public class MapProvider : TiledProvider
{
public MapProvider() : base()
{
MapSource mapSource = new MapSource();
this.MapSources.Add(mapSource.UniqueId, mapSource);
}
public override ISpatialReference SpatialReference
{
get
{
return new MercatorProjection();
}
}
}
MapSource:
public class MapSource : TiledMapSource
{
public override void Initialize()
{
RaiseIntializeCompleted();
}
public MapSource() : base(3, 18, 256, 256)
{
}
protected override Uri GetTile(int tileLevel, int tilePositionX, int tilePositionY)
{
int zoomLevel = this.ConvertTileToZoomLevel(tileLevel);
if (tilePositionY > Math.Pow(2, zoomLevel - 1) - 1)
{
return null;
}
string url = "http://www.arcgisonline.cn/ArcGIS/rest/services/ChinaOnlineCommunity/MapServer";
StringBuilder builder = new StringBuilder();
builder.AppendFormat("{0}/tile/{1}/{2}/{3}", new object[] { url, zoomLevel - 1, tilePositionY, tilePositionX });
return new Uri(builder.ToString());
}
}
and here is the result:
Hello,
I am using RadRichTextBox in my project as a reporting tool. I have created a basic structure of application and it seems to be working fine. I am setting MailMergeDataSource to a collection to generate report of more than one selected records. For example If a user selects 10 records, 10 pages will be created in final report. (assuming 1 page per report). User can now edit the generated report (like formatting, refining and so on). Till this point it seems to be achievable. I further want to get all these 10 updated pages of reports separately (with the changes done on the view), I am not sure how to do it.
Following is the line I am using for MailMerge
radRichTextBox.Document = radRichTextBox.MailMerge(); //Start each record on new page.
I am not sure how to get the boundaries of each report. because if I use the API to regenerate each report the changes done on the print preview will be lost.
This is what I am talking about
IDocumentFormatProvider formatProvider = DocumentFormatProvidersManager.GetProviderByExtension(".docx");
for (int i=0;i<number_of_records; i++)
this.radRichTextBox.Document.MailMergeDataSource.MoveToFirst();
var doc = this.radRichTextBox.MailMergeCurrentRecord(); // returns a RadDocument that is the result of substituting the merge fields with the data from the current record.
byte[] binnaryReportData = formatProvider.Export(doc); //but changes will be lost
this.radRichTextBox.Document.MailMergeDataSource.MoveToNext();
}
How can I achieve this?
Dear Admin,
I want to edit the content of radgridview cell programmatically.
I am usign below code .Would you please help me with the same. While debugging , the currentcell.Value is updated but it does not show up in Radgridview
var dataControl = (GridViewDataControl)sender;
currentCell = dataControl.CurrentCell as GridViewCell;
if (currentCell != null)
{
currentCell.Value = s;// s is the string
}
//Radgrid view xaml
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
Header
=
"Expectation Set"
DataMemberBinding
=
"{Binding ExpectationSet.Name, Mode=TwoWay}"
/>
</
telerik:RadGridView.Columns
>
Dears ,
i don't know how to add zoom to Rad Polar chart , could you help me with example ?
regards
Hi, I am using Bar chart to display some data. But most often, the bars are too small to be visible in the view. Please see attachment.
Is there something I can set so that even though the Y value is small, bar is still visible in the view?
Thanks,
Mingxue
I am using the RadGridView control in an MVVM (Light) application. I added the following EventToCommandBehaviors to initiate row validation when leaving the selected row:
<telerik:EventBinding EventName="RowValidating" Command="{Binding ValidateCommand}" PassEventArgsToCommand="True"/>
<telerik:EventBinding EventName="RowEditEnded" Command="{Binding SaveCommand}" PassEventArgsToCommand="True"/>
Here's the method and helper method that gets called and works like it should to add the error:
private void ExecuteValidate(GridViewRowValidatingEventArgs eventArgs)
{
var employee = eventArgs.Row.DataContext as Employee;
if (employee?.RecId == (int)RecEnum.CertainState && employee.OtherRecId == null)
{
var validationResult = new GridViewCellValidationResult
{
PropertyName = "ColumnUniqueName",
ErrorMessage = "Must enter a OtherRecId when RecId is set to CertainState"
};
eventArgs.ValidationResults.Add(validationResult);
}
if (eventArgs.ValidationResults.Count > 0)
{
eventArgs.IsValid = false;
}
}
And finally, following the instructions of removing the UserDefinedErrors, I add the following line in the RowEditEnded event:
eventArgs.UserDefinedErrors.Clear();
If I fix the error, the row is saved, but the mouseover error message remains even though there are no errors. I followed your directions by adding the eventArgs.UserDefinedErrors.Clear(), but this didn't help.
Does anyone have any workarounds or must this bug be fixed?
Thanks for your help.