Link to home
Start Free TrialLog in
Avatar of Johny Bravo
Johny Bravo

asked on

Help with Kendo UI Asp.net

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
Avatar of leakim971
leakim971
Flag of Guadeloupe image

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.
Avatar of Johny Bravo
Johny Bravo

ASKER

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
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.
Hi currently not having access to my code.

Please check
http://demos.telerik.com/kendo-ui/web/upload/async.html
Why do you want this page instead mine ?
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
ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial