Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Hierarchy table tree node only can expand,but can't shrink
04/08/2010
07:44
Avatar
Eric Wang
New Member
Members
Forum Posts: 1
Member Since:
04/08/2010
sp_UserOfflineSmall Offline

In some situation, the Hierarchy table tree node  only can expand,but can't shrink, the firefox console always report the $b.p is undefined when I click the tree node, I use the ASP.NET MVC jqgrid, I found the reason cause this issue is the sub grid set the ShowSearchToolBar = true, if I remove the statement in sub grid setup code, it work fine.

The following code is my hierarchy table setting for reference.

public SurveyQuestionGrid()

{

QuestionGrid = new JQGrid

{

Width = Unit.Pixel(740),

ToolBarSettings = new ToolBarSettings

{

ToolBarAlign = ToolBarAlign.Left,

ToolBarPosition = ToolBarPosition.Bottom,

ShowDeleteButton = true,

ShowRefreshButton = true,

ShowSearchButton = true,

ShowSearchToolBar = true,

ShowAddButton = true,

ShowEditButton = true

}

,

SearchDialogSettings = new SearchDialogSettings { MultipleSearch = true }

};

var questionColumns = new List<JQGridColumn>

{

new JQGridColumn{DataField = "QuestionID", Visible = false,PrimaryKey = true},

new JQGridColumn

{

DataField = "Question"

,Searchable = true

,DataType = typeof(string)

,SearchToolBarOperation = SearchOperation.Contains

,Editable = true

,EditType = EditType.TextArea

,EditFieldAttributes = {new JQGridEditFieldAttribute{Name = "style",Value = "width:150px;height:50px"} }

},

};

QuestionGrid.Columns = questionColumns;

OptionGrid = new JQGrid

{

Width = Unit.Percentage(100),

Height = Unit.Percentage(100),

ToolBarSettings = new ToolBarSettings

{

ToolBarAlign = ToolBarAlign.Left,

ToolBarPosition = ToolBarPosition.Bottom,

ShowDeleteButton = true,

ShowRefreshButton = true,

ShowSearchButton = true,

ShowSearchToolBar = true, //if insert this statement the error will be hit, if remove it, everything work fine. 

ShowAddButton = true,

ShowEditButton = true

}

,

SearchDialogSettings = new SearchDialogSettings { MultipleSearch = true }

};

var optionColumns = new List<JQGridColumn>

{

new JQGridColumn{DataField = "OptionID", Visible = false,PrimaryKey = true},

new JQGridColumn

{

DataField = "QuestionOption1"

,Searchable = true

,DataType = typeof(string)

,SearchToolBarOperation = SearchOperation.Contains

,Editable = true

,EditType = EditType.TextArea

,EditFieldAttributes = {new JQGridEditFieldAttribute{Name = "style",Value = "width:150px;height:50px"} }

}

};

OptionGrid.Columns = optionColumns;

}

Last, thank you for your effort on this plugin, it helps me a lot. 

Best regards

Eric Wang

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
37 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information