Telerik Forums
UI for ASP.NET MVC Forum
1 answer
319 views

Hi,

I am using Kendo RadialGauge inside Bootstrap response grid...

The issue is how do I resize the gauge when the browser resize?

Thank you.

<div class="col-md-6">
            <div class="panel panel-primary copyright-wrap" id="xxx">
                <div class="panel-heading">Sales Challenge
                    <button type="button" class="close" data-target="#salesChallenge" data-dismiss="alert"> <span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                </div>
                <div class="panel-body">
                    <div id="gauge-container">
                        @(Html.Kendo().RadialGauge()
                            .Name("gauge")
                            .Pointer(pointer => pointer.Value(65))
                            .Scale(scale => scale
                                .MinorUnit(5)
                                .StartAngle(-30)
                                .EndAngle(210)
                                .Max(180)
                            )
                        )

                    </div>                    
                </div>                
            </div>
        </div>

 

Stefan
Telerik team
 answered on 21 Aug 2017
3 answers
1.2K+ views

I'm using HTML helper list view. I'm not getting loading image or loading message while loading the Items in the listview HTML helper. Also, how to display "No items to display" message when the listview is empty. Below is the code that I have

 
   <div class="col-sm-12 k-content wide">
        @(Html.Kendo().ListView<CNO.CA.MemberPortal.Web.UI.Viewmodels.DocumentManagementModel>(Model.document)
            .Name("DocumentslistView")
            .TagName("div")
            .ClientTemplateId("template")
            .DataSource(datasource => datasource
            .Read(read => read.Action("GetDocumentsByPersonId", "Profile"))
            .Model(m => m.Id("ID"))
            .ServerOperation(false)
            .PageSize(10))
            .Pageable()                    
             )
)
    </div>

Stefan
Telerik team
 answered on 21 Aug 2017
1 answer
300 views

Hello,

We have a requirement to navigate between tabs using back and next buttons; an additional requirement is that if a tab contains a child tabstrip the next button should begin navigating through the child tabs before continuing on with the parent tabs.

The basic structure is as follows:

Parent tabstrip contains tabs 1, 2, 3. Tab 2 contains a child tabstrip with tabs 4, and 5.

Beginning on tab 1, clicking the next button should select tab 2. Once on tab 2 clicking next should select tab 4. Once on tab 4 clicking next should select tab 5. Once on tab 5 clicking next should select tab 3. Clicking back should do the reverse.

I have no problem going forward from 1 -> 2 -> 4 -> 5; I have no problem going back within a single tabstrip 5 -> 4 or 2 -> 1, however, going from child up to parent , 4 -> 2, doesn't work; it seems tab 2 never has gets selected or activated.

 

Any ideas on how to accomplish this? I've included a simplified prototype of our initial approach.

Thanks for any advice.

Dimitar
Telerik team
 answered on 18 Aug 2017
7 answers
1.3K+ views

Hi, 

I have a Treeview with a specific hierarchy. The parent and children nodes have checkboxes. 

The parent node should be completely checked if all the children nodes under them are checked and it should be partially checked if the children nodes are not completely checked. 

But in my case, the parent node which is having partially checked children nodes is not highlighted or partially checked when the treeview loads initially. Once the parent node has been read, the node is partially checked. I need the parent node to be partially checked if it has partially checked children nodes when the Treeview loads for the first time itself. 

I have attached the screenshot too.

Thanks in advance.

Ivan Danchev
Telerik team
 answered on 18 Aug 2017
2 answers
238 views

I can't seem to find the answers to these questions.

 

1) Can you apply a double click to the row when server binding the grid, I've tried the following code in the OnDataBound function but it doesn't execute when double clicking the row?

2) I could also use a custom command button as well instead of the double click, but I can't find a handle to the row when I fire the the following script.

Double Click row script.

$(that.tbody).on("dblclick",
                "tr",
                function (e) {
                    var rowData = that.dataItem(this);
                    CheckForTemplate(rowData.Id);
                });

 

Custom Command button script.

columns.Command(command =>
                      {
                          command.Custom("Datasheet").Click("ViewDatasheet")
                      }).Width(200);
 
function ViewDatasheet(e) {
        e.preventDefault();
        var dataItem = this.dataItem($(e.currentTarget).closest("tr")); -> This line causes the attached script error.
        idcount = dataItem.Id;
        $.ajax({
            type: "POST",
            url: '@Url.Action("CheckForAssignedTemplate", "Data")',
            contentType: "application/json; charset=utf-8",
            data: JSON.stringify({ moduleid: @Model.TheModule.Id, idcount: idcount }),
            dataType: "json",
            success: function(result) {
                if (result.datasheetid !== "") {
                    location.href = '@Url.Action("Index", "Datasheet")?datasheetid=' + result.datasheetid;
                } else {
                    var window = $("#window_newDataSheet").data("kendoWindow");
                    window.center().open();
                }
            },
            error: function() {
                $(".validation-summary-valid").text(result.message);
            }
        });
    }

Boyan Dimitrov
Telerik team
 answered on 18 Aug 2017
4 answers
510 views

I'm wondering if anyone can advise on integrating this confirmation dialog into kendo and styling it so it's more similar?

Is it even compatible?  I think it should be but so far haven't had any luck getting it up and running - I've only got a few months experience in JS.

http://demos.pierrejeanparra.com/jquery-plugins/fast-confirm/test.html
http://blog.pierrejeanparra.com/jquery-plugins/fast-confirm/
https://github.com/pjparra/Fast-Confirm

Larry
Top achievements
Rank 1
 answered on 17 Aug 2017
6 answers
1.3K+ views

Hello,

 

I have been trying to bind the Multiselect values to the grid using Telerik. I am able to get the multiselect values using Server Binding from the controller. But unable to show those values in the grid below that Multiselect.

 

Can anyone please help me with this? Anything would help. Thank you.

 

 

Stefan
Telerik team
 answered on 17 Aug 2017
1 answer
294 views

When deleting an item a prompt message will appear:

if a single occurrence: "Are you sure you want to delete this event?" <Delete> <Cancel>

if recurrence: "Do you want to delete only this event occurrence or the whole series?" <Delete current occurrence> <Delete the series>

I would like to add in the title of the event to the prompt text so the user can verify her/she is deleting the proper event.

Veselin Tsvetanov
Telerik team
 answered on 17 Aug 2017
2 answers
181 views

Hi,

I am trying to get a click event on my sortable panels and I am not having the best of luck. Basically I have 3 columns (i.e. #main-content1) that can have 1 - 4 panels in each column and I need to go to a specific page based on what panel is clicked.

I am using the following:
@(Html.Kendo().Sortable()
.For("#main-content1")
.ConnectWith("#main-content2,#main-content3")
.Cursor("move")
.PlaceholderHandler("placeholder")
.HintHandler("hint")
)
@(Html.Kendo().Sortable()
.For("#main-content2")
.ConnectWith("#main-content1,#main-content3")
.Cursor("move")
.PlaceholderHandler("placeholder")
.HintHandler("hint")
)
@(Html.Kendo().Sortable()
.For("#main-content3")
.ConnectWith("#main-content1, #main-content2")
.Cursor("move")
.PlaceholderHandler("placeholder")
.HintHandler("hint")
)

 
This is what I am using to render the tiles:
@helper renderTiles(IPublishedContent Section)
{
var title = Section.GetPropertyValue<string>("Title", String.Empty);
var link = Section.GetPropertyValue<string>("link", String.Empty);
var id = Section.GetPropertyValue("Icon", -1);
<div id = "blogs" class="widget">
<h3>@title<span class="collapse k-icon k-i-arrowhead-n"></span></h3>
<div class="widget-image">
@if(ImageId != -1)
{
<img src="@Umbraco.TypedMedia(id).Url" alt="=@Umbraco.TypedMedia(id).Name"/>
}
</div>
</div>
}



I have tried the following:
$(document).ready(function ()
{
$("#blogs").on("click", function (e)
{
alert("Hello");
});
}

But I only get an alert on the first panel in the first column.

Any ideas/pointers would be appreciated.
Thanks

JC
Top achievements
Rank 1
 answered on 17 Aug 2017
3 answers
8.1K+ views
Hello,

I have a command column, and I'd like to add a custom command within it, not in a separate column:
columns.Command(command =>
    {
        command.Edit();
        command.Destroy();
        command.Custom("Copy").Click("CopyPOLine").HtmlAttributes(new { @class = "k-copy-icon"});
    }).Width(175);
The above renders this:
<a class="k-button k-button-icontext k-grid-Copy" href="#"><span class=" "></span>Copy</a>
I cannot figure out how to add a custom class to the <span> tag inside the <a> tag so I can specify the image to display. I see how you can create a columns.Template to accomplish this, but that would be in a new column and I want all command buttons to be within the same column. 

Side Note in the above: the HtmlAttributes class specified doesn't get appended to the class list in the <a> tag either...it looks like it generates a new class of "k-grid-NAME_OF_COMMAND". So HtmlAttributes has no affect on class???

Is there a way to accomplish this?
Jignesh
Top achievements
Rank 1
 answered on 16 Aug 2017
Narrow your results
Selected tags
Tags
Grid
General Discussions
Scheduler
DropDownList
Chart
Editor
TreeView
DatePicker
ComboBox
Upload
MultiSelect
ListView
Window
TabStrip
Menu
Installer and VS Extensions
Spreadsheet
AutoComplete
TreeList
Gantt
PanelBar
NumericTextBox
Filter
ToolTip
Map
Diagram
Button
PivotGrid
Form
ListBox
Splitter
Application
FileManager
Sortable
Calendar
View
MaskedTextBox
PDFViewer
TextBox
Toolbar
Dialog
MultiColumnComboBox
DropDownTree
Checkbox
Slider
Switch
Notification
Accessibility
ListView (Mobile)
Pager
Security
ColorPicker
DateRangePicker
Wizard
Styling
Chat
DateInput
MediaPlayer
TileLayout
Drawer
SplitView
Template
Barcode
ButtonGroup (Mobile)
Drawer (Mobile)
ImageEditor
RadioGroup
Sparkline
Stepper
TabStrip (Mobile)
GridLayout
Badge
LinearGauge
ModalView
ResponsivePanel
TextArea
Breadcrumb
ExpansionPanel
Licensing
Rating
ScrollView
ButtonGroup
DropDownButton
CheckBoxGroup
NavBar
ProgressBar
QRCode
RadioButton
Scroller
Timeline
TreeMap
TaskBoard
OrgChart
Captcha
ActionSheet
Signature
DateTimePicker
AppBar
BottomNavigation
Card
FloatingActionButton
Localization
MultiViewCalendar
PopOver (Mobile)
Ripple
ScrollView (Mobile)
Switch (Mobile)
PivotGridV2
FlatColorPicker
ColorPalette
AIPrompt
PropertyGrid
ActionSheet (Mobile)
BulletGraph
Button (Mobile)
Collapsible
Loader
CircularGauge
SkeletonContainer
Popover
HeatMap
Avatar
ColorGradient
CircularProgressBar
SplitButton
StackLayout
TimeDurationPicker
Chip
ChipList
DockManager
ToggleButton
Sankey
OTPInput
ChartWizard
SpeechToTextButton
InlineAIPrompt
TimePicker
StockChart
RadialGauge
ContextMenu
ArcGauge
AICodingAssistant
SmartPasteButton
PromptBox
SegmentedControl
LLM Kit
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?