Hi, In this I will be demonstrating, how we can set the default tab in kendo-tabstrip conditionally. Scenario : We have a grid, which has several columns. The grid is read-only (means, we cannot edit on the grid). There is one hyperlink and two buttons (total 3) in every line-item. On click of those controls, we have to open a popup where we can update the static data. Now the kendo-popup has 3 tabs.(let's say tab1 , tab2 and tab3 ) Now, the challenge is we have to set each tab default for each control (3 tabs for 3 controls). Solution : We used @HostListener to overcome this challenge. We used two boolean variables for this. Below is the code snippet @ HostListener ( "click" ) opentab1 () : void { this .isTab2 = false ; this .isTab3 = false ; } @ HostListener ( "click" ) opentab2 () : void { this .isTab2 = true ; this .isTab3 = false ; } @ HostListener ( "click" ) opentab3 ()...
Introduction: In the world of programming languages, Rust stands out as a robust and powerful choice for building safe and efficient software. One of the key features that make Rust unique is its concept of "traits." If you're new to Rust or looking to deepen your understanding, let's explore traits in a way that everyone can relate to – by comparing them to human characteristics! Traits: The Essence of Human-Like Qualities In our everyday lives, we encounter a wide range of human characteristics or qualities, such as being punctual, organized, and efficient. In Rust, traits play a similar role; they define a set of behaviors that a particular type must possess. Think of traits as blueprints for specific qualities that a type should exhibit. Implementing Traits: Unleashing Your Professional Side Imagine you work in an "OFFICE" – a professional setting where certain expectations and behaviors are required. Just like individuals demonstrate their trai...
Comments
Post a Comment