I have one ASP.NET TreeView control and I'm displaying it in Bootstrap modal dialog using iframe, it is displaying properly but if I collapse/expand any treenode checkbox which contains child nodes it is not collapsing/expanding.
If I display this TreeView control in normal HTML page(not in iframe) it is working fine, only in iframe it is not expanding/collapsing.
I suggest you to post your full code. we will try to make a test with it to check the issue.
Regards
Deepak
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Even I tried creating TreeView in new page and appending it to iframe and I have noticed that if I call it new page then the collapse/expand icon is calling TreeView_ToggleNode() and if directly append this to modal using $("#div").html() then it calling __doPostBack('treeEditRes','tPages')
function.
I have created a small gif image for both scenarios first calling it in new page & second appending it to modal body
using .html(), please have a look it and suggest me how to fix this within the same page using html().
you had mentioned that,"Even I tried creating TreeView in new page and appending it to iframe".
if you are already creating a new page then is it necessary to use an iframe?
Regards
Deepak
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
The reason why I want to display in it in iframe is I want to access the TreeView control in code behind.
Now I created it in new page and accessing TreeView control using some other logic, no issues now, just some extra code I have added to access it in code behind.
Member
1 Points
14 Posts
ASP.Net TreeView control Expand/Collapse not working when opened in iframe
Nov 23, 2017 11:14 AM|Abhishek Hotte|LINK
Hi,
I have one ASP.NET TreeView control and I'm displaying it in Bootstrap modal dialog using iframe, it is displaying properly but if I collapse/expand any treenode checkbox which contains child nodes it is not collapsing/expanding.
If I display this TreeView control in normal HTML page(not in iframe) it is working fine, only in iframe it is not expanding/collapsing.
Even I added events for Expand & Collapse if I expand/collapse node it is triggering those events but it is not expanding/collapsing.
Please suggest me if the above code requires any changes.
Abhishek Hotte
Contributor
2550 Points
1066 Posts
Re: ASP.Net TreeView control Expand/Collapse not working when opened in iframe
Nov 24, 2017 06:04 AM|Deepak Panchal|LINK
Hi Abhishek Hot...,
I can see that you are using Bootstrap model dialog.
but you did not posted the full code. so we don't know that what actually you are doing in your code.
I try to make a test with TreeView Control and Iframe.
I put TreeView in onepage and load that page in Iframe working correctly.
Webform2.aspx:
Webform1.aspx:
I suggest you to post your full code. we will try to make a test with it to check the issue.
Regards
Deepak
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
1 Points
14 Posts
Re: ASP.Net TreeView control Expand/Collapse not working when opened in iframe
Nov 27, 2017 12:24 PM|Abhishek Hotte|LINK
Hi Deepak,
I created TreeView control in one div and I'm appending this div html in the bootstrap modal body
Once I bind the TreeView control I'm calling one javascript function to load this entire id html into bootstrap modal body
Even I tried creating TreeView in new page and appending it to iframe and I have noticed that if I call it new page then the collapse/expand icon is calling TreeView_ToggleNode() and if directly append this to modal using $("#div").html() then it calling __doPostBack('treeEditRes','tPages') function.
I have created a small gif image for both scenarios first calling it in new page & second appending it to modal body using .html(), please have a look it and suggest me how to fix this within the same page using html().
Abhishek Hotte
Contributor
2550 Points
1066 Posts
Re: ASP.Net TreeView control Expand/Collapse not working when opened in iframe
Dec 01, 2017 07:54 AM|Deepak Panchal|LINK
Hi Abhishek Hot...,
you had mentioned that,"Even I tried creating TreeView in new page and appending it to iframe".
if you are already creating a new page then is it necessary to use an iframe?
Regards
Deepak
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
1 Points
14 Posts
Re: ASP.Net TreeView control Expand/Collapse not working when opened in iframe
Dec 04, 2017 05:36 AM|Abhishek Hotte|LINK
Hi Deepak,
The reason why I want to display in it in iframe is I want to access the TreeView control in code behind.
Now I created it in new page and accessing TreeView control using some other logic, no issues now, just some extra code I have added to access it in code behind.
Any way thanks for your response.
Abhishek Hotte