HI all.
I am a fairly new Blazor and Syncfusion user, and am therefore still trying to wrap my head around all of it, and while project templates work flawlessly to show use case, I cannot seem to figure out this dashboard layout component.
I am trying to make use of the dashboard as a way to display multiple twitter and other social media feeds one next to another one, and have not had much success with it.
I am loading the https://platform.twitter.com/widgets.js file from static local storage inside the _Host.cshtml file, and then try to display the twitter feed inside the first panel of the dashboard, by adding it into the contenttemplate element like this:
<DashboardLayoutPanel Column="0" Row="0" >
<ContentTemplate>
<div>
<a hidden class="twitter-timeline" data-width="100%" data-height="100%" data-theme="dark" rel='nofollow' href="https://twitter.com/ecomi_?ref_src=twsrc%5Etfw">Tweets by ecomi_</a>
</div>
</ContentTemplate>
</DashboardLayoutPanel>
This produces an iframe element filling up the layot panel, with appropriate scroll bars, however it causes issues with controlling the dashboard panel itself:
When resizing, mouse down event registers in the bottom-right corner and when moved, mouse position and movement is not detected if mouse is hovering on top of the content that resides inside the panel. So it is easy to enlarge it, but can only be sized back down if mouse is moved out of the content area across the panel.
The panel also cannot be moved, it seems that iframe hijacks mouse focus and events entirely.
I tried to add events OnResizeStart and OnResizeStop to hide the content while moving it, but wasn't successful in finding a way to hide the content of the panel. Even if, this would not solve the moving issue.
Is there an elegant way to solve this, and how would you propose to handle such a case?
I have seen you have been absolutely fabulous and engaged in helping providing by far the best support I have seen online so far, with code samples, focusing on each issue and question and trying to do your best to help your users out. I really appreciate that, and its really nice to see some still care for that, instead of using generic replies and never-working troubleshooting steps that have zero relation to the original questions.
Any help would be appreciated, and at the same time, I'd appreciate finding some good online resources regarding possibilities and use cases for your components in Blazor framework (server side, at this time).
Also, the .e-panel { transition:none!important;} trick found here was a very helpful information!
Your default sample do indeed look like lagging and not moving smooth, so I do agree with what was said there - For the sake of people who don't research these things as we do, you might reconsider including it in default sample as to get the best performance and still very good looking dashboard layout component, which is unmatched from what I researched!
Thank you,
B
iframe{
pointer-events: none;
} |