Solved

Help with Kendo UI Asp.net

Posted on 2014-02-21
7
879 Views
Last Modified: 2014-03-06
Hello Experts,
I am new to Kendo UI and trying to learn.
Requirement:
User can post the message to the community members
While posting message he will select Public/ Private (same as on facebook)
For private user will select particular members
User can upload image.
While posting message, it is optional for the user to send text message or upload image or both.


<div class="demo-section">
                <h2>
                    My Society Members</h2>
                <label for="required">
                    Members</label>
                <select id="reqChat" multiple="multiple" data-placeholder="Select members..." class="mySelect">
                </select>
                <label for="address" class="required">
                    Address</label>
                <textarea type="address" id="txtMessage" name="Message"  rows="10" cols="30" style="width:100%;height:100px" class="k-textbox" placeholder="Type your message here"></textarea>
                <button class="k-button" id="getChat">
                    Send Message</button>
            </div>

Open in new window


 var reqChat = null;

                    $.ajax({
                        url: "api/LocalContact",
                        contentType: "json",
                        success: function (data) {
                            $.each(data, function (index, item) {
                                $("#reqChat").append('<option>' + item.Name + '</option>')
                            });
                            reqChat = $("#reqChat").kendoMultiSelect().data("kendoMultiSelect");
                            var all = $.map(reqChat.dataSource.data(), function (dataItem) {
                                return dataItem.value;
                            });
                            reqChat.value(all);
                        }
                    });

                    $("#getChat").click(function () {
                        alert("Attendees:\n\nRequired: " + reqChat.value());
                        return false;
                    });

Open in new window


Currently all users are selected by default in Multiselect.

What I really worried about is file upload.

Your help is really appreciated. Thanks in advance
0
Comment
Question by:johny_bravo1
  • 4
  • 3
7 Comments
 
LVL 82

Expert Comment

by:leakim971
ID: 39879232
The documentation look fine for me : http://demos.telerik.com/kendo-ui/web/upload/index.html

Please let me see how you integrate it in your page and if you've any problem, what is the issue you're encountering.
0
 
LVL 8

Author Comment

by:johny_bravo1
ID: 39879428
Hello  leakim971,

Thanks for the link.

What my problem is,  I need to implement Asynchronous Upload. But the upload should start after button click. Currently it is starting as soon as user selects file.

User will optionally enters the message in the textbox. Optionally select file to upload.And on Submit button both this message and image should be saved.

Any way to enter the message and asynchronous file upload on my button click
0
 
LVL 82

Expert Comment

by:leakim971
ID: 39879439
On the demo, it doin't start as soon the user select it.
that's why I asked you to provide a link to your page to see how you code it.
0
How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

 
LVL 8

Author Comment

by:johny_bravo1
ID: 39879470
Hi currently not having access to my code.

Please check
http://demos.telerik.com/kendo-ui/web/upload/async.html
0
 
LVL 82

Expert Comment

by:leakim971
ID: 39882396
Why do you want this page instead mine ?
0
 
LVL 8

Author Comment

by:johny_bravo1
ID: 39906384
Hi leakim971,

The link you given refreshes the whole page when files is uploaded.

The other link which I posted works asynchronously.

Please check the demos.Or is there something I am missing
0
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 39907044
In your page, did you look at : autoUpload: true
And tried to change it to false

http://docs.telerik.com/kendo-ui/api/web/upload
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
edit .asp files 5 29
Asp in server side with Mssql Server 7 4 27
Start Auto-download of File when page loads? 1 20
html border input line 7 13
Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question