Telerik Forums
UI for ASP.NET MVC Forum
1 answer
1.0K+ views

Hi,

I used Kendo dialog, everything work fine, except the position. it seems that it doesn't impact. I changed the values in Percentages or in pixels but this is not working and it always appears in the same place.

What is the problem?

this is my code:

myWindowConfirmTransaction = $("#ConfirmTransactionWindow");
            myWindowConfirmTransaction.kendoDialog({
                width: "40%",
                height: "65%",
                title: "",
                closable: true,
                modal: true,
                visible: false,
                content: formHtmlData,
                actions: [
                    { text: 'Edit', action: onCancel },
                    { text: 'Continue', primary: true, action: onContinue }
                ],
                position: {
                    top: 10,
                    left: "25%"
                },
                animation: {
                    open: {
                        effects: "slideIn:down fadeIn",
                        duration: 1000
                    },
                    onCancel: {
                        effects: "slide:down fadeOut"
                    }
                }
            });
        }
        myWindowConfirmTransaction.data("kendoDialog").open().center();

 

thanks!

 

 

 

 

Ivan Zhekov
Telerik team
 answered on 20 Jun 2018
4 answers
680 views

Accessing the Selected DataText and DataValue

Please help...

@(Html.Kendo().ListBox()
.HtmlAttributes(new { title = "Accounts"})
.Name("ListAccounts")
.DataTextField("AccountName")
.DataValueField("AccountID")
.BindTo(Model)
.Events(events => events.Change("onChange"))
)

<script>
function onChange(e) {
var value = $("#ListAccounts").data("kendoListBox").dataSource._data[$("#ListAccounts").data("kendoListBox").selectedIndex].value;
GetFleetAssets(value);
}
</script>

How can i get the DataValueField "AccountID" for the selected item within an Event Script? I can see that the data is loaded by viewing the source.

script above does not function

Stefan
Telerik team
 answered on 20 Jun 2018
1 answer
3.6K+ views

I'm putting together a grid which displays results for a document search.  In the grid itself, instead of showing the row Id, I have a checkbox.  What I'd like to do is twofold:

1. Add a check box column header that'll select all rows when checked (I've seen examples that use a specific boolean field, which my grid doesn't have nor use...  I just want to go through each row displayed and check the checkbox, but it is not dependent upon any other column.

2. Get all the selected row IDs to pass into a controller.  Not really pertinent, but what that controller will do is look for corresponding rows in the database, extract the document information in order to zip them all up together.

Any help would be greatly appreciated...

Dimo
Telerik team
 answered on 18 Jun 2018
2 answers
447 views
My users are wanting a way to enlarge or resize the window that pops up when they click the View HTML button in the Editor widget. Is there a way to do this or is beyond the developer's control? Thanks.
Bryan
Top achievements
Rank 1
 answered on 15 Jun 2018
10 answers
783 views

I have a page where one grid has to have the possibility to add/remove rows on the client before saving all the changes to the server.

The grid is created like this

@(Html.Kendo().Grid(Model.AssignedObjects)
          .Name("AssignedGrid")
          .Columns(columns =>
          {
              columns.Select().Width(35);
              columns.Bound(p => p.Description);
          })
          .Pageable(p => p.PageSizes(true)
                     .ButtonCount(5))
          .Sortable()
          .Scrollable()
          .HtmlAttributes(new { style = "height: 450px;" })
          .DataSource(dataSource => dataSource.Ajax()
                                   .ServerOperation(false)))

The remove is done using the below javascript code

function removeSelected() {
      var grid = $('#AssignedGrid').data('kendoGrid');
      var dataSource = grid.dataSource;
      var rows = grid.select();
      var data = rows.map(function () {
         return grid.dataItem($(this));
      });
      for (var i = 0; i < data.length; i++) {
         dataSource.remove(data[i]);
      }
      grid.clearSelection();
   }

On the remove function I had also had a code to go to the first page ( dataSource.page(1) ) but if I remove all the data going to page 1 would display the initial data. Now without the code to go to the first page it works by going to page 0 and displaying no items.

However I still have a problem when I change the number of records on a page I get again to the first page and the initial data. Is there a way to really remove the data, so regardless what actions I do (), not to get the initial data?

 

Dan
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 15 Jun 2018
5 answers
301 views

I need just one simple thing.  I need to change the color from the barely visible half transparent close icon on grouping headers to actually be visible.  I have tried setting a multitude of classes to try and get this damn thing to show up.  I've actually ended up screwing up my entire grid just trying to find this one simple thing.  When oh when will you people make overriding these damn classes and styles easy.  ARGH!!!

Sorry about that, just a bit frustrated.  So what do I need to do to get this damn icon to show up?

Stefan
Telerik team
 answered on 15 Jun 2018
2 answers
260 views
I am trying to make use of the custom downloader on the website to create a custom javascript file for a simple grid. So I included it in the page and deleted all the kendo scripts I don't need anymore. Then I noticed in the network tab that kendo is trying to load jquery, jszip, kendo.all, kendo.aspnetmc, and kendo.modernizr.custom. There is nothing I can see that explicitly tries to load these files. How do I stop kendo from trying to load these files?
Tomasz
Top achievements
Rank 1
 answered on 14 Jun 2018
1 answer
448 views

I'm creating this new thread because I only found 6 threads at this date (6/12/2018).  Here is the link of the search results: https://www.telerik.com/search?start=0&q=filter%2blogical%2boperators&collection=telerik30&ResourceType=Forum&hgurl=aspnet%252Dmvc&fid=e78f666bc2724221a02481d46f4c0cb5 

My question is about where to find in the documentation of Telerik Grid for MVC the comparison and logical operators that can be used to programmatically filter the Grid columns.  Say I want to filter that column 1 has value 1 or value 2, and column 2 has a date greater than value 3.

You answer will be appreciated.  I already know a solution code to my question.  What I'm looking for is how to find the information about the API.  Or how do I search the Kendo documentation site so I can get the answer.

Preslav
Telerik team
 answered on 14 Jun 2018
2 answers
163 views

How to get task id in customize resources popup in tasks grid

how to hidden on column in Tasks Gantt chart

 

my gantt chart not ajax binding

n/a
Top achievements
Rank 1
 answered on 14 Jun 2018
7 answers
1.0K+ views
I have a grid that is bound client-side.  It has create/update.

One of the fields has a dropdown list using the OptionLabel for an editor template (see Image1).  When creating a record on the grid, selecting an option other than the OptionLabel option save fine (see Image2).

When updating the record and selecting the OptionLabel option, everything saves fine (see Image3).

When updating again, all of the options save as [option Option] even though the dropdown list displays correctly (see Image4).

The easiest way to see this is by using the PopUp edit option and never refreshing the page.
Tsvetina
Telerik team
 answered on 14 Jun 2018
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?