Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
138 views
I have a RadTileList that includes Tiles in the ASPX markup as well as others that are dynamically created on the server (not databound).

Why can't I remove a RadTile that was defined in the ASPX markup from the code behind?  in the snippet below - the tile reference is found - but .Remove does nothing.  

Dim tile = RadTileList1.GetAllTiles.Find(Function(x) x.ID = item.ID)
If tile IsNot Nothing Then
    RadTileList1.GetAllTiles.Remove(tile)
End If
Marin Bratanov
Telerik team
 answered on 29 Apr 2014
1 answer
310 views
Could someone tell me which version was the Resize option added to the textbox?

We have a system that is currently still using Q3 2010 (outside of our control) and while I can add it to the html without it causing an error, it doesn't actually do anything so I'm guessing it was added after this version and just want confirmation....

Thanks
Shinu
Top achievements
Rank 2
 answered on 29 Apr 2014
1 answer
753 views
Hello,

I want to add some images to my database to a binary data field.
But the image sould always the same size. But the original file can be different.
When i add the fila via Async upload, the file must first resize to my dimensions and fit the longer edge. Then the crop tool should run automatically and appears on imageEditor (no other tools) and the user sould set the crop the image by the correct aspect ratio.

At the final i want it save as a binary file to my database.

What i want is all images in my database sould 800 px x 300 px. But this is not a most common used ratio. Images must resized and cropped. This is ok but the image must always cropped by the user, because it can crop a false side if i make this automatically.

I dont want a tool inside my imageEditor. The crop will run after the upload and users will crop the image only at 800x300 and click a button to finish the proces.

So how can i make this? Is there a sample that i can use it?

Slav
Telerik team
 answered on 29 Apr 2014
1 answer
87 views
How to init/configure telerik controls to look similar on every website page? I.e. very similar what I can do with theme's skin for asp.net controls.
E.g. have all DatePickers with the parameters below.
<telerik:RadDatePicker runat="server" Width="140px"
    DateInput-EmptyMessage="mm/dd/yyyy" MinDate="2000-01-01">
</telerik:RadDatePicker>
Marin Bratanov
Telerik team
 answered on 29 Apr 2014
3 answers
119 views
The width of a splitter pane is sometimes calculated as 0 when the splitter is inside a PageView that is inside a splitter and the Selected property of the PageView is being set in a server side event.

Here is a demo of the error.  By clicking the Next Tab button it is changing the selected PageView.  RadPane7 and RadPane8 inside PV0 will end up with a width of 0.
​
<%@ Page Language="VB" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<!DOCTYPE html>
 
<script runat="server">
    Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
        If Page.IsPostBack = False Then
            MultiPage.PageViews(0).Selected = True
        End If
    End Sub
     
    Protected Sub NextButton_Click(sender As Object, e As EventArgs) Handles NextButton.Click
        Dim TabIndex As Integer = 0
 
        If TabIndexLabel.Text = 0 Then
            TabIndex = 1
        End If
     
        TabIndexLabel.Text = TabIndex
        MultiPage.PageViews(TabIndex).Selected = True
    End Sub
</script>
 
<head runat="server">
    <title></title>
</head>
<body>
  <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
         
        <asp:Label ID="TabIndexLabel" runat="server" Text="0" Visible="false"></asp:Label>
 
        <telerik:RadSplitter ID="RadSplitter1" runat="server">
            <telerik:RadPane ID="RadPane1" runat="server" Scrolling="None" Width="100px">
                <asp:Button ID="NextButton" runat="server" Text="Next Tab" />
            </telerik:RadPane>
 
            <telerik:RadPane ID="RadPane2" runat="server" Scrolling="None">
                <telerik:RadMultiPage ID="MultiPage" runat="server">
                    <telerik:RadPageView ID="PV0" runat="server">
                        <telerik:RadSplitter ID="Splitter0" runat="server">
                            <telerik:RadPane ID="RadPane7" runat="server">
                            </telerik:RadPane>
 
                            <telerik:RadPane ID="RadPane8" runat="server">
                            </telerik:RadPane>
                        </telerik:RadSplitter>
                    </telerik:RadPageView>
 
                    <telerik:RadPageView ID="PV1" runat="server">
                        <telerik:RadSplitter ID="Splitter1" runat="server">
                            <telerik:RadPane ID="RadPane13" runat="server">
                            </telerik:RadPane>
 
                            <telerik:RadPane ID="RadPane14" runat="server">
                            </telerik:RadPane>
                        </telerik:RadSplitter>
                    </telerik:RadPageView>
                </telerik:RadMultiPage>
            </telerik:RadPane>
        </telerik:RadSplitter>
  </form>
</body>
</html>
Dobromir
Telerik team
 answered on 29 Apr 2014
1 answer
1.1K+ views

On the RadDatePicker control, having the MinDate default set to only 1/1/1980 -- which is by design -- is bizarre.

Now that we learned about it (via customer complaint that threw a big generic error message across the page) it's annoying to set all my MinDates to a far less value. Any reason you can't make it at least 1/1/1900 or 1/1/1000?

Also, are there any other Telerik date controls with this odd limitation? I want to know so I can change them all as well, rather than have a customer discover it.
Vasil
Telerik team
 answered on 29 Apr 2014
1 answer
69 views
In http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/filteringcombo/defaultcs.aspx with "Contains" filtering it is possible to start typing, e.g. "fr" than leave it as is, i.e. the combobox will have text "fr" which does not match to any item.
How to force the user either to select an dropdown item or on cleanup the incomplete combobox value?
If that is not possible how to make sure that the item is selected?
Hristo Valyavicharski
Telerik team
 answered on 29 Apr 2014
4 answers
179 views
Hi,
Is there a way to delete the selected row using keyboard delete.?

Thanks,
Ryann. 
Princy
Top achievements
Rank 2
 answered on 29 Apr 2014
1 answer
345 views
I am using a ProgressArea control to monitor a long process. I would like to stop the process if the user press the Cancel button. When the Cancel button is pressed, the ProgressArea goes away but in actually the process is still running and the Response.IsClientConnected still returns true. Several demos indicate that if the Cancel button is pressed the Response.IsClientConnected will be false. One such demos is https://demos.telerik.com/aspnet-ajax/progressarea/examples/customprogress/defaultcs.aspx. The code has the following comment:  
                 //Cancel button was clicked or the browser was closed, so stop processing

So my question is: How can I stop a long running process monitored by the ProgressArea.

This is related to the following question asked previously: http://www.telerik.com/forums/strange-behavior-with-the-cancel-button-in-radprogressarea
but was never really answered satisfactorily. This indicated that Telerik was working on a solution as far back as 2008.

Thanks for any suggestions.

Chris J.
Peter Filipov
Telerik team
 answered on 29 Apr 2014
1 answer
152 views
I am using Entity Framework in this instance and would like to group my radgrid by a field located in another table related to the main item.  I have used an include statement to bring back the additional entity (one to one relationship between these tables) as lazy loading is enabled.  I want to group on "Title" field in my table "Activity"  The navigation property is "Activity1" so I have used the following to populate my datasource:

 _context.LEResults.Include("Activity1").Where(R => R.EmployeeID == EmployeeId && R.Active == true).OrderBy(E => E.AttemptDate).ToList();

I know this is working because I can display Activity1.Title as a regular gridboundcolumn.

I have got this to work before and actually have the other project in front of me but I cannot figure out what is different.  Is there anything anyone can think of that I may have missed?  The following code informs me that the field Activity1.Title is missing from my source table.

<GroupByExpressions>
                                    <telerik:GridGroupByExpression>
                                        <GroupByFields>
                                            <telerik:GridGroupByField FieldName="Activity1.Title" />
                                        </GroupByFields>
                                        <SelectFields>
                                            <telerik:GridGroupByField FieldName="Activity1.Title" HeaderText="Activity" />
                                        </SelectFields>
                                    </telerik:GridGroupByExpression>
</GroupByExpressions>


Robin
Top achievements
Rank 1
 answered on 29 Apr 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?