Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
82 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
113 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
62 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
168 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
335 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
149 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
1 answer
138 views

I have a situation where where I need to only fired the needDatasource on a boolean statment.  It works fine for what I am doing to load the page on a querystring value.  Where the grid hiccups is when I try to use the Radgrid insert, the grid disappears becuase of the boolean statment, how can I set this statement when I postback to get at my template to insert data.

Dim fillGridNotes As Boolean = False
    Dim fillGridEmer As Boolean = False
 
    Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
        If Not IsPostBack Then
            Dim rspId As String = Request.QueryString("RSP")
 
            If rspId = String.Empty Then
                'Send to another page
            Else
                Dim userlogon As String = Split(Current.User.Identity.Name, "\")(1)
                HFUserId.Value = GetPersId(userlogon)
                HFRecruitId.Value = rspId
 
                LoadRSP(rspId)
                fillGridNotes = True
            End If
        End If
    End Sub
 
 
 
This is where I cannot ge thte grid to open to allow me to fill out the form and then postback to fill the grid.
 
 
  Protected Sub myRadNotes_ItemCommand(sender As Object, e As Telerik.Web.UI.GridCommandEventArgs) Handles myRadNotes.ItemCommand
        If (e.CommandName = RadGrid.PerformInsertCommandName) Then
            fillGridNotes = True
            Dim editedItem As GridEditableItem = CType(e.Item, GridEditableItem)
            Dim notes As TextBox = DirectCast(editedItem.FindControl("txtNotes"), TextBox)
            Dim rspId As Integer = 16533
 
            sql = "Insert tblRSPNotes (intRSPId, dtRSpNotesDateEntered, strRSPNotesDesc, intLoggedBy) VALUES (" & rspId & ", '" & Date.Now & "', '" & sanitizeString(notes.Text) & "', " & HFUserId.Value & ")"
 
            insertUpdateDelete(sql)
 
            myRadNotes.Rebind()
        End If
    End Sub
 
    Protected Sub myRadNotes_NeedDataSource(sender As Object, e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles myRadNotes.NeedDataSource
        'Load the Notes Grid
        If fillGridNotes = True Then
            sql = "Select intRspNotesId, CONVERT(varchar(10), dtRSPNotesDateEntered, 111) dtNotes, strRSPNotesDesc, mn.strFullname + ' ' + ISNULL(' ' + strRank, '') LoggedBy from tblRSPNotes n LEFT JOIN MNNGPersonnel..tblMNNatPersonnel mn on " _
                & "mn.intPersonnelId = n.intLoggedBy where intRSPID in (Select intRSpId from tblRSp where intRecruitId = " & HFRecruitId.Value & ") Order by dtRSPNotesDateEntered DESC"
 
            myRadNotes.DataSource = getReader(sql)
        End If
    End Sub


























Konstantin Dikov
Telerik team
 answered on 29 Apr 2014
1 answer
72 views
i'm having an issue setting up those two parameters when the key coming from the database is arabic
Conversion failed when converting the nvarchar value 'ج' to data type int
this error occurred, can anyone please tell me what the best way to make my radtreeview work ?
Boyan Dimitrov
Telerik team
 answered on 29 Apr 2014
1 answer
447 views
Hi I am using a multiselect radcombobox where i am binding the data dynamically at code behind. There is a rad button too on the page. On button click event I am always getting the CheckedItems.count = 0 at code behind. However if I am adding items in radcombo at UI side, I am able to get CheckedItems.count. Please suggest is there any way to get CheckedItems.count when data is binding dynamically at code behind. 
Shinu
Top achievements
Rank 2
 answered on 29 Apr 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?