How to add new Chips to the first position of the group

The items are added to the last position by default, how can i change it?


chipGroup.Items.Add(new SfChip() { Text = categoryPicker.SelectedItem.ToString() , ShowCloseButton = true });

6 Replies 1 reply marked as answer

SS Sridevi Sivakumar Syncfusion Team July 30, 2020 09:39 AM UTC

Hi Leonardo,

Greeting from Syncfusion.
 

Query: The items are added to the last position by default, how can i change it?  
 
We would like to let you know that you can achieve your requirement instead of adding that to Items directly added to the ChipLayout of ChipGroup as per in below code snippet  
  
Code snippet  
[XAML]:  
        <StackLayout>  
            <buttons:SfChipGroup Type="Action" x:Name="chipGroup">  
                <buttons:SfChipGroup.Items>  
                    <buttons:SfChip Text="Small"/>  
                    <buttons:SfChip Text="Medium"/>  
                    <buttons:SfChip Text="Large"/>  
                </buttons:SfChipGroup.Items>  
            </buttons:SfChipGroup>  
            <Button Clicked="Button_Clicked" Text="Add Item"/>  
        </StackLayout>  

[C#]:
  
        private void Button_Clicked(object sender, EventArgs e)  
        {  
            chipGroup.ChipLayout.Children.Insert(0, new SfChip() { Text = "NewItem" });  
        }  
 
 
Regards, 
Sridevi S. 



LE Leonardo July 30, 2020 10:06 PM UTC

When I use hipGroup.ChipLayout.Children.Insert i'm not able to click on the close button on the chips and delete them anymore, why's that?,



YP Yuvaraj Palanisamy Syncfusion Team July 31, 2020 05:36 PM UTC

Hi Leonardo, 
 
Currently we are validating your query and we will update you the status on or before 4th August 2020. 
 
Regards, 
Yuvaraj 



HM Hemalatha Marikumar Syncfusion Team August 5, 2020 04:13 PM UTC

Hi Leonardo, 
 
Sorry for the delay.  
 
Due to some technical hurdles on finding root cause, we need some more time to validate this. Hence, we will update the complete details on or before August 6, 2020.  
 
Regards,
Hemalatha M. 



HM Hemalatha Marikumar Syncfusion Team August 6, 2020 01:48 PM UTC

Hi Leonardo, 
 
We would like to let you know that we have found the root cause and currently working on this to find the issue either in source or sample level. Hence, we will share the fix details on August 7,2020. Sorry for the continuous delay. 
 
Regards,
Hemalatha M.
 
 
 



YP Yuvaraj Palanisamy Syncfusion Team August 7, 2020 12:29 PM UTC

Hi Leonardo, 
 
Thank you for your patience. 
 
Currently, we don't have support for Replace and Insert the item in SfChipGroup Items. Hence, we have logged the feature request for this. You can track the status of the feature from below link   
   
     
Please cast your vote to make it count. We will prioritize the features every release based on the demands and we do not have an immediate plan to implement this feature since we committed with already planned work. So, this feature will be available for any of our upcoming releases.  We appreciate your patience until then.   
   
If you have any more specifications/suggestions to the feature request, you can add it as a comment in the portal.     
 
Regards, 
Yuvaraj 


Marked as answer
Loader.
Up arrow icon