Hi, I'm trying to use Telerik UI for Winforms in my C# application to create a dashboard widget. Is there a control in Telerik UI for Winforms that similar to card dashboard on web application ?
Like this figure (this is a screenshot of my Telerik's profile page)
What I want to create is something like this
Thank you.
Hi!
I followed the instructions for creating an Azure web bot resourse and used the Secret in my winform app. I dropped a RadChat control on my form and gave it the information about the azure web bot. Basically, I followed the directions on your site about this subject.
What I'm confused about is where is the websocket hub to handle my chat messages? Azure wants me to specify the endpoint for the bot. Am I supposed to create a separate web api project to handle the incoming. If that's the case, why do I need azure. I could just create a SignalR hub and write a simple client to handle chat traffic.
Just need some clarity of the what the intent of the RadChat control is and it should be used. I have a Winforms app that will be used by patrol officers in their cars and want to simply chat with other officers using our program.
Thanks in advance!
I am trying to achieve a similar experience as in your CardView demo with the cities. The images are stored as block blobs in an Azure storage account. The blobs have tags, which i want to expose , similar to the meta from the demo where we have city name, population, country).
As far as i saw, there is no direct integration for CloudBlockBlob, so i am trying to place this in a byte array in order to display. Yet the outcome is an empty box in the grid, for each item from the container. the blobs are correctly downloaded, verified by writing the fileContent byte array to disk via filestream.
Any idea on how to achieve this?
Thank you!
public partial class Form1 : Form
{
string sasToken = "?st=2020-02-12T21%3A05%3A08Z&se=2021-02-13T21%3A05%3A00Z&sp=rl&sv=2018-03-28&sr=c&sig=*redacted*";
public Form1()
{
InitializeComponent();
}
public List<IListBlobItem> MainBody3(string id)
{
StorageCredentials accountSAS = new StorageCredentials(sasToken);
// Use these credentials and the account name to create a Blob service client.
CloudStorageAccount account = new CloudStorageAccount(accountSAS, "storage_account_name", endpointSuffix: null, useHttps: true);
CloudBlobClient client = account.CreateCloudBlobClient();
CloudBlobContainer container = client.GetContainerReference("images-analyzed-sampled");
BlobContinuationToken token = null;
List<BlobInfo> blobi = new List<BlobInfo>();
List<IListBlobItem> poze = new List<IListBlobItem>();
BlobRequestOptions options = new BlobRequestOptions();
var myResults = new DataSet();
do
{
var result = container.ListBlobsSegmented(null, true, new BlobListingDetails(), 20, token, null, null);
token = result.ContinuationToken;
var blobs = result.Results;
foreach (IListBlobItem item in blobs)
{
var blob = item as CloudBlockBlob;
long fileByteLength = blob.Properties.Length;
byte[] fileContent = new byte[fileByteLength];
for (int i = 0; i < fileByteLength; i++)
{
fileContent[i] = 0x20;
}
radCardView1.Items.Add(blob.DownloadToByteArray(fileContent, 0));
}
} while (token != null);
return poze;
}
private bool HasMatchingMetadata(CloudBlockBlob blob, string term)
{
foreach (var item in blob.Metadata)
{
if (((item.Key.StartsWith("Tag") || (item.Key.StartsWith("PredictedImageType"))) && item.Value.Equals(term, StringComparison.InvariantCultureIgnoreCase)))
return true;
}
return false;
}
private void radButton1_Click(object sender, EventArgs e)
{
MainBody3("");
}
}
public class BlobInfo
{
public string ImageUri { get; set; }
public string ThumbnailUri { get; set; }
public string Caption { get; set; }
}
}
Hi, I was wondering if someone could help.
I want to create a layout/cardview of a single record, I tried this via layout groups but they don't really fit side by side.
Has this been done before?
Hello,
I'm trying to implement a (Kanban style) BoardView. It's similar to CardView (grouped cards, with drag&drop functionality), but i need a custom layout method: horizontal groups (columns), and vertical items (cards). So i was trying to inherit from ListView (like a CardView), but i cant override internal methods and properties.
I want to inherit from a theme-supported class (CardView/ListView ), not directly from radControl.
Any suggestions?
Thanks!
Hi,
Is there a way to hide the column header, for example, I want to hide first column header and shift the item to the left.
Many thanks,
Omar
How do I get rid of the Expand / Collapse on Each card? (See Capture1)
Also, it might be related, but I would like the photo to expand to fill to the top and side edges in the card, as in the Telerik UI for WinForms demo application. (See Capture2).
I copied this Demo code exactly, even editing the form1.Designer.vb, so they should look the same, but I still get variations between the two. In designer editing properties directly, it will not hold several properties, changing them to what the control thinks they should be. This is especially true for trying to set the size and location of the CardViewItems.
Please advise.
Thanks,
Hi,
I have cardView that I am filling it with data manually (no data-binding).
I have problem in using text wrapping. See attached image.
as you can see the blue test is clipped, I need to display the entire test lets say in two line not one line. Can this be done?
Many thanks in advance.
Omar
Good afternoon.
I want to change the color according to the Data value of a certain column in Cardview.
Cardview does not have a CellFormatting in the Gridview or Listview.
I change the color of the entire item using Cardview's VisualItemFormatting.
private void RadCardView1_VisualItemFormatting(object sender, ListViewVisualItemEventArgs e)
{
if (e.VisualItem.Data["EIFSTATUS"].Equals("OFF"))
{
e.VisualItem.BackColor = Color.Red;
e.VisualItem.GradientStyle = Telerik.WinControls.GradientStyles.Solid;
}
}
But I do not want it.
I would like to change Backcolor only for "OFF" value only when the column value of "EIFSTATUS" is "OFF" instead of whole.
I want to change it like the Grid screen below.
private void RadGridView1_CellFormatting(object sender, CellFormattingEventArgs e)
{
if (e.CellElement.ColumnInfo.HeaderText == "EIFSTATUS")
{
if (e.CellElement.RowInfo.Cells["EIFSTATUS"].Value.Equals("OFF"))
{
e.CellElement.DrawFill = true;
e.CellElement.GradientStyle = GradientStyles.Solid;
e.CellElement.BackColor = Color.Red;
}
}
}
I would appreciate your help.