I'm having an issue here. I have a kendo dropdown list that uses a template for the items so that I can have multiple columns. I also need more space so I have bigger list width than the dropdown width; i.e. I used
this.list.width(400);
in dataBound even of the list to make sure I can see the list as it should. Now, I need to add some header, to name the columns of the items so I added:
this.list.find("ul").prepend(header);
in the dataBound event as well. I should clarify that the template I'm using consists of Divs and also, the header HTML is in Divs. the header looks just fine but the dropdown does not work well. When I select first item, 2nd item is selected, and when I select last item, there's an error because it does not find next item. I tried using table in the header HTML but still the same issue. If I only use text (which does not fulfill my need), the dropdown works well. Can anyone tell me why it's happening? Can anyone tell me how to have a header that does not ruin the overall working of dropdown list?
Note: I can't have simple texts, I need to style the header according to the position of the columns in dropdown list.