Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9303625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T23:31:43+00:00 2026-06-18T23:31:43+00:00

I have a a basic kendo view and am wondering if there is a

  • 0

I have a a basic kendo view and am wondering if there is a way to access the view.params without using the data-show or data-init to run a js OR if i do use the current functon call on data-show how can i dynamically populate the data elements of my EDIT button?

<!-- eventDetail view -------------------------------------------------------------------------------------------------->
<div data-role="view" id="view-eventDetail" data-show="getEventDetailData" data-title="eventDetail">
    <header data-role="header">
        <div data-role="navbar">
            <span data-role="view-title"></span>
            <a data-align="left" data-role="button" class="nav-button" href="#view-myEvents">Back</a>
            <a data-align="right" data-role="button" class="nav-button" data-click="showEventUpdate" data-event_id="view.params.event_id" data-user_id="view.params.user_id">Edit</a>
        </div>
    </header>

    <div id="eventDetail"></div>
</div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T23:31:44+00:00Added an answer on June 18, 2026 at 11:31 pm

    The best method i have found so far (access view parameters in view) is to use the Kendo ViewModel method – MVVM – and the template – pulling in the view.params from a querystring click:

     <a data-role="button" href="#view-Home?userID=2&userType=1&trainerID=2"> 
    

    Then call a script via the data-show or data-init method of the view and bind the viewModel:

    <!-- =========================================================================================== Home page -->
        <div data-role="view" id="view-Home" data-title="Home" data-show="checkAuth" data-model="home_viewModel" >
    
            <div id="homeWrapper">
    
                <div id="myTrainerInfo" data-template="myTrainerIcon-template" data-bind="source: user_info" ></div>
    
        </div>
    
    
        <!-- ========================================================================================= Home script -->
        <script>
    
                //init the viewmodel            
                var home_viewModel = kendo.observable({
                    user_info: []
    
                });
    
    
            function checkAuth(e) {
                var userID = e.view.params.userID;
                var userType = e.view.params.userType;
                var trainerID = e.view.params.trainerID;
    
                var userData = {userID:userID,userType:userType,trainerID:trainerID};
    
    
                //set the viewmodel data
                home_viewModel.set("user_info", userData);
    
    
            }           
    
        </script>
    

    The vars can then be accessed via ${var_name} or via HTML data-bind=”value: var_name”:

            <!-- ============================================================================== myTrainerIcon template -->
        <script id="myTrainerIcon-template" type="text/x-kendo-template">
    
            <div id="myTrainerIcon" class="homePageIcons">
                <a data-role="button" href="\\#view-trainerDetail?user_id=${userID}&amp;trainer_id=${trainerID}">
                    <img src = "styles/icons/myTrainerICON.png" alt="myTrainer" />
                </a>
                <div class = "icon-text" >myTrainer</div>
            </div>
    <div>TrainerID: <input name="edit_id" id="edit_id" data-min="true" class="k-input" data-bind="value:     trainerID" type="text" /></div>
        </script>
    

    Im sure there is a different way to do this but so far nothing i have discovered on my own..

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have basic push notifications sending to my application. I was wondering if there
I have basic Spring MVC 3 setup for i18n where I can show labels
I'm using node, express and connect for a simple app and have basic HTTP
I have an MVC4 view that hosts a Kendo ListView. The ViewModel contains the
Do you recommend learning C++ using a template? Edit I have basic programming language
My client wants to store basic relational data in Access. So far, so good.
I have basic tabs setup using JqueryUI (simplified to only the two tabs relevant)
I have basic authentatication working with REST API using curl: curl -X POST -H
I have basic idea on Kilo Virtual Machine on Mobiles , I have clear
I have basic hello word example of Prime Faces. I have created dynamic web

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.