We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Kanban Card text formatting

Hi,

Is it possible to format Kanban Card text to include carriage return/linefeed (this is vbcrlf in Visual Basic .Net).

I would like to separate some text to appear on a new line instead of it being a continual display using code-behind VB.Net.

Also the 'Title' text inserts spaces as its sees fit to do so , how can I force the Title and Card Content to fit my data without it doing its own formatting ?

Regards,

John


4 Replies 1 reply marked as answer

IS Indrajith Srinivasan Syncfusion Team January 26, 2023 12:38 AM UTC

Hi John,


By default, the header and text content fit the data being configured. Can you please share us few more details regarding your requirements ?


  • Screenshots of your requirements, if any.
  • Online Samples or link for your requirements.
  • Few more explanations, with code blocks regarding the requirement.


Regards,

Indrajith



JF John Fleet January 26, 2023 11:22 AM UTC

Hi, thank you for your reply.

I have attached a screenshot of existing Kanban display and underneath it is a preferred version I am trying to achieve.


As a live (current) example:Go to https://www.newtonabbotanddistrictskittlesleague.org.uk/

Select 'Weekly Fixtures Search' tab

Select 'Mon, 12-Sep-2022' to see example (or any other date to see other examples).


I have tried inserting carriage return/linefeed in to the data string field for 'Title' but Kanban ignores it and formats the title according to whatever formatting rules it uses.

The content formatting is not too important but it would be nice if the title could be formatted according to the data string provided for any given card display (i.e. with VBCRLF and exact number of spaces).

Regards,

John


Attachment: Kanban_formatting_63fb6524.zip


SI Sim January 27, 2023 05:35 PM UTC

Yes, it is possible to format Kanban Card text to include carriage return/linefeed (this is vbcrlf in Visual Basic .Net). You can use the Environment.NewLine property to add a line break in your code-behind VB.Net. To force the Title and Card Content to fit your data, you can use the String.Format() method to format the text as desired.



JF John Fleet January 28, 2023 12:40 PM UTC

Hi Sim,

I tried various combinations of String.Format() , vbcrlf and Environment.Newline and nothing worked at all.

I then tried using <br /" instead of vbcrlf and it worked ... !  example below

                sThisTitle = myReader.GetValue(1).ToString + "<br />" + myReader.GetValue(2).ToString

This seems to imply that Kanban Cards are using HTML to format its contents.

Regards,

John




Marked as answer
Loader.
Up arrow icon