Telerik Forums
Kendo UI for jQuery Forum
7 answers
713 views
Hello,

I want to be able to edit in a grid. That is not a problem.
But for example I have an order line and in a dropdownlist I choose a product.
On product change want one or more other (editable) fields to be updated, e.g. the product description and price.
So on product change I want to have an event calling the server and then updating some fields of the row which is currently in edit mode.
Hope it is a bit clear what I mean.

Any hints how to do that?

Thanks, Jaap
Edwin
Top achievements
Rank 1
 answered on 03 Jul 2012
1 answer
129 views
hi,
To display the image in the list view dynamically,
in the view i used the image tag like:<img src="@Url.Action("GetImage/${ID}", "Home")"  alt = "${name} image" />
how can i pass this value dynamically to the controller and the url is not identifying the special characters.
Sim
Top achievements
Rank 1
 answered on 03 Jul 2012
3 answers
1.1K+ views
Currently when I bind to a ListView that has no data - I get what looks like an <hr />...  Is there a way to set a "No Records" template to use if there are no items to display in the dataset?
Georgi Krustev
Telerik team
 answered on 03 Jul 2012
1 answer
151 views
Hii,

Here is my code for kendo ui listview but the problem is that the list view is not going to bind.


<div id="example" class="k-content">


    <div id="listView"></div>


    <div class="k-pager-wrap">
        <div id="pager"></div>
    </div>


    <script type="text/x-kendo-tmpl" id="template">
        <div class="product">
            
            <h3>${Category_ID}</h3>
            
        </div>
    </script>


    <script>
        $(document).ready(function () {
            var dataSource = new kendo.data.DataSource({
                transport: {
                    read: {
                        url: "/Admin/AddCategory/GetCategoryList", 
                        dataType: "jsonp"
                    }
                },
                pageSize: 12
            });


            $("#pager").kendoPager({
                dataSource: dataSource
            });


            $("#listView").kendoListView({
                dataSource: dataSource,
                template: kendo.template($("#template").html())
            });
        });
    </script>
</div>


Below is the result with comes out when i execute this url:

[{"Category_ID":1,"CategoryName":"Programming Jobs"},{"Category_ID":2,"CategoryName":"Design Jobs"},{"Category_ID":3,"CategoryName":"Writing Jobs"},{"Category_ID":4,"Cate


I dont know what is the error going on.....

can you please help me 

Thanx
Sim
Top achievements
Rank 1
 answered on 03 Jul 2012
7 answers
457 views
Hi There,

i have a oData WCF v2 pointing to an Openaccess entities set. the issue i'm having is that i'm unable to link (expand) it's relational classes within the datasource call, I get "null" and Undefined" returned when trying to call the field of the relational classes

SVC:
[System.ServiceModel.ServiceBehavior(IncludeExceptionDetailInFaults = true)]
    [JSONPSupportBehavior]
public partial class SQZEntitiesService : OpenAccessDataService<Sequentia.SQZEntities>
{
   /// <summary>
   /// Initializes the service.
   /// </summary>
   /// <param name="config">The configuration object.</param>
   public static void InitializeService(DataServiceConfiguration config)
   {
       config.SetEntitySetAccessRule("URLs", EntitySetRights.All);
       config.SetEntitySetAccessRule("TACs", EntitySetRights.All);
       config.SetEntitySetAccessRule("Offers", EntitySetRights.All);
       config.SetEntitySetAccessRule("IncomingActivityInfos", EntitySetRights.All);
       config.SetEntitySetAccessRule("FormReportData", EntitySetRights.All);
       config.SetEntitySetAccessRule("FormData", EntitySetRights.All);
       config.SetEntitySetAccessRule("DefaultChannelTypes", EntitySetRights.All);
       config.SetEntitySetAccessRule("DecisionStages", EntitySetRights.All);
       config.SetEntitySetAccessRule("ChannelTypes", EntitySetRights.All);
       config.SetEntitySetAccessRule("ChannelInfos", EntitySetRights.All);
       config.SetEntitySetAccessRule("CaptureObjectValues", EntitySetRights.All);
       config.SetEntitySetAccessRule("CaptureObjectProperties", EntitySetRights.All);
       config.SetEntitySetAccessRule("CaptureObjects", EntitySetRights.All);
       config.SetEntitySetAccessRule("Activities", EntitySetRights.All);

       // TODO: Set service behavior configuration options
       // Examples:
       // config.DataServiceBehavior.AcceptCountRequests = true;
       // config.DataServiceBehavior.AcceptProjectionRequests = true;
       config.DataServiceBehavior.MaxProtocolVersion = DataServiceProtocolVersion.V2;
            
   }
}

Grid DS:
<script>
                $(document).ready(function () {
                    $("#grid").kendoGrid({
                        dataSource: {
                            type: "odata",
                            transport: {
                                read: {
                                    url: "/DesktopModules/SQZWCF/SQZEntitiesService.svc/Activities",
                                    data: {
                                        expand: "TAC,Offer"
                                    }
                                }
                            },
                            schema: {
                                model: {
                                    fields: {
                                        ActivityID: { type: "number" },
                                        TACID: { type: "number" },
                                        Date: { type: "date" },
                                        ChannelTypeID: { type: "number" },
                                        Offername: { type: "text" }
                                    }
                                }
                            },
                            pageSize: 10,
                            serverPaging: true,
                            serverFiltering: true,
                            serverSorting: true
                        },
                        height: 250,
                        filterable: true,
                        sortable: true,
                        pageable: true,
                        columns: [{
                            field: "ActivityID",
                            filterable: false
                        },
                            "TACID",
                            {
                                field: "Date",
                                title: "Date",
                                width: 200,
                                format: "{0:MM/dd/yyyy}"
                            },
                            "ChannelTypeID",
                            "Offername"


                        ]
                    });
                });
            </script>
Daniel
Telerik team
 answered on 03 Jul 2012
1 answer
197 views
I've been trying to configure a dropTarget to accept multiple groups. I've tried using group names separated by commas, I've tried using arrays. Nothing seems to be working.

What is the correct syntax, or is this not supported?
Alexander Valchev
Telerik team
 answered on 03 Jul 2012
3 answers
316 views
@(  Html.Kendo().Grid(Model.Notifications)
        .Name("gridTitanNotifications")
        .Columns(columns => {
            columns.Template(
                @<text>                   
                    <input name="chkNotifications" type="checkbox" value="@item.InstanceID " title="checked notification"/>               
                </text>).Title("").Width(36);
 
            columns.Bound(m => m.NotificationText).Title("Notification");
 
            columns.Template(m => {
                switch (m.LinkType) {
                    case Titan.Entities.Enums.Notification.LinkTypes.Internal:
                        Html.ActionLink("TEST", "test");
                //                      Html.ActionLink(m.LinkText, m.LinkAction, m.LinkController, new { instanceID = m.LinkInstanceID });
                        break;
                    case Titan.Entities.Enums.Notification.LinkTypes.External:
                        break;
                }
            }).Title("Case");
 
            //          columns.Bound(m => m.LinkText).Title("Case");
            columns.Bound(m => m.TimestampCreated).Title("Recieved");
        })
 
                                .RowAction(row => {
                                    if (!row.DataItem.ReadFlag) {
                                        row.HtmlAttributes["style"] = "font-weight: bold";
                                    }
                                })
                        )
Rosen
Telerik team
 answered on 03 Jul 2012
3 answers
325 views
Hi Team,

I want my line chart to start ploting from 1000 value default. Please see attached image.
No matter what is comming from database.

Urgent response will be appreciated.

Thanks,
Mohsin
Mohsin
Top achievements
Rank 1
 answered on 03 Jul 2012
0 answers
82 views
Hi 

I have been browsing the web for two days to find a solution for this issue, including this forum, and I could not find the solution.

I have built a WCF Restful Service based on an example, which returned a "valid json response", but not.

The first attempt was to serialize an object and then return it.
The result was a string that looked like json but which was in fact a string containing the json information:
"{jasonstring}"
This obviously did not work.
The way to detect it is to inspect the client-page in the browser, and look in the network tab, where the json output is printed.

The second attempt was to get rid of the outer-quotes.
In several discussions on the web it is recommended to serialize the object, and to stream it (defining the object as void) instead of returning it as a string. The quotes are gone, and json/validation sites do qualify the output as valid.
Nevertheless my Kendo grid did not populate.

The third attempt was to get rid of the streaming, based upon a discussion on stackoverflow (http://stackoverflow.com/questions/2086666/wcf-how-do-i-return-clean-json).
The advice in this discussion is to return the object as such, without any manipulation.
As long as the output of the webmethod is defined as json, ASP.NET will create a json string from the object,
And this worked.

example from the thread:

[WebInvoke(Method = "GET",
           
RequestFormat = WebMessageFormat.Json,
           
ResponseFormat = WebMessageFormat.Json,
           
UriTemplate = "players")]
public List<Person> GetPlayers()
{
   
List<Person> players = new List<Person>();
    players
.Add(new  Person { FirstName="Peyton", LastName="Manning", Age=35 } );
    players
.Add(new  Person { FirstName="Drew", LastName="Brees", Age=31 } );
    players
.Add(new  Person { FirstName="Brett", LastName="Favre", Age=58 } );

   
return players;
}


I hope that this thread will help all of you to find your solution earlier than I did.

KR

Henk Jelt




Henk Jelt
Top achievements
Rank 1
 asked on 03 Jul 2012
1 answer
291 views
I wonder if there is any current UI control similar to these:

http://harvesthq.github.com/chosen/ 

http://ivaynberg.github.com/select2/ 

I really want to limit the number of jquery plugins and libraries that I use. 

BOb
Iliana Dyankova
Telerik team
 answered on 03 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?