changing button parameters

Thread is closed for posting
3 posts, 0 answers
  1. Cecil
    Cecil avatar
    15 posts
    Member since:
    Dec 2011

    Posted 07 Oct 2015 Link to this post

    I am developing a new app and have a question.

    I have a view that displays the employees in my company.  You can click on an employees name and 
    be transfered to a second view (see text below).

    On the second view, I will display the employee's name and department,followed by two buttons that 
    allow you to choose what view to see next.

    My question is how do I change the buttons so that I pass the employees badge number to the
    next view?

    <div data-role="view" data-title="Details" data-layout="main" data-init="onInit">

            <ul data-role="listview" data-source="employee" data-template="employee-template" data-style="inset"></ul>

    <a data-role="button">TRAINING COMPLETED</a>
    <a data-role="button">TRAINING NEEDED</a>


    <script id="employee-template" type="text/x-kendo-template">
    <label>#: LastNameFirstName #</label>
            <label>#: DepartmentName #</label>        

        // Load the Employee
        var employee = new{
            type: 'everlive',
            transport: {
                typeName: 'dbo_Employee'
            schema: {
                model: {
                    id: Everlive.idField,
                    fields: {
                        'LastNameFirstName': { defaultValue: '' },
                        'DepartmentName': { defaultValue: '' }
            serverFiltering: true,
            filter: {
                logic: "and",
                filters: [
                    { field: 'CompanyId', operator: 'eq', value: sessionStorage.CompanyId },
                    { field: 'IsActive', operator: 'eq', value: 1 },
                    { field: 'Id', operator: 'eq', value: 1234 }                    

  2. Alexander Valchev
    Alexander Valchev avatar
    2887 posts

    Posted 12 Oct 2015 Link to this post

    Hello Cecil,

    If I understood correctly you would like to provide information about the selected employee to the next view.
    This can be done via query string parameters in the button href or through the navigate method of the application.

    For your convenience I prepared a short example:

    Alexander Valchev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Cecil
    Cecil avatar
    15 posts
    Member since:
    Dec 2011

    Posted 14 Oct 2015 in reply to Alexander Valchev Link to this post

    Thanks Alexander, you're a great help!
Back to Top