Export selected Items in unigrid - Kentico 8

Naresh Ede asked on December 14, 2017 08:20

Hi Guys,

I'm using Kentico 8.

I had Used unigrid with selection boxes enabled in xml definition.

Now I want export the records selected in unigrid to excel.

Unigrid.SelectedItems is just returning the List(string> i.e First column values.

So any default ways to export the selected items in unigrid, or i have to query the database again and do Export the data.

Thanks

Recent Answers


David te Kloese answered on December 14, 2017 09:58

I'd say have a look in the ExportData method which you can find in ...\CMSAdminControls\UI\UniGrid\Controls\AdvancedExport.ascx.cs.

This should give you a start how to include only your selected items.

0 votesVote for this answer Mark as a Correct answer

Peter Mogilnitski answered on December 14, 2017 16:17

Image Text

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.