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 8244939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T22:01:31+00:00 2026-06-07T22:01:31+00:00

May be the title is not as clear as i would like it to

  • 0

May be the title is not as clear as i would like it to be. i’ve been using kendo ui for a contact management system and i need to prepend the loaded(via ajax) groups for a particular user by say “all Contacts” with value = -1. this is an option to delete all contacts which is actually a group but not stated so in the database. so at the point the dropdownlist finishes loading we should have options like (group 1, group 2 ,group 3 loaded from ajax call, all contacts added manually):

all contacts
group 1
group 2 
group 3

below is my code which works fine, loading the groups for a user.

$("#groupCombo").kendoDropDownList({
                placeholder: "all contacts",
                dataTextField: "NAME",
                dataValueField: "GROUP_ID",
                dataSource : {
                    transport:{
                       read: {
                            url: crudServiceBaseUrl+"subscribers/readgroups", 
                            dataType: "json",
                            data: {
                              userId: dataItem.USER_ACCOUNT_ID
                            }
                        } 
                    }
                }
            });   

How can i achieve that? thanks for reading this.

  • 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-07T22:01:32+00:00Added an answer on June 7, 2026 at 10:01 pm

    The datasource has an inserts function which inserts a new model instance to the datasource.

    // insert a new model item at the very front of the collection
    $("#groupCombo").data('kendoDropDownList').dataSource.insert(0, { GROUP_ID: -1, NAME: "all contacts" });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The title may not seem very clear - was not sure how to explain
Sorry the title may not be very clear. Basically I have a wrapper for
my title may not be clear. But basically what I want to do is:
May be my title is not clear. I am looking for some kind of
Ok Title may not be clear so let me explain. I have 2 classes,
this title may not best describe my problem. I'm using Netbean GUI builder to
As the title may be slightly ambiguous or not clear, I'll first explain what
In advance, I apologize if the question title may not be be convenient. I'm
That title may need some work. Perhaps after reading this, you may be able
The title may have been confusing, but please let me explain: Currently when I

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.