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
close icon

align list box items to the right

How can align list box items to the right because I implement Arabic site
Thanks and Regards 



3 Replies

TH Thivya Syncfusion Team May 27, 2013 11:39 AM UTC

Hi Yara,

Please find the below code snippet to make the content of the list item to be position at the right side.

//Stylesheet
.sf-m-lb .sf-item
{
    float: right;
}

//View Page
@Html.Orubase().ListBox("Listbox").BindDataSource(Model, map =>
{
    map.MapTo<Application.Controllers.Product>(binding =>
    {
        binding.ItemDataBound((item, nd) =>
        {
            item.Html = "<div class='sf-item'>" + nd.Text + "</div>";
        });
    });
})

Please try this and let us know if it works.

Regards,
Thivya.



YA Yara May 28, 2013 03:06 AM UTC

thank you very much for your response
it Worked for me

Yara


TH Thivya Syncfusion Team May 28, 2013 05:21 AM UTC

Hi Yara,

We are glad to hear it helps. Please let us know if you need any further assistance.

Regards,
Thivya.

Loader.
Live Chat Icon For mobile
Up arrow icon