Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
202 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
178 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
1.1K+ 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
310 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
601 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
1 answer
371 views
Hello Team,
I am using Telerik Version 14.1. I have created simple RadChart in Pie type. But I am unable to show the % of area covered. Can you please suggest how to show the percentage over the chart. I tried a lot & referred so many links. still didn't get. Please help me out.


For the ref i have attached image.


let me know for any query.

aspx page:
<telerik:RadChart ID="RadChart1" runat="server" Width="540px" Height="330px" DataSourceID="SqlDataSource1" DefaultType="Pie" ChartTitle-TextBlock-Text="Summary Chart">
            <Series>
             <telerik:ChartSeries Type="Pie" DataYColumn="Hits" DataLabelsColumn="PageName">
                <Appearance LegendDisplayMode="ItemLabels" />
            </telerik:ChartSeries>
            </Series>
        </telerik:RadChart>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:RPConnectionString %>" 
            SelectCommand="xsp_GetPageRank" SelectCommandType="StoredProcedure"></asp:SqlDataSource><br />








Danail Vasilev
Telerik team
 answered on 25 Apr 2014
5 answers
395 views
Hi,

Is telerik have default Chart Color Palette  ?  not in system color (AreaChart.PlotArea.YAxis.MinorGridLines.Color =color.white;)

Example :

AreaChart.PlotArea.YAxis.MinorGridLines.Color =ChartColorPalette.AcidWash;

Kannan.
Stamo Gochev
Telerik team
 answered on 25 Apr 2014
1 answer
133 views
I think a bug might have cropped up into the latest Telerik release (Q1 '14, April SP release). Typically, when clearing and adding items to a combo box client side, script like this has worked:

var combo = $find("MyComboList")
combo.trackChanges();
combo.clearItems();
// code to add items
combo.commitChanges();

However, with the current release, the above code will leave the previously selected item in the combo box as well. In order to remove it, you have to manually clear it, so the above code now becomes this:

var combo = $find("MyComboList")
combo.trackChanges();
combo.clearSelection(); // ensures that the current selected item will be removed as well
combo.clearItems();
// code to add items
combo.commitChanges();

This seems like a bug to me. Can someone from Telerik confirm?

Thanks,

Mike Oliver
Shinu
Top achievements
Rank 2
 answered on 25 Apr 2014
1 answer
594 views
Hello,
I'm having couple of RadComboBoxes in my page and one of it is not firing the selectedindexchanged event when the first item is selected. If I select the second list item, the event is firing. Here is my code:

<tel:RadComboBox ID="rcbArea" runat="server" Height="110px" DropDownAutoWidth="Disabled" Width="213px"
                                AutoPostBack="true" HighlightTemplatedItems="true"
                                AppendDataBoundItems="true"
                                EmptyMessage="Select Area"
                                Localization-CheckAllString="Select All"
                                Localization-AllItemsCheckedString="All Divisions Selected"
                                Font-Italic="false"
                                CheckBoxes="true" EnableCheckAllItemsCheckBox="true"
                                OnSelectedIndexChanged="rcbArea_SelectedIndexChanged">
                                <ExpandAnimation Type="OutQuart" Duration="500" />
                                <CollapseAnimation Type="OutQuint" Duration="300" />
                            </tel:RadComboBox>



Shinu
Top achievements
Rank 2
 answered on 25 Apr 2014
0 answers
118 views
Hi guys,

The Telerik ASP.NET Diagram control is now available for download and will help you create rich, high-performing and interactive diagrams with ease.

The Beta installations are available at the bottom of the Download UI for ASP.NET AJAX - Version: 2014.1 403 (Apr 3, 2014) section under Your Telerik.com account. You can obtain the trial MSI installation right from here.

You can also test the control in the live demos and add your comments and suggestions in the Feedback portal.

Best regards,
Rumen
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 25 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?