@boikom

@boikom

Forum Replies Created

Viewing 15 posts - 556 through 570 (of 878 total)
  • Author
    Posts
  • in reply to: Weird bug with use of 'smart-splitter-bar' component #101039
    admin
    Keymaster

    Hi,
    We would like to suggest you to look at the splitter examples, before trying to use it. The main issue in your scenario is that you should not even try to put a splitter bar because this is done by the splitter component automatically. The splitter bar is an utility component and is auto created and auto removed dynamically and its logic depends on the component which created it. If you create a splitter bar, then it will have not work.
    Regards,
    Peter
    Smart UI Team
    Htmlelements.com

    in reply to: Textbox error on focus #101037
    admin
    Keymaster

    Hi Peter,
    I can’t reproduce it in Codepen with your smart scripts. I have the scripts local, so it’s hard to make an example. Maybe I should try to update the framework, even though I thought that it was up to date. I’ll try.
    The error only occurs with smart-text-box, not with smart-password-text-box.
     
    Thank you and best regards,
    Gerhard

    in reply to: Textbox error on focus #101036
    admin
    Keymaster

    Hi Gerhard,
    This is very strange. Do you have an example which shows this kind of error?
    Also, alternatively you can take a look at Smart.Input which is more simple version of the TextBox regarding the auto-complete and edit modes functionality of the component.
    Best regards,
    Peter Stoev
    Smart UI Team
    https://www.htmlelements.com/

    in reply to: How to add link with routerLink(Angular) in Grid column #101034
    admin
    Keymaster

    Hi Ronak,
    I would suggest the following:
    1. Instead of the link to navigate to a page, make it to call a function.
    2. In that function use the Angular Routing API to handle the click.
    We have a help tutorial about using angular routing which might help you: https://www.htmlelements.com/docs/angular-routing-tabs/
    Best regards,
    Peter Stoev
    Smart UI Team
    https://www.htmlelements.com/

    in reply to: RsJX Observable as data grid data source? #101028
    admin
    Keymaster

    Hi,
    Please, refer to: https://www.htmlelements.com/docs/angular-http-crud/
    Hope it helps you.
    Regards,
    Peter
    Smart UI Team
    Htmlelements.com

    in reply to: How to add link with routerLink(Angular) in Grid column #101026
    admin
    Keymaster

    Hi Ronak,
    Could you share a stackblitz example? You can use this template for your example: https://stackblitz.com/github/htmlelements/smart-webcomponents-angular/tree/master/grid/overview
    Best regards,
    Peter Stoev
    Smart UI Team
    https://www.htmlelements.com/

    in reply to: Minimum 4 Task for Gantt ? #101022
    admin
    Keymaster

    I have used code from here, i have not changed anything  https://www.htmlelements.com/angular/demos/gantt/resource-timeline-mode-diagram
    Just use below JSON as datasource.
     
    <div>
    <div>dataSource: Array<object> = [</div>
    <div>{</div>
    <div>label:’Development’,</div>
    <div>synchronized:true,</div>
    <div>expanded:true,</div>
    <div>disableResources:true,</div>
    <div>type:”project”/* Project */,</div>
    <div>tasks: [</div>
    <div>{</div>
    <div>label:’User Interface Design’,</div>
    <div>dateStart:’2020-02-01′,</div>
    <div>dateEnd:’2020-02-10′,</div>
    <div>progress:0,</div>
    <div>type:”task”/* Task */,</div>
    <div>resources: [{</div>
    <div>id:’megan’,</div>
    <div>label:’Megan’,</div>
    <div>},</div>
    <div>{</div>
    <div>id:’parth’,</div>
    <div>label:’parth’,</div>
    <div>}]</div>
    <div>},</div>
    <div>{</div>
    <div>label:’Controllers & Event’,</div>
    <div>dateStart:’2020-02-10′,</div>
    <div>dateEnd:’2020-02-20′,</div>
    <div>progress:0,</div>
    <div>type:”task”/* Task */,</div>
    <div>resources:’megan'</div>
    <div>}</div>
    <div>]</div>
    <div>}</div>
    <div>];</div>
    </div>

    in reply to: Gantt Chart + Horizontal Scroll #101018
    admin
    Keymaster

    Thanks, will there be a release where this limitation will be handled ? actually,  i have quite few fields against tasks and i am wondering how can i handle this…
     
    Thanks once for prompt reply.

    in reply to: Grid Dancing….. :) #101017
    admin
    Keymaster

    Thanks, i could solve the issue. by removing the <div><div *ngIf=”columns.length>0; else loading;”></div> and moving all properties setting to ngAfterViewInit. however,  i was wondering how do i creating a loading effect on the page while grid is loading data into it…
     

    in reply to: Grid Dancing….. :) #101015
    admin
    Keymaster

    Hi GLMSDev,
    The variable this.grid is undefined, when you try to use it. This basically means that your app.component.html template reference #grid or something else which you use is not bound to a ViewChild in your app.component.ts or the moment when you try to refer to that variable is before the Angular view is initialized. My suggestion would be to take a look and get started from: https://www.htmlelements.com/docs/grid/#angular.
    Best regards,
    Peter Stoev
    Smart UI Team
    https://www.htmlelements.com/

    in reply to: Gantt Chart + Horizontal Scroll #101014
    admin
    Keymaster

    Thanks for the tip. I tried this and it showed me only 4 columns, but i have many more columns in it. also, it just expanded the grid width…and no scroll bar in left side of section

    in reply to: Grid Dancing….. :) #101013
    admin
    Keymaster

    Thanks. How do i make sure that view/grid is loaded properly. at the moment i have put below to make sure, all the columns are loaded properly.
     
    <div>
    <div><div *ngIf=”columns.length>0; else loading;”></div>
    <div><divid=”gridContainer”></div>
    <div><smart-grid[dataSource]=”dataSource”[columns]=”columns”[sorting]=”sorting”</div>
    <div>[filtering]=”filtering”[behavior]=”behavior”[appearance]=”appearance”[onCommand]=”onCommand”#gridid=”grid”></smart-grid></div>
    <div></div></div>
    <div></div></div>
    <div><ng-template#loading>Loading data…</ng-template></div>
    </div>
     

    in reply to: Grid Dancing….. :) #101012
    admin
    Keymaster

    Hi GLMSDev,
    This basically means that a variable called “this.grid” is not defined in your code. You are probably trying to use it before the View is loaded.
    Best regards,
    Peter Stoev
    Smart UI Team
    https://www.htmlelements.com/

    in reply to: Grid Dancing….. :) #101011
    admin
    Keymaster

    Thanks for the prompt reply. I tried now i am getting undefined error “<span style=”text-decoration: underline;”>ERROR TypeError: Cannot read property ‘beginUpdate’ of undefined</span>”
     

    in reply to: Grid Dancing….. :) #101009
    admin
    Keymaster

    Hi GLMSDev,
    Thanks for sharing the information.
    Running the sample I get:

    Error in /turbo_modules/@angular/compiler@7.0.0/bundles/compiler.umd.js (1098:21)
    Unexpected value 'undefined' declared by the module 'AppModule'

    For the performance part, I see that many properties are set dynamically. Please, not that when you need to set multiple properties at once, it is best to call grid.beginUpdate(); before setting the properties and after that use grid.endUpdate();. Otherwise, each setting triggers a new render cycle and instead of 1 render, it ends up with N Renders, where N is the number of property settings.
    Unfortunately, using the provided sample code I was not able to reproduce the described “dancing” behavior on expand/collapse. It could be somehow related to the applied templates to the columns, but as i am unable to run the sample, I cannot test this scenario.
    Best regards,
    Peter Stoev
    Smart UI Team
    https://www.htmlelements.com/

Viewing 15 posts - 556 through 570 (of 878 total)