Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
149 views
We try to follow the demo example in http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/batch-editing/defaultcs.aspx and found out that textbox required filed validation with ColumnValidationSettings does not work for ProductName for new rows.

Is that expected behaviour? Any workarounds?
Konstantin Dikov
Telerik team
 answered on 25 Apr 2014
2 answers
163 views
I have a grid with a number of columns with radcombobox filter templates. I want to be able to select a filter on a column (eg Company) and then select a filter on another column (eg Part Type) and have the filter expression combine so I could see part types for a particular company only or if further filters are selected then have them added to the filter clause.

I am able to do this with one combo, but not combine the expressions.

protected void cboFilterCompany_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
    RadComboBox combo = sender as RadComboBox;
    ViewState["CompanyFilterVal"] = e.Value; //to persist value
 
    GridColumn column = grdParts.MasterTableView.GetColumnSafe("Company");
 
    //if (grdParts.MasterTableView.FilterExpression != "")
    //{
    //    //append?
    //}
 
    grdParts.MasterTableView.FilterExpression = "([Company] = '" + e.Text + "')";
    column.CurrentFilterFunction = GridKnownFunction.EqualTo;
    column.CurrentFilterValue = e.Text;
 
    grdParts.MasterTableView.Rebind();
}


Marc
Top achievements
Rank 1
 answered on 25 Apr 2014
1 answer
198 views
I have a Radgrid. On one of my sites (asp.net 2.0) i have telerik 3.5 bin files. This new site is in 4.5. So I intend to use the latest 4.5 telerik files. I have taken the same source code for one of the pages on my 2.0 and used it here in 4.5. I am unable to display the grid properly.
It is appearing weirdly. I am guessing there are some web.config changes I am missing. Also, I have a whole bunch of "3.5"s assemblies,handlers and httpHandlers. Should I change them to 4.5s? 
i am attaching 3 images. The names of images are self descriptive. Please find them and let me know if you need some info from me.
Thanks
Viktor Tachev
Telerik team
 answered on 25 Apr 2014
1 answer
187 views
Need selected a one week with a button
Shinu
Top achievements
Rank 2
 answered on 25 Apr 2014
1 answer
119 views
Hi All,

I have a radgrid in my web application in which I disable the grid due to some conditions in code, but when the items(rows) exceed the height of grid I am not able to see the content as scrolling is also disabled due to grid being disabled.

I have tried the below code so far in order to enable the RadGrid but set the columns to readonly.

RGSellingEntity.Enabled = true;
                bool ReadOnly = true;
                foreach (GridColumn col in RGSellingEntity.MasterTableView.Columns)
                {
                    if (col.ColumnType == "GridBoundColumn")
                    {
                        col
                        GridBoundColumn boundCol = (GridBoundColumn)col;
                        boundCol.ReadOnly = ReadOnly;
                    }
                    if (col.ColumnType == "GridTemplateColumn")
                    {
                        GridTemplateColumn tempCol = (GridTemplateColumn)col;
                        tempCol.ReadOnly = ReadOnly;
                    }
                }

but it did not work, the thing I want is that the radgrid should be in disabled except :the scrollbars(vertical) so that user can scroll through the items/rows in radgrid.
I need to do this code behind based on some conditions.

Can someone please help ASAP?

Thanks in advance!

regards,
Peeyush Pandey

Princy
Top achievements
Rank 2
 answered on 25 Apr 2014
1 answer
120 views
I have a stiuation where becuase of how I load the page I need to stick in a fillGrid as boolean = false at the top of the load page to keep the NeedDataSource from firing.  I then turn it to true when it can fire and rebind the grid.  Everything works great up until I need to use the insert of the radgrid and then it bombs out.

  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
 
 
  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
 
 
 
Here is where I am having the problem though, becuase how can I set the boolean statement to true when posting back to do an insert statment on the radgrid.
 
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













































Princy
Top achievements
Rank 2
 answered on 25 Apr 2014
3 answers
110 views
hi,

I want to compare two different grid columns data. How can do this on server side. Please provide help full solutions.


Thanks,
Rahul
Princy
Top achievements
Rank 2
 answered on 25 Apr 2014
35 answers
992 views
Hi all,
I am using the latest version of async control with a handler to upload user images.

The handler code is inside a try...catch statement:
 
    protected override IAsyncUploadResult Process(UploadedFile file, HttpContext context, IAsyncUploadConfiguration                      configuration, string tempFileName)
   {
        SampleAsyncUploadResult result = new SampleAsyncUploadResult();
        result.ImageUri = string.Empty;
        result.ImageID = 0;     
        try 
        {
             .... process image stream......
        }
        catch (Exception e)
        {
            Logger.Error("Error in IAsyncUploadResult Process.....", e);
            result.ImageUri = string.Empty;
            result.ImageID = 0;
        }
        return result;
    }

However, I never see the above error in my log files... Instead I often see the following error, which is logged on the application error even of global.asax:

ERROR 2011-07-19 19:18:47,994 - Application Error by user: 
Telerik.Web.UI.AsyncUpload.AsyncUploadHandlerExeption: RadAsyncUpload handler is registered succesfully, however, it may not be accessed directly.
   at Telerik.Web.UI.AsyncUpload.RequestData..ctor(HttpContext context)
   at Telerik.Web.UI.AsyncUploadHandler.EnsureSetup()
   at Telerik.Web.UI.AsyncUploadHandler.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Can you please help me troubleshoot this problem....

Thank you for your time,
Panagiotis.
Genady Sergeev
Telerik team
 answered on 25 Apr 2014
2 answers
247 views
Hi,

I use rad editor in my page, when using telerik version 2012.2.724.40, it shows some design issue in google chrome ( see the image), and when i use the version  2013.3.1324.40, it display the editor correctly, 
Please let me know how to fix the issue in version 2012.2.724.40.

thanks

Ianko
Telerik team
 answered on 25 Apr 2014
6 answers
530 views
Hi Telerik Team,

We try to find a way to customize the file upload control in the Editor's *.manager. The idea is we want to make two tabs in the file upload window, one is select files from local computer which is the same function as now and we also want to add a new tab for external applications. We will implement the new tab feature by ourselves.

We are struggling to find a solution to add two tabs and implement our customized feature in file upload control. Could you please help us out ?

The interface should look like what we see in the attachment.

Thanks in advance!

Lan
Vessy
Telerik team
 answered on 25 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?