Telerik Forums
Kendo UI for jQuery Forum
1 answer
785 views

Hello,

Like the title says i am trying to show tooltip only on rows that exist in my array. I have a kendo grid with a checkbox, whichever checkbox the user clicks on i am storing that row in my $ctr.selectedRows[];

The example i have below, the tooltip shows up on all rows when they go back to their selection grid. I am either missing something, doing this wrong, or both.

        $("#grid").kendoTooltip({
          show: function(e){
            $ctr.selectedRows.forEach((element) => {
       this.content.parent().css("visibility", "visible");
            })
          },
          hide:function(e){
            this.content.parent().css("visibility", "hidden");
          },
          filter: "td:nth-child(1)", //this filter selects the first column cells
          position: "center",
          content: function(e){
            var dataItem = $("#grid").data("kendoGrid").dataItem(e.target.closest("tr"));
            var content = "Currently we have " + dataItem.UnitsInStock + "  " + dataItem.ProductName +"in stock";
            return content;
          }
        }).data("kendoTooltip");

 

Martin
Telerik team
 answered on 01 Jul 2020
3 answers
677 views

Hi,

 

I've updated several items within two of the column fields in my kendo grid.  Of course, the data is pulled from a DB via a stored procedure in Entity Framework.

I am using the multi - true and search - true attributes for the filterable option in my grid.  The new values are there; however, when I select a value, it does not filter.  If I use just filterable: true without the multi feature, it does in fact filter.

I've tried to to reset using the setDataSource method and numerous other methods.  Is there a way to reset or perhaps clear the old values.

Thank you

Georgi
Telerik team
 answered on 01 Jul 2020
2 answers
5.3K+ views
I have a kendo grid contains a list of people.  I would like to add a kendo tooltip to each row so that, in essence, a detail view for the selected row will be shown in the tooltip.  To do this I need to call a web service method when the tooltip is loaded, passing in the key value of the row, then I use a template to layout the content of tooltip.  I'm a bit stuck trying to figure out where to pass the key value of the row to the tooltip...  I'm doing this in pure javascript, so no server-side code is used at all.  The web service call to get the details must be a POST, not a GET, if that makes any difference...?

Here's what I have, which isn't even close to working (the grid populates fine, but the tooltips aren't working):

$grid.kendoGrid({
 dataSource: dsPeople,
 scrollable: { virtual: true },  
 height: 600,
 resizable: true,
 selectable: "row",
 pageable: true,
 dataBound: function(e) {
  $("#grid").find("tr").kendoTooltip({
   content: People.GetPerson(e.data.Xref, 6012, '127.0.0.1', 'netname'),
   width: 680,
   height: 120,
   position: "bottom",
  });
 },
 columns: [
  { field: "FullName", title: "Name", groupable: false, resizable: true },
  { field: "StreetAddress", title: "Address", groupable: false, resizable: true },
  { field: "Sex", title: "S", groupable: true, resizable: false, width: 30 },
  { field: "Race", title: "R", groupable: true, resizable: false, width: 30 },
  { field: "Height", title: "Ht", groupable: false, resizable: false, width: 40 },
  { field: "Weight", title: "Wt", groupable: false, resizable: false, width: 40 },
  { field: "Age", groupable: true, resizable: false, width: 40 },
  { field: "DOB", groupable: false, resizable: false, format: "{0:MM/dd/yyyy}", width: 90 },
  { field: "Xref", title: "XREF", groupable: false, resizable: true, width: 70 }
 ],
 mobile: true
});

Can anyone point me to an example where something like this is being done?

Thanks!
Eddie
Misho
Telerik team
 answered on 01 Jul 2020
1 answer
80 views

Hello!

I'm struggling with a problem when I am trying to build a chart with data, somehow the line doesn't overlap. 

Of course I am using the stack function as false by default ($seriesDefaults = new \Kendo\Dataviz\UI\ChartSeriesDefaults();
        $seriesDefaults->type($chartType)->stack(false)), but I see no difference.

Here is the data which I am using to fill the chart.

I think I miss something.

Any suggestion will help.

Thank you!

Regards,
Alexandru - Paul

 

 

Nikolay
Telerik team
 answered on 01 Jul 2020
3 answers
271 views

Can someone help me - try as I might I am unable to get the current visible date range displayed on the MultiViewCalendar.

I am clearly missing something but have been over the doco and can not find this.

Our application needs to load data based on the current range of dates visible.

I have it in month with 2 views so need to know the first date and last date of the display range.

I am sorry as I am sure this is super easy.

 

Thanks in advance.

 

Tsvetomir
Telerik team
 answered on 01 Jul 2020
1 answer
98 views
Hello Telerik Community,
I am currently working on a project which has a usecase as shown in image. The data is present in JSON which is rendered as in image. On Click of "+" button, i can add new Action just below the arrowhead of the "+" button. I was wondering if this use case is solvable using KendoReact ?
Any help would be highly appreciated.
Stefan
Telerik team
 answered on 01 Jul 2020
2 answers
710 views

Is there a way to assign an ID to a selectable column? Using Test Studio, it is a real challenge without writing code, to identify which columns was clicked as when you have multiple rows, they all have no ID (or any other way to identify them). Having an ID would fix that and if these columns would actually allow a template - which it seems they do not - we could do other nice things, icluding IDs

 

Matt

Matt
Top achievements
Rank 1
Veteran
 answered on 30 Jun 2020
4 answers
304 views

Hi, 

I think there is a bug on Gantt widget that occurs depending either on screen size/resolution or chrome zoom level. 

I got bug reported on my module which uses gantt widget. Client reported that on some of their screens rows on the left side are misaligned with rows on timeline.

After investigation, I managed to reproduce issue by scaling zoom on Chrome, to 90%. (they have bigger and probably better screens than mine, so it wasn't shown on my system). 

Same issue is reproducible on https://demos.telerik.com/kendo-ui/gantt/resources, if you resize gantt zoom to 90%. (I also attached image from demo)

I also looked though to find possible solution, and it seems that if we replace current fixed font-size: 14px, with font-size:1.5vh it seems to scale correctly.

Please could you take a look and suggest solution (I would prefer to avoid overriding native css of the widget).

Thank you and best regards,

Vedad

Veselin Tsvetanov
Telerik team
 answered on 30 Jun 2020
13 answers
1.8K+ views

As posted on stack overflow ...

    https://stackoverflow.com/questions/61956516/how-to-apply-complex-odata-filters-programatically-with-kendo-data-sources


I have a kendo data source that's bound an OData v4 endpoint.

I need to apply something like this filter to it ...

LINQ query:
ds.data().Where(i => i.References.Any(r => r.OfferLines.Any(l => l.OfferId == "myOfferId"))

OData query:
?$filter=References/any(r:r/OfferLines/any(l:l/OfferId eq 'myOfferId'))

How can i do this "after my grid has been initialised" programatically (with javascript)?

Petar
Telerik team
 answered on 30 Jun 2020
1 answer
225 views

hello,

i used ddl with taghelper

  <kendo-dropdownlist for="EmlakBinaBeyan.YeniBinaIndirimiUygulandiMi"
                                                                        bind-to="Html.GetEnumSelectList(typeof(EvetHayirEnum))"
                                                                        readonly="readonly"
                                                                        class="form-control form-control-sm"
                                                                        style="width:100%">

  </kendo-dropdownlist>

this generate ID with comma.

<input data-val="true" data-val-required="The KisitlilikVarMi field is required." id="EmlakBinaBeyan.KisitlilikVarMi" name="EmlakBinaBeyan.KisitlilikVarMi" type="text" value="0" data-role="dropdownlist" style="display: none;">

 

but i used ddl with html helper, also same code

                                                    @(Html.Kendo().TextBoxFor(x => x.EmlakBinaBeyan.ArsaNetM2).HtmlAttributes(new { @class = "form-control form-control-sm text-lg-left text-muted", @readonly = "readonly" }))

this generate ID with underline

<input type="text" data-val="true" data-val-required="The KisitlilikVarMi field is required." id="EmlakBinaBeyan_KisitlilikVarMi" name="EmlakBinaBeyan.KisitlilikVarMi" value="Hayir" data-role="dropdownlist" style="display: none;">

 

so, same code tag helper and html helper generate different Id. I want take value with jquery selector, i cant take value with taghelper, but i can take value with html helper .

var dropdownlist22 = $("#EmlakBinaBeyan_KisitlilikVarMi").data("kendoDropDownList");

 

why generated different Id ?

 

Best Regards.

 

 

 

Veselin Tsvetanov
Telerik team
 answered on 30 Jun 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?