Telerik Forums
UI for .NET MAUI Forum
1 answer
291 views

Hi, I have a data grid where selection of cells works well until the grid is reloaded. I have code that changes the text of a cell after the current cell is clicked, then reloads the grid. The cell / grid object selected items shows it as selected but the format does not change.

The XAML settings for the grid:

                                         AutoGenerateColumns="False" 
                                         UserGroupMode="Disabled" 
                                         CurrentCellChanged="workerGrid_CurrentCellChanged"
                                         CurrentCell="{Binding Cell, Mode=TwoWay}"
                                         SelectionUnit="Cell"
                                         CurrentCellStyle="{StaticResource CurrentCellStyle}"
                                         SelectionMode="Multiple"
                                         SelectedItem="{Binding SelectedWorker,Mode=TwoWay}"
                                           >
                <telerik:RadDataGrid.AlternateRowBackgroundStyle>
                    <telerik:DataGridBorderStyle BackgroundColor="LightGray" 
                                 BorderThickness="1"
                                 BorderColor="BlanchedAlmond"/>
                </telerik:RadDataGrid.AlternateRowBackgroundStyle>

                <telerik:RadDataGrid.SelectionStyle>
                    <telerik:DataGridBorderStyle BackgroundColor="SeaGreen" 
                                 BorderColor="Wheat" 
                                 BorderThickness="2"/>
                </telerik:RadDataGrid.SelectionStyle>

Part of the code that changes the cell content and then passes it to the view model, if I comment this out, the selection works well. 

	    List<workerData> workers = new List<workerData>();
            foreach (var myItem in workerGrid.ItemsSource as ObservableCollection<workerData>) 
                if (myItem != null)
                {
                  //code that changes the text value of one cell, then loads it into the list of classes
                 }
//then passes it to the view model, where it is loaded. this is the same as first load
              this.BindingContext = new ViewModel(workers);

I expect that I have a setting wrong / error in the code because I can see the selected cell etc. in this:

var tempSel = this.workerGrid.SelectedItems;

Thank you

Antoan
Telerik team
 answered on 27 Oct 2022
0 answers
737 views

I added the Telerik Nuget server to Visual Studio Nuget package manger settings and it asked for a username and password. I entered my email and password and then I see this:

[Telerik NuGet] Unable to load the service index for source https://nuget.telerik.com/v3/index.json.
  The ServicePointManager does not support proxies with the https scheme.
Failed to restore C:\Users\[username]\source\repos\TelerikMauiApp1\TelerikMauiApp1\TelerikMauiApp1.csproj (in 12.41 sec).
NuGet package restore failed. Please see Error List window for detailed warnings and errors.

 

Please tell me how to setup/modify/config my settings for a proxy.

 

Thank you,

-Josh

Josh
Top achievements
Rank 1
 updated question on 26 Oct 2022
2 answers
276 views

 

RadComboBox missing arrow icon in window when create publish with 

 -p:SelfContained=true -p:WindowsAppSDKSelfContained=true

 

Stoyan
Telerik team
 answered on 25 Oct 2022
1 answer
157 views

Hi,

I have many issues that I've been ignoring, hoping that new releases (yours, Maui, etc.) would fix them. Well, good thing I didn't hold my breath... :)

How would you prefer I create tickets? Should I create a separate ticket for each issue, or bundle them into one large ticket?

Thanks.

Didi
Telerik team
 answered on 19 Oct 2022
1 answer
1.2K+ views
In a Template Column whose data template contains a Button, each such button bound (by "+=") to a common "Clicked" handler, I need to remove those bindings (by matching "-=") when the containing transient page is popped. How do I do that, seeing that Telerik's Maui DataGrid has neither a rows collection (although the concept of a row is mentioned in the API) nor a cells collection for a given column (and I truly wish it had both!)?
Lance | Senior Manager Technical Support
Telerik team
 answered on 10 Oct 2022
1 answer
221 views

Is it possible to customise the line style (eg. dashes, dots, combo)  in the Cartesian chart or can we just change the colour and thickness?

Thanks =)

Antoan
Telerik team
 answered on 06 Oct 2022
1 answer
665 views

  When the listview loads hundreds of pieces of data, the page slide will be stuck. Is there any way to alleviate it, 

  or implement listview paging?

 
Antoan
Telerik team
 answered on 30 Sep 2022
1 answer
705 views

I have a situation where the number of series visible on a Cartesian Chart will be controlled by some other switch / check box list that selects which series to show on the graph. 

I have defined a basic class for each series like so: 

public class LineSeriesData
{
	public Color Colour { get; set; }
	public ObservableCollection<LineDataPoint> DataSet { get; set; }
}

public class LineDataPoint
{
	public double Value;
	public object Category;
}

The VM for the control that uses the graph will then have a collection of the LineSeriesData class that I'd like to bind to the graph as individual LineSeries like in the documentation example, but I can't work out how the binding would work in the xaml as there's no datatemplate like interface to handle a collection of line series, just individual properties. 

 <telerik:RadCartesianChart.Series>
      <telerik:LineSeries 
                       Stroke="{Binding Colour}"
                       ValueBinding="Value"
                       CategoryBinding="Category"
                       ItemsSource="{Binding DataSet}" />
      <telerik:LineSeries 
                       Stroke="{Binding Colour}"
                       ValueBinding="Value"
                       CategoryBinding="Category"
                       ItemsSource="{Binding DataSet}" />
  </telerik:RadCartesianChart.Series>

I also tried looping through the collection and adding series manually in the code behind but this doesn't seem to work either. The chart just displays No Data message. 


foreach (var item in DataSeries)
{
	var series = new LineSeries
	{
		Stroke = item.Colour,
		ItemsSource = item.DataSet
	};

	series.ValueBinding.PropertyName = "Value";
	series.CategoryBinding.PropertyName = "Category";
	MyChart.Series.Add(series);
};		

 

Is there a way to bind to a collection of series or do we have to have individual properties for each one on the VM? If they have to be individual properties, how would I go about hiding / showing a series?

Thanks!

Antoan
Telerik team
 answered on 29 Sep 2022
0 answers
136 views

Hello,

Will Telerik release native controls for Microsoft.iOS and Microsoft.Android Like Xamatin.iOS and Xamarin.Android.

Thank you

amine
Top achievements
Rank 1
 asked on 28 Sep 2022
1 answer
397 views

Hey Team, 

I created a ItemTemplate for ComboBox, and did some styles update, but I found there was no Hover status like default BackgroundColor changed when hover the items. May I know how can I add it?


<telerik:RadComboBox.ItemTemplate>
                    <DataTemplate>
                        <telerik:RadBorder MinimumWidthRequest="300">
                            <Label Padding="16,7,0,7"
                                   Text="{Binding Name}"
                                   TextColor="Green" />
                        </telerik:RadBorder>
                    </DataTemplate>
                </telerik:RadComboBox.ItemTemplate>
                <telerik:RadComboBox.SelectedItemTemplate>
                    <DataTemplate>
                        <telerik:RadBorder BackgroundColor="Gray"
                                           MinimumWidthRequest="300">
                            <Label Margin="8,0,0,0"
                                   Padding="8,7,0,7"
                                   Text="{Binding Name}"
                                   TextColor="Red" />
                        </telerik:RadBorder>
                    </DataTemplate>
                </telerik:RadComboBox.SelectedItemTemplate>

You can add this code into Sample code to reproduce it. 

My Current ComboBox drop down list:

                                                           

 

 

Expect Drop down list:

                                   

 

The 3223334 option has a BackgroundColor when we hover it.

 

Thanks

Allen

Didi
Telerik team
 answered on 23 Sep 2022
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?