Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
150183 | Dec 24,2019 03:02 PM UTC | Dec 30,2019 11:34 AM UTC | Blazor | 1 |
![]() |
Tags: ListView |
public List<Notification> DataList2 { get; set; } = new List<Notification> {
new Notification {
Text="Welcome",
SecondText="2nd Line Test",
URL="http://www.google.com",
Icon="fas fa-bell fa-fw",
IconBackgroundColor="green"
},
new Notification {
Text="Hello World!",
SecondText="2nd Line Test hello worlds",
URL="http://www.cnet.com",
Icon ="fab fa-android",
IconBackgroundColor="yellow"
},
new Notification {
Text="Hello Listview!",
SecondText="Syncfusion",
URL="http://www.syncfusion.com",
Icon ="fab fa-android",
IconBackgroundColor="blue"
},
};
// Button click to change data source
public void onClick()
{
DataList = DataList2;
}
|
public void add()
{
List<Notification> data = new List<Notification>() {
new Notification
{
Text = "New Item",
SecondText = "Testing 2nd Items",
Icon = "fa-fa ar",
IconBackgroundColor = "grey"
}
};
dodo2.AddItem(data, null);
}
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.