Renderpartial Items Ids

Hello,

i have just developed one view, where i use a dynamic modal-view and the content of the modal i am generating with “renderPartial”. The problem is, that the widget id’s in renderView are the same as in the general view, and because of this, jquery is doing stupid things. Does anyone know how to set the IDs by buttons or how to solve this problem?

------ Found the solution

If someone is using "Bootstrap" in Yii, the solution is to add following like to the generation of the button:


	/**

	 * Creates the button element.

	 * @return string the created button.

	 */

	protected function createButton()

	{

		[i][b]$this->htmlOptions['id'] = $this->id;[/b][/i]