Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
118 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
297 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
127 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
76 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
53 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
415 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
1 answer
107 views
Hi,

I am trying to Bind RadhtmlChart my column name contains '.' when this appears in the column it is throwing error,how can I handle this.

EX:

       dt.Columns.Add("id");
        dt.Columns.Add("data..."); // This contains '.' at end of column 
    
        DataRow dr = dt.NewRow();       
        dr[0] = "2011-12";
        dr[1] = "500";
        dt.Rows.Add(dr);
        ColumnSeries cs = new ColumnSeries();
        cs.LabelsAppearance.Visible = false;
        cs.Name = dt.Columns[1].ToString();
        cs.DataFieldY = dt.Columns[1].ToString();
        radChart.PlotArea.XAxis.DataLabelsField = dt.Columns[0].ToString();
      
        radChart.PlotArea.Series.Add(cs);
        radChart.PlotArea.YAxis.MinValue = 0;
       
        cs.LabelsAppearance.ClientTemplate = "#= category #";
        cs.TooltipsAppearance.DataFormatString = "{0:N0}";
        cs.TooltipsAppearance.ClientTemplate = "#= category #: #= value #";
        radChart.PlotArea.XAxis.Type = Telerik.Web.UI.HtmlChart.AxisType.Category;
        radChart.PlotArea.XAxis.LabelsAppearance.DataFormatString = "yyyy-MM";
        radChart.PlotArea.Series.Add(cs);
        radChart.PlotArea.XAxis.LabelsAppearance.Visible = true;
        radChart.DataSource = dt;
        radChart.DataBind();
Stamo Gochev
Telerik team
 answered on 29 Apr 2014
1 answer
205 views
Hello,
I want to change the back color Notification TitleBar.
How can i apply my own color for TitleBar?
Shinu
Top achievements
Rank 2
 answered on 29 Apr 2014
1 answer
88 views
Hi Iam having two Rad Comboboxes depending on selected value of first combobox(i.e--None Selected--) i have to display in second combobox also same text --None selected--  And vice versa...and other than --none selected-- if i selected then second combobox should show its respective data. .Please help me to solve this  problem.
Princy
Top achievements
Rank 2
 answered on 29 Apr 2014
9 answers
125 views
Hi
I am converting to the latest controls and I am getting the following runtime error:

    intKey is neither a DataColumn nor a DataRelation for table GroupedTable0.

This code is currently working with version 2010.3.1109 of controls.  The data for the grouped grid is coming from a stored procedure via a strongly types data adapter (i.e. dataset).  I am applying a filter on the data, prior to manually binding the grid.  When I bind the grid I get the above exception.
I have added a intKey column with visibility set to false to the columns collection but that did not help.

Phil
Shinu
Top achievements
Rank 2
 answered on 29 Apr 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?