Dropdown with translated categories


I know I can have translated categories, adding to language xml file:

        CategoryName translated



How would be the correct way to display child translated categories from one selected parent in a dropdownlist???? Either in edit or user mode....

Best Regards

Nov 17, 2015 13:18

It's as easy as using:

@Html.DropDownListFor(x => x.CategoryList1,
             new SelectList(Model.CategoryList1, "ID""LocalizedDescription"))

I was not aware of "LocalizedDescription".

And in Resources\LanguageFiles\Viwews.xml:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
  <language name="dutch" id="nl">
      <category name="CategoryName">
        <description>CategoryName translated</description>


Edited, Nov 17, 2015 15:28
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.