Quantcast
Channel: Telerik Forums RSS
Viewing all 78072 articles
Browse latest View live

Updating event title dynamically

$
0
0
Hello Laurence,

Thank you for the last clarification. Please note that the Scheduler "moveend" and "save" events receive the currently edited event as parameter. That why the "save" event can be modified as follows:

save: function(e) {
      e.event.set("title", "UPDATED TITLE");
},

Also you can skip using the "moveend" event if you always update the title in the "save" event.

Regards,
Vladimir Iliev
Telerik by Progress
Kendo UI is ready for Visual Studio 2017 RC! Learn more.

SearchBox ignore words

$
0
0

Hi,

I would like to know if it's possible to do the following thing with the SearchBox:

I want to ignore certain words like in this case:

the user types "courses in technology" and I want to ignore the words "courses in" so only the word "technology" would be searched

in the datasource. is it possible to do this thing ? 

 

Shahar Weinstein.

 

 

Prevent ClientDataSource item remove if sync fails

$
0
0
Also similar thing occurs when updating an item, I loaded the page then disconnected my internet connection and tested update and remove. The error method is called but the item is either updated or removed.

UserControl on Tooltip when hover a gridcell

$
0
0

Hi Martin, thank you for your reply

I have followed your tip and got my tooltip showing preloaded data.

but I need to modify this solution in order to show data on demand. that is on mouse hovering of that cell

here is what I came up with:

<telerik:GridViewDataColumn   Width="50*"
                            DataMemberBinding="{Binding UserCount}"IsFilterable="False">
    <telerik:GridViewDataColumn.CellTemplate>
        <DataTemplate>
            <TextBlockText="{Binding UserCount}"MouseEnter="TextBlock_MouseEnter"/>
        </DataTemplate>
    </telerik:GridViewDataColumn.CellTemplate>
    <telerik:GridViewColumn.ToolTipTemplate>
        <DataTemplate>
            <StackPanelOrientation="Horizontal">
                <ListBoxItemsSource="{Binding UserNames}"/>
            </StackPanel>
        </DataTemplate>
    </telerik:GridViewColumn.ToolTipTemplate>
</telerik:GridViewDataColumn>

 

and the mouseenter event will trigger a Load method on the viewmodel to update the UserNames property there (a list of string)

but it won't work. the list comes empty. Is there something we can do about it?

 

Thanks

 

WPF45 Documents assemblies wrong version number

$
0
0
Hello Heiko,

Indeed, this is not very convenient, but the impact to the end user is minimized. And the size of the shipped dlls is reduced. However, excuse us for any inconvenience caused.

Regards,
Martin
Telerik by Progress
Telerik UI for WPF is ready for Visual Studio 2017 RC! Learn more.

Clear radigridview filter descriptors when datasource updated

$
0
0

Hello Stefan
Thanks for your answer, it partially works but I still have a little trouble like you have with your project.
The applied filter is cleared so the source item is the right one but the checkbox filter is still checked as you can see in the attached screen print.
Regards
J-Christophe

RadMenu not closing anymore

$
0
0
Hello,

You may overcome this issue by wrapping the sender.close() line in a setTimeout() function with a slight delay:

setTimeout(function () { sender.close(); }, 10);

Thus, the menu item will close again in all browsers.

Best regards,
Dimitar
Telerik by Progress
Telerik UI for ASP.NET AJAX is ready for Visual Studio 2017 RC! Learn more.

More row details and dataform questions

$
0
0

Hi,
below is a stripped down version of my rowdetail editor using a raddataform with a rowdetails template.
I tried adding CommandButtonsVisibility="All" but it did nothing. I want to show add, delete, edit etc. I'm only getting the edit button.

Some more issues.

1. The OK and Cancel Buttons are not picking up the global button style I have set in app.xaml.

2. Is it possible to have the OK button fire the RowEditEnded event?

3. The cancel button does not cancel the changes made in the dataform. Changes made to the form are immediately reflected in the
     RadGridView. I would have expected the cancel button to set things back to their original values. Am I missing something?

4. How do I get the radform to default to edit mode so that the user does not have to hit the edit button in the upper right corner first?

I've attached a screen shot.

Any help would be GREATLY appreciated.

Thanks ... Ed

 


<Grid.Resources>
    <DataTemplate x:Key="RowDetailsTemplate">
        <telerik:RadTabControl x:Name="SamplesTab"   HorizontalAlignment="Left"
                                    Margin="8" VerticalAlignment="Center">
            <telerik:RadTabItem Header="Sample Details" DataContext="{Binding}">

                <Grid Width="Auto" HorizontalAlignment="Stretch">
                    <Grid.RowDefinitions>
                        <RowDefinition />
                        <RowDefinition />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="auto" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>

                    <telerik:DataFormDataField    Grid.Row="0" Grid.Column="0"
                                                    Label="Client Sample Id:"
                                                    DataMemberBinding="{Binding Sample.ClientSampleID, Mode=TwoWay }"
                                                    VerticalAlignment="Top"  />

                    <telerik:DataFormComboBoxField Grid.Row="1" Grid.Column="0" Label="Priority:"
                                                    ItemsSource="{Binding RelativeSource={RelativeSource FindAncestor,
                                                            AncestorType={x:Type UserControl} },
                                                            Path=DataContext.Priorities}"
                                                    DisplayMemberPath="Value"
                                                    SelectedValuePath="Key"
                                                    DataMemberBinding="{Binding Sample.PriorityID, Mode=TwoWay }">

                    </telerik:DataFormComboBoxField>
                </Grid>
            </telerik:RadTabItem>
        </telerik:RadTabControl>

    </DataTemplate>
</Grid.Resources>



<telerik:RadGridView.RowDetailsTemplate>
    <DataTemplate>

        <telerik:RadDataForm CurrentItem="{Binding}" AutoGenerateFields="False"
            EditTemplate="{StaticResource RowDetailsTemplate}"
            NewItemTemplate="{StaticResource RowDetailsTemplate}"
            ReadOnlyTemplate="{StaticResource RowDetailsTemplate}"
                />
    </DataTemplate>
</telerik:RadGridView.RowDetailsTemplate>

 


RowDetails questions

$
0
0
Hello Ed,

When you're editing the item through RadDataForm, you will need to handle its EditEnded event rather than RadGridView's RowEditEnded event which will not get fired as, technically, you're not editing the row, you're editing the bound data item. Please let me know if this would work for you.

Regards,
Dilyan Traykov
Telerik by Progress
Telerik UI for WPF is ready for Visual Studio 2017 RC! Learn more.

RadGridView Asynch Loading

$
0
0

Hi,

So when using an application like SQL Server Management Studio I can run a query (let's say select * from customer although my queries are very user driven with a few joins mostly the SQL is generated dynamically) and the results grid will start populating rows extremely quickly until the full set is returned.

I want to emulate this behavior using a RadGridView (WPF)

I have tried using a data set it takes to long and you don't get that initial feedback of seeing the first rows start flooding in.

Next I tried loading the customers from a data reader and putting each row into an ObservableCollection<Customer> it is way faster and allows the objects in .Net to start being populated even before the query has finished but ultimately the UI was unable to keep up with the reader and froze until the full set was populated.

What would be the best approach to get that fast response of data loading and the user seeing the rows start to appear without locking down the UI Thread of the application?

A typical result set is around 100k records and I can put it in the grid in about 5 seconds using a dataset im hoping to get similar time while showing the user immediate feedback their query is getting results

v2016.3.914 Memory leak

$
0
0
Hi Marcel,

This is not a known issue. Is it possible for you to provide a small Kendo Dojo example which demonstrates the issue so I can examine your exact scenario and assist you further?

If I understood correctly the problem will not occur if the ToolBar has resizable set to false, is that correctly?

Looking forward to your reply.

Regards,
Alexander Valchev
Telerik by Progress
Kendo UI is ready for Visual Studio 2017 RC! Learn more.

Missing property of RadFixedPage - PDFProcessing

$
0
0

Hi Sushanth,

When i've your problem the only way i found is this method :

DimA4Format AsSystem.Windows.Size = Model.PaperTypeConverter.ToSize(Model.PaperTypes.A4)
DimA4P AsNewSystem.Windows.Size 'For Landscape mode, must change after new...
A4P.Height = A4Format.Width
A4P.Width = A4Format.Height
 
'... and set it in my sectionproperties page like this
 
Using Editor AsEditing.RadFixedDocumentEditor = NewEditing.RadFixedDocumentEditor(document)
     WithEditor
        .SectionProperties.PageSize = A4P
        .SectionProperties.PageMargins = NewTelerik.Windows.Documents.Primitives.Padding(48.768)
...

 

Prevent users manually entering date via input control

$
0
0
Hi Michael,

Generally, you can achieve this requirement using the Edit event handler:
http://docs.telerik.com/kendo-ui/api/javascript/ui/grid#events-edit


When the row or cell is opened in edit mode, you can find the instance of the picker. Here is a common sample:
Copy Code
.Events(events => events.Edit("onEdit"))
JavaScript:
Copy Code
function onEdit(args) {
    if (args.model.isNew() != false) {
            // textbox
            $("#ShipName").attr("readonly", true);
             
            // dropdownlist
            var kendoDdl = $("#ShipCountry").data("kendoDropDownList");
            kendoDdl.readonly(true);
    }
}

Once you have the picker instance, you can find its input element and attach event to its key press and if the key is for example Esc or Backspace, you can clear the picker content. Alternatively, you can manually create a X clear button next to the picker ​to do that.

Regards,
Eyup
Telerik by Progress
Telerik UI for ASP.NET MVC is ready for Visual Studio 2017 RC! Learn more.

TreeView event ContextMenuOpening not executing with ContextMenuStrip

$
0
0

Hello, if execute the attached code, the ContextMenuOpening event is not raised with ContextMenuStrip

how can I edit the contextmenu depending on the node? Can't use ContextMenu nor RadContextMenu for the purpose.

Maybe can I capture the mouse position before the contextmenu gets opened and find the tree node in some ways?

 

usingSystem;
usingSystem.Collections.Generic;
usingSystem.ComponentModel;
usingSystem.Data;
usingSystem.Drawing;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
usingSystem.Windows.Forms;
namespaceWindowsFormsApplication4
{
    publicclassForm1 : Form
    {
        privateIContainer components;
        privateContextMenuStrip contextMenuStrip1;
        privateToolStripMenuItem aToolStripMenuItem;
        privateTelerik.WinControls.UI.RadTreeView radTreeView1;
 
        publicForm1()
        {
            this.components = newSystem.ComponentModel.Container();
            this.radTreeView1 = newTelerik.WinControls.UI.RadTreeView();
            this.contextMenuStrip1 = newSystem.Windows.Forms.ContextMenuStrip(this.components);
            this.aToolStripMenuItem = newSystem.Windows.Forms.ToolStripMenuItem();
 
            ((System.ComponentModel.ISupportInitialize) (this.radTreeView1)).BeginInit();
            this.contextMenuStrip1.SuspendLayout();
            this.SuspendLayout();
            
            this.radTreeView1.Location = newSystem.Drawing.Point(16, 12);
            this.radTreeView1.Size = newSystem.Drawing.Size(251, 152);
            this.radTreeView1.ContextMenuOpening += newTelerik.WinControls.UI.TreeViewContextMenuOpeningEventHandler(this.radTreeView1_ContextMenuOpening);
             
            this.contextMenuStrip1.Items.AddRange(newSystem.Windows.Forms.ToolStripItem[] {
            this.aToolStripMenuItem});
            this.contextMenuStrip1.Name = "contextMenuStrip1";
             
            this.aToolStripMenuItem.Name = "aToolStripMenuItem";
            this.aToolStripMenuItem.Text = "A";
            this.aToolStripMenuItem.Click += newSystem.EventHandler(this.aToolStripMenuItem_Click);
            //
            // Form1
            //
            this.ClientSize = newSystem.Drawing.Size(284, 261);
            this.Controls.Add(this.radTreeView1);
            ((System.ComponentModel.ISupportInitialize) (this.radTreeView1)).EndInit();
            this.contextMenuStrip1.ResumeLayout(false);
            this.ResumeLayout(false);
 
            radTreeView1.ContextMenuStrip = this.contextMenuStrip1;
        }
 
 
        stringcontext = "radTreeView1_ContextMenuOpening WAS NOT executed";
        privatevoidradTreeView1_ContextMenuOpening(objectsender, Telerik.WinControls.UI.TreeViewContextMenuOpeningEventArgs e)
        {
            context = "radTreeView1_ContextMenuOpening WAS executed";
        }
         
        privatevoidaToolStripMenuItem_Click(objectsender, EventArgs e)
        {
            MessageBox.Show(this, context);
        }
    }
}

RadScheduleView TimeRuler command

$
0
0

Hi,

I use the RadScheduleView and I try to add an command to the TimeRuler line (on each date). I implement custom TimeRulerItemTemplateSelector like this : 

TimeRulerItemTemplateSelector="{StaticResource CustomTimeRulerItemTemplateSelector}"

 

In this template, I use the HorizontalTimelineGroupTemplate with an TextBlock to format the text. This works great. I want to add an command to this TextBlock (or a button), but the command is never raised.

I have try with the InputBinding :

<selectors:CustomTimeRulerItemTemplateSelector.HorizontalTimelineGroupTemplate>
    <DataTemplate>
        <TextBlock  TextAlignment="Left"Padding="2,0">
            <TextBlock.Text>
                <MultiBindingConverter="{StaticResource DateToStringFormatConverter}">
                    <BindingPath="DateTime"/>
                    <BindingPath="DataContext.PlanningHelper.GroupHeaderStringFormat"RelativeSource="{RelativeSource AncestorType={x:Type ucPlanning1:PlanningList}}"/>
                </MultiBinding>
            </TextBlock.Text>
            <TextBlock.InputBindings>
                <MouseBindingCommand="{Binding DataContext.TestCommand, RelativeSource={RelativeSource AncestorType={x:Type ucPlanning1:PlanningList}}}"MouseAction="LeftClick"/>
            </TextBlock.InputBindings>
        </TextBlock>
    </DataTemplate>
</selectors:CustomTimeRulerItemTemplateSelector.HorizontalTimelineGroupTemplate>

 

And with telerik:EventToCommandBehavior.EventBindings :

<selectors:CustomTimeRulerItemTemplateSelector.HorizontalTimelineGroupTemplate>
    <DataTemplate>
        <TextBlock  TextAlignment="Left"Padding="2,0">
            <TextBlock.Text>
                <MultiBindingConverter="{StaticResource DateToStringFormatConverter}">
                    <BindingPath="DateTime"/>
                    <BindingPath="DataContext.PlanningHelper.GroupHeaderStringFormat"RelativeSource="{RelativeSource AncestorType={x:Type ucPlanning1:PlanningList}}"/>
                </MultiBinding>
            </TextBlock.Text>
            <telerik:EventToCommandBehavior.EventBindings>
                <telerik:EventBindingCommand="{Binding DataContext.TestCommand, RelativeSource={RelativeSource AncestorType={x:Type ucPlanning1:PlanningList}}}"EventName="MouseEnter"/>
            </telerik:EventToCommandBehavior.EventBindings>
        </TextBlock>
    </DataTemplate>
</selectors:CustomTimeRulerItemTemplateSelector.HorizontalTimelineGroupTemplate>

 

But my TestCommand is never call.

What's wrong with my code? How to implement command inside the TimeRuler?

Thanks for your help.


Prevent "Hidden buttons" to fire up until they are actually shown by swiping the top layout

$
0
0

Hi,

I have downloaded trail version of Telerik UI for Xamarin.Android and playing around with examples I run in some problems with ListView I can't quite figure out.
In ListViewSwipeActionsThresholdsFragment.cs example clicking in left or right section of ListView activates "Hidden buttons" without swiping the view itself.

 

[url=https://postimg.org/image/53t0cp0tn/][img]https://s17.postimg.org/53t0cp0tn/sl1.png[/img][/url]

How do you prevent hidden button to fire up until they are actually shown by swiping the top layout?

Treeview - Pass multiple parameters to read child nodes

$
0
0
Hello Greg,

We have already answered the support ticket you have submitted on the same topic. I will post here a quote of the answer here for the people that would review this thread. 

As suggested in the TreeView with remote hierarchical datasource forum thread you could use the expand eventto save the expanded node and then use it in the dataSource's transport.read.data option to send it as an additional parameter to the server.

If you have any questions, I would like to suggest you to continue the discussion in the support thread to avoid any duplication.

Regards,
Peter Milchev
Telerik by Progress
Kendo UI is ready for Visual Studio 2017 RC! Learn more.

replacting GridViewDataColumn for GridViewComboBoxColumn

$
0
0

Hi,

At the moment I'm facing an issue, I have a RadGridView which can show different tables with different definitions(not at the same time)
So AutoGenerateColumns is set to True.

now it can happen that some columns have an FK to another table.
Before I replaced those columns in the DataLoaded event but because of performance reasons I would like to do those replaces in the CurrentCellChanged event.

The problem when I do this is that the new GridViewComboBoxColumn misses the link to the actual datasource, and while reading the value for saving in the database, the value is DBNULL.

the gridview in de Xaml looks like this

<DataTemplatex:Key="AdminViewMainSectorTemplate">
        <GridMargin="10">
            <Grid>
                <telerik:RadBusyIndicatorx:Name="BusyIndicator"Grid.Row="2">
                    <telerik:RadGridViewx:Name="gridViewAdminData"
                                                     ItemsSource="{Binding DataRecords, Mode=TwoWay}"
                                         RowEditEnded="EditRecord"
                                         Deleted="deleteRecord"
                                         AddingNewDataItem="AddingNewDataItem"
                                         MinColumnWidth="100"
                                         ColumnWidth="*"
                                         NewRowPosition="Top"                                         
                                         AutoGeneratingColumn="AutoGeneratingColumn"
                                         DataLoading="LoadData"
                                         DataLoaded="DataLoaded"
                                         CurrentCellChanged="CurrentCellChanged"
                                         SelectionUnit="Cell"
                                         >
                        <!--DataLoading="LoadData"
                                         DataLoaded="DataLoaded"-->
                        <telerik:EventToCommandBehavior.EventBindings>
                            <telerik:EventBinding
                            Command="{Binding HandleAddingNewRecordToDevicesGridCommand}"
                            EventName="AddingNewDataItem"
                            PassEventArgsToCommand="True"/>
                        </telerik:EventToCommandBehavior.EventBindings>
                    </telerik:RadGridView>
                </telerik:RadBusyIndicator>
            </Grid>
        </Grid>
    </DataTemplate>

and my code behind looks like this:

privatevoidCurrentCellChanged(objectsender, GridViewCurrentCellChangedEventArgs e)
       {
           RadGridView rgv = (RadGridView)sender;
           GridViewCell cell = rgv.CurrentCell;
           if(cell != null&& typeof(GridViewDataColumn) == cell.Column.GetType())
           {
               Models.MyEntities db = newModels.MyEntities();
               stringtableName = Helpers.GlobalParameters.currenTableName;
               if(tableName =="batches")
               {
                   stringfieldname = cell.Column.UniqueName;
                   if(fieldname == "ProductieOrderId")
                   {
                       intindex = cell.Column.DisplayIndex;
                       GridViewComboBoxColumn cbb = newGridViewComboBoxColumn();
                       cbb.DataMemberBinding = newSystem.Windows.Data.Binding(fieldname);
                       //cbb.DataMemberBinding = cell.DataColumn.DataMemberBinding;
                       cbb.ItemsSource = db.productieorder.ToList();
                       cbb.SelectedValueMemberPath = fieldname;
                       cbb.DisplayMemberPath = "Id";
                       //cbb.Name = fieldname;
                       cbb.UniqueName = fieldname;
                       cbb.DisplayIndex = index;
                       rgv.Columns.Remove(cell.Column);
                       //rgv.Columns.Remove(cell.DataColumn);
                       rgv.Columns.Add(cbb);
 
                   }
               } elseif(tableName =="artikel")

where the Field "Id" is the related field on the related table
If I do this
cbb.SelectedValueMemberPath = "Id";

what I would say is logical, the shown value in the combobox stays empty.

does anyone know where to look to fix this issue?

Unit testing ReactJS wrapper for Kendo chart

$
0
0
Hi,

We haven't tried testing Kendo UI components in JSDom. Based on their implementation, I'd say they're rather dependent on a fully-featured DOM.

I'm afraid this isn't something we can fix. 

Regards,
T. Tsonev
Telerik by Progress
Kendo UI is ready for Visual Studio 2017 RC! Learn more.

apply sorting on Telerik Gantt view

$
0
0

Hello,

Help me to perform sorting on telerik gantt view columns

Viewing all 78072 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>