Append an array once its loading a HTML page to RTE Content

  •  10-14-2015, 7:29 AM

    Append an array once its loading a HTML page to RTE Content

    I have following method

     

    1. [HttpGet]  
    2. [ValidateInput(false)]  
    3. public ActionResult Create_Brochure(IEnumerable<ProductsPropertiesVM> model)  
    4. {  
    5.     // to access to all the ID's of the selected items, for example  
    6.     IEnumerable<int> selectedIDs = model.Where(x => x.IsChecked).Select(x => x.Property_ID);  
    7.   
    8.   
    9.     PrepairEditor(delegate (Editor editor)  
    10.     {  
    11.         editor.LoadHtml("~/brochuretemplates/myhtml.html");  
    12.     });  
    13.       
    14.     return View();  
     Once I send IEnumerable<ProductsPropertiesVM> model I can filter some selectedIDs

     

    Once I run this on debug mode normally those selectedIDs appear like this 

     

     

    So I need to send those selectedIDs to myhtml.html file

     

    if ask that in another way ,

    (if I consider this selectedIDs can send as an array)  

    I want to know how we can append above selectedIDs array with editor.LoaHtml("path") .

     

    If you not clear what I'm saying please let me know.

     

    simply I want to send some array or parameters once Its loading the HTML file as RTE content  

    Filed under: ,
View Complete Thread