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

Move Strip element to new row on resize

$
0
0
Hello, Mark,  

Indeed, when you shrink RadCommandBar, the elements which don't fit the available size got hidden. Usually, they appear in the oveflow drop down indicating that they exist but there is not enough space to be shown completely. 

Note that each CommandBarStripElement offers the ItemOverflowed event which is fired when an item is moved to the overflow panel. Then, you can implement any custom logic for inserting a new CommandBarRowElement for example and adding the overflown CommandBarStripElement there in order to keep it visible. There is no automatic mechanism for that but you can implement it via code. You can insert a new CommandBarRowElement when all items get overflown in a certain strip element or move the strip element back to its original row once the RadCommandBar is resized to a width that the strip fits the original location. Note that it is important to specify the DesiredLocation of the CommandBarStripElement in order to be properly positioned. The DesiredLocation coordinates shouldn't exceed the bounding rectangle of RadCommandBar.

You can find below a sample approach which demonstrates how to move the strip to a new row. Note that this is just a sample approach and it may not cover all possible cases. Feel free to modify it in a way which suits your requirements best:

public RadForm1()
{
    InitializeComponent();
 
    this.commandBarStripElement3.ItemOverflowed += commandBarStripElement3_ItemOverflowed; 
}
  
private void commandBarStripElement3_ItemOverflowed(object sender, EventArgs e)
{
    if (this.commandBarStripElement3.Items.Count == 0)
    {
        CommandBarRowElement row1 = new CommandBarRowElement();
        this.commandBarStripElement3.DesiredLocation = new PointF(0, 0);
        row1.Strips.Add(this.commandBarStripElement3);
        this.radCommandBar1.Rows.Add(row1);
    }
}

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.Learn More.

Server side caching blocking new skin updates

$
0
0

Hi there,

I am trying to set up a new skin for Telerik UI for ASP AJAX. I’ve been able to set up the skin without too much issue, but a lot of the CSS changes I am making – especially to do with images – seem to be overridden by a file called WebResource.axd. This appears to be a server side caching file. However, I am unable to find out how to clear or refresh this cache.

Can anybody please help and point me in the direction of some way of solving this?

Thanks very much!

G

RadMenu Sub Menus Expand onClick but not onMouseHover

$
0
0

Hello Mukesh,

The code behind snippet that Shinu shared is actually registering a function that will be executed on page load on the client. This function, internally calls another function (called openMenu) that is share in the code snippet below. 

As the openMenu function is relatively simple, you can combine it with the server-side function as demonstrated in the code snippet below:

protectedvoidRadMenu1_ItemClick(object sender, Telerik.Web.UI.RadMenuEventArgs e)
{if (e.Item.Items.Count > 0)
    {var menu = sender as RadMenu;var menuClientID = menu.ClientID;string menuItemText = e.Item.Text;string script = "function f(){"+"$find('"+menuClientID+"').findItemByText('" + menuItemText + "').open(); "+"Sys.Application.remove_load(f);" +"}Sys.Application.add_load(f);";
        ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", script, true);
    }
}

Generally, this approach of loading a Client-side code from the Server-side is very common and more on it you can find here:

Regards,Peter Milchev
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.Learn More.

Cross Tab rows display error

$
0
0

Hi Kevin,

In case you wish to conditionally hide rows in a Table item, our recommendation is to review the table groups with Group Explorer in extended mode and add the required filters to the row group. Create an expression for the rows according to your scenario and the data you have. You might also find helpful information in filer rules help article.

In case this approach does not help in your scenario please send us the report definition with some sample data, so we can check its exact settings and layout and provide you further suggestions.

Best Regards,Silviya
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items

Panel Bar expandMode set to 'Single'

$
0
0

Stefan, any update on this ? We are looking to have this feature in our application. 

Regards,

Vinod

Desciption not searching cause text path is set to another field.

$
0
0

I have a customer filter that should be searching the description field as well but I think its not cause the text search path is set to reference how to do i get it so that it honours my path

 

/// Class CustomAutoCompleteViewFilter.
/// Implements the <see cref="Telerik.XamarinForms.Input.AutoComplete.IAutoCompleteFilter" />
/// </summary>
/// <seealso cref="Telerik.XamarinForms.Input.AutoComplete.IAutoCompleteFilter" />
publicclassCustomAutoCompleteViewFilter : IAutoCompleteFilter
{
    /// <summary>
    /// Filters the specified item.
    /// </summary>
    /// <param name="item">The item.</param>
    /// <param name="searchText">The search text.</param>
    /// <param name="completionMode">The completion mode.</param>
    /// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns>
    publicboolFilter(objectitem, stringsearchText, CompletionMode completionMode)
    {
        StockAutoCompleteInfo stock = (StockAutoCompleteInfo)item;
        stringlowerReference = stock.Code.ToLower();
        stringlowerDescription = stock.Description.ToLower();
        stringlowerSearchText = searchText.ToLower();
        returnlowerReference.Contains(lowerSearchText) || lowerDescription.Contains(lowerSearchText);
    }
}
}

 

<telerikInput:RadAutoCompleteView x:Name="txtCode"SuggestionViewHeight="300"  CompletionMode="StartsWith"  TextSearchPath="Reference"Watermark="Search for Bom here...">
    <telerikInput:RadAutoCompleteView.SuggestionItemTemplate>
        <DataTemplate>
            <ViewCell>
                <StackLayout Orientation="Vertical">
                    <Label Text="{Binding Reference}"/>
                    <Label Text="{Binding Description}"/>
                    <BoxView BackgroundColor="Black"HeightRequest="1"  HorizontalOptions="StartAndExpand"/>
                </StackLayout>
            </ViewCell>
        </DataTemplate>
    </telerikInput:RadAutoCompleteView.SuggestionItemTemplate>
</telerikInput:RadAutoCompleteView>
<telerikInput:RadButton x:Name="btnFindBom"  BackgroundColor="#343C41"TextColor="White"  Clicked="BtnGetBomInfo_Clicked"  Text="Find Bom"></telerikInput:RadButton>

 

how to use resetZoom() in asp.net c# for radhtmllchart

$
0
0

I have used the below method in javascript of asp.net application but not working:

var chart = $find("<%=RadChart1.ClientID%>"); chart.resetZoom();

 

I have a dynamically generated radhtmlchart for which I need resetzoom. the zoomout option is not userfriendly for large data. can anyone give the correct code in c# or javascript or jquery to resetzoom in radhtmlchart. mine is a asp.net c# application.

https://docs.telerik.com/devtools/aspnet-ajax/controls/chart/client-side/client-side-api

 

 

CSS intellisense not working

$
0
0

Hi

  For some unknown reason, the intellisense suddenly stops working.

  When i create a new asp.net core project using telerik's wizard, it is working ok.

  I am using VS2017 with asp.net core R2 2019.

<environmentinclude="Development">
    <linkrel="stylesheet"href="~/lib/bootstrap/dist/css/bootstrap.css"/>
    <linkrel="stylesheet"href="~/lib/kendo-ui/styles/kendo.common-bootstrap.min.css"/>
    <linkrel="stylesheet"href="~/lib/kendo-ui/styles/kendo.metro.min.css"/>

 


Tab Key Error

$
0
0
Hello Wayne,

I tried to reproduce the exception on my end but I was not able to. May I ask you to share which version of Telerik UI for WPF you are using? I am asking because in the past I had fixed a similar issue.

If you are using the latest version of the controls, may I ask you to share more information about your setup? It would be great if you can send me a sample project which demonstrates the issue.

Regards,
Yoan
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.Learn More.

Search Description and Value

$
0
0

Hi I have my filter in but it is not firing its allowing me to search the code ok ie Reference but its not allowing me to search the description  field. Its showing up ok but i think what is happening is that TextSearchPath is overidding it in this verison i am using which is the last version available on my account.

 

01./// <summary>
02./// Class CustomAutoCompleteViewFilter.
03./// Implements the <see cref="Telerik.XamarinForms.Input.AutoComplete.IAutoCompleteFilter" />
04./// </summary>
05./// <seealso cref="Telerik.XamarinForms.Input.AutoComplete.IAutoCompleteFilter" />
06.publicclassCustomAutoCompleteViewFilter : IAutoCompleteFilter
07.{
08.    /// <summary>
09.    /// Filters the specified item.
10.    /// </summary>
11.    /// <param name="item">The item.</param>
12.    /// <param name="searchText">The search text.</param>
13.    /// <param name="completionMode">The completion mode.</param>
14.    /// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns>
15.    publicboolFilter(objectitem, stringsearchText, CompletionMode completionMode)
16.    {
17.        StockAutoCompleteInfo stock = (StockAutoCompleteInfo)item;
18.        stringlowerReference = stock.Code.ToLower();
19.        stringlowerDescription = stock.Description.ToLower();
20.        stringlowerSearchText = searchText.ToLower();
21.        returnlowerReference.Contains(lowerSearchText) || lowerDescription.Contains(lowerSearchText);
22.    }
23.}
24.}

 

 

<telerikInput:RadAutoCompleteView x:Name="txtCode"SuggestionViewHeight="300"Filter="{Binding Filter}"  CompletionMode="StartsWith"   TextSearchPath="Reference"  Watermark="Search for Bom here...">
    <telerikInput:RadAutoCompleteView.SuggestionItemTemplate>
        <DataTemplate>
            <ViewCell>
                <StackLayout Orientation="Vertical">
                    <Label Text="{Binding Reference}"/>
                    <Label Text="{Binding Description}"/>
                    <BoxView BackgroundColor="Black"HeightRequest="1"  HorizontalOptions="StartAndExpand"/>
                </StackLayout>
            </ViewCell>
        </DataTemplate>
    </telerikInput:RadAutoCompleteView.SuggestionItemTemplate>
</telerikInput:RadAutoCompleteView>
<telerikInput:RadButton x:Name="btnFindBom"  BackgroundColor="#343C41"TextColor="White"  Clicked="BtnGetBomInfo_Clicked"  Text="Find Bom"></telerikInput:RadButton>

Search Description and Value

$
0
0

Another thing is that even though I am getting the message displayed I am not able to debug the Filter method to see what the item contains to see if their is an issue their my xamrain wont debug into that here is a short jinq video to  explain.

 

https://www.screencast.com/t/vI0u0iwhs

 

 

Tab Key Error

$
0
0

Hi Yoan,

Version is: 2019.2.618.45

This project has a lot of stuff in it. Let me see if I can duplicate in a simpler example and send that to you.

Wayne

Kendo react components and the website demonstrating it not working in IE 11

$
0
0

Stefan, 

I agree that the above example works in the Stackblitz environment. To reproduce it or to see it not working in the IE11, you could download the code given in the link above, run through your local Visual Studio Code IDE and see the output in IE11. This ought to reproduce the issue in your local. 

Testing this in Visual Studio Code IDE should be a good idea as this is the IDE we use for development.

Programmatic Sorting

$
0
0

Hi Wayne,

I've prepared a small sample project where placing the code you provided in the code-behind's constructor works as expected when initializing the source data and the data provider in the viewmodel's constructor. Please have a look and let me know how this differs from the setup at your end.

Nonetheless, I see no reason why you cannot apply the sort descriptor in the Loaded event of the control if this works for you. You can do so in an attached behavior or via the EventToCommandBehavior if you're concerned about breaking the MVVM pattern.

Please let me know about your thoughts on this.

Regards,Dilyan Traykov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.Learn More.

DataTable Column Binding with radGridView.

$
0
0
Hello, Muhammad,

Note that a Type Converter is used to convert values between different data types. Here are the four main methods that are usually used when implementing a custom Type Converter.

- Override the CanConvertFrom method that specifies which type the converter can convert from.
- Override the ConvertFrom method that implements the conversion.
- Override the CanConvertTo method that specifies which type the converter can convert to.
- Override the ConvertTo method that implements the conversion.
 
Due to the specific of the ToggleStateConverter it is necessary to implement the specific conversion depending on which types you want to convert. If you want to convert int values from another column you should create a separate TypeConverter's derivative which will convert from int to bool.

Should you have any other questions, do not hesitate to ask.

Regards,
Nadya
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.Learn More.

Search Description and Value

$
0
0

Yes that is what I have on my class constructor

As you can see i have no probelm showing items in the auto complete it just will refuse to search description field

I

 

private async void BindAutoComplete()
    {
 
        var SourceT = await restServices.GetBomAutoCompleteInfo();
 
        Source = SourceT.ToObservableCollection();
 
        txtCode.ItemsSource = Source.ToObservableCollection();
 
 
 
    }
}
/// <summary>
/// Gets or sets the filter.
/// </summary>
/// <value>The filter.</value>
public CustomAutoCompleteViewFilter Filter { get; set; }

 

<telerikInput:RadAutoCompleteViewx:Name="txtCode"SuggestionViewHeight="300"Filter="{Binding Filter}"  CompletionMode="StartsWith"   TextSearchPath="Reference"  Watermark="Search for Bom here...">
    <telerikInput:RadAutoCompleteView.SuggestionItemTemplate>
        <DataTemplate>
            <ViewCell>
                <StackLayoutOrientation="Vertical">
                    <LabelText="{Binding Reference}"/>
                    <LabelText="{Binding Description}"/>
                    <BoxViewBackgroundColor="Black"HeightRequest="1"  HorizontalOptions="StartAndExpand"/>
                </StackLayout>
            </ViewCell>
        </DataTemplate>
    </telerikInput:RadAutoCompleteView.SuggestionItemTemplate>
</telerikInput:RadAutoCompleteView>
<telerikInput:RadButtonx:Name="btnFindBom"  BackgroundColor="#343C41"TextColor="White"  Clicked="BtnGetBomInfo_Clicked"  Text="Find Bom"></telerikInput:RadButton>
publicScanListBom()
    {
        InitializeComponent();
        settingsFuel.LoadSettings();
        BindAutoComplete();
        Filter = newCustomAutoCompleteViewFilter();
 
 
 
    }

Off-screen (In-Memory) RadCartesianChart Rendering

$
0
0

For anyone who gets here: my problem with the chopped border turned out to be because I was using a non-integral size for the chart. It was something like (795.57, 551.369). A 1 pixel border did not show up on the bottom or right sides. When I adjusted the size to be an even number of pixels (e.g. 795, 551), the border was perfect.

Oddly, it seemed that the exported image was clearer with an integral size. I didn't even notice the saved image was fuzzy until compared with an image with integral size.

This all works. I'm creating charts at runtime in a background thread. The secret is to create the background thread and set it to be STA before running it. Then all works.

Thanks to Dinko.

-reilly.

 

Search Description and Value

$
0
0

Hello David,

That's strange - I have tested this again and the filter is searching in both properties.  I've attached a short video to show you how the sample app behaves on my side.

Currently I am clueless what could be the reason for the erroneous behavior you've come across, so may I ask you to try to isolate it in a runnable sample and send it over. You'd need to open a support ticket and attach it there.

Thanks in advance.

Regards,Yana
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items

Refactoring Test Files

$
0
0
Hi Ray,

I am pleased to see you found some time to explore our forums as well and I will be happy to provide some additional information on the topic. 

At first I would like to confirm that the request to implement breakpoints also for nested tests is completed and available in the product since the beginning of this year. So, you will be able to use the Visual Debugger against that parent test which only contains test as steps - set a breakpoint in the nested test, ensure you have set the debugger options to stop in quick execution mode and run the test. 

In addition to that you can use the partial execution options from the step context menuRun... -> To Here, From Here, Selected steps. So following the example you described, you can go for the following sequence of actions:
- open that parent test with two tests as steps
- here, you can either choose the first, or the second, depending on the current needs and then Run... -> To Here 
- this will trigger the test execution in the listed order and will run the steps until any of these fails, or the last step is executed. Then the recorded will be attached to the browser in its current state. 
- here you can continue recording new steps - these will get recorded in the active test in the Test Studio project.
- or you can open any other test, which contains steps against that current state of the page and execute any of its steps using Run... -> From Here, or Selected Steps. 
- to get back to the example - let's the quick execution fails on the last step of the first sub-test, you can open that sub test in the Test Studio project and work directly on it and its elements against the current active recording session. Once you fixed that error, you can open the second sub-test to be active in the Test Studio project and continue the execution using Run... -> From Here again using the same active recording session. 

I hope this will be useful for you as well. However, if you need any further assistance, please do not hesitate to get back to me. 

Regards,
Elena
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!

display tooltip on RadPanel

$
0
0

Hi there

I'm trying to show a tooltip on a RadPanel. Normally I'm using the ToolTipTextNeeded event for every Telerik control I used before. But this seem not to work here. I also tried the ToolTipText property on RadPanel.PanelElement. I also set AutoToolTip to true, without any success. What I tried:

1.privatevoidpanFiles_ToolTipTextNeeded(objectsender, ToolTipTextNeededEventArgs e)
2.{
3.    e.ToolTip.ToolTipTitle = "test1";
4.}

 

1.panFile1.ShowItemToolTips = true;
2.panFile1.PanelElement.AutoToolTip = true;
3.panFile1.PanelElement.ToolTipText = "test2";

 

1.panFile1.PanelElement.PanelFill.AutoToolTip = true;
2.panFile1.PanelElement.PanelFill.ToolTipText = "test";

 

However, the tooltip is still not showing up. I cannot find any information about it in the RadPanel documentation. Is this even possible for this control?

Best Regards,
Roman

Viewing all 84751 articles
Browse latest View live


Latest Images

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