Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
110 views

Telerik.Web.UI:  2017.3.913.45

 

I am using RadTextBox and trying to load the content of the XML file using c# code. This works fine without any issues and loads the XML content. After loading it, the partial just  work and it fails. It post at all.  I was able to repro this issue and it's very simple to do that. Is this a known issue? Any fix?

 

 

Ravi
Top achievements
Rank 1
 answered on 21 Feb 2018
0 answers
155 views

Hello,

I'm using the Load On Demand Scenario & I'm attempting to force all child nodes to collapse when its parent has collapsed. Here is the code that I have so far. Any help on this would be greatly appreciated.

Private Sub iTeam_DynamicOrgChart_Load(sender As Object, e As EventArgs) Handles Me.Load
        Dim oConn As New System.Data.SqlClient.SqlConnection(ConfigurationManager.ConnectionStrings("Connection").ConnectionString)
        Dim oCmd As New SqlCommand
        Dim oData As SqlDataReader
        Dim oAdapter As New SqlDataAdapter(oCmd)
        Dim oDataSet As New DataSet
 
        Try
            oConn.Open()
 
            'get employee hierarchy
            With oCmd
                .Parameters.Clear()
                .Connection = oConn
                .CommandType = Data.CommandType.StoredProcedure
                .CommandText = "EmployeeHierachySP"
                .Parameters.AddWithValue("@NameOnly", NameOnly.Checked)
            End With
            oAdapter.Fill(oDataSet)
 
            With OrgChart
                .DisableDefaultImage = True
                .LoadOnDemand = OrgChartLoadOnDemand.Nodes
                .EnableDrillDown = True
                .PersistExpandCollapseState = True
                .DataTextField = "UserName"
                .DataFieldID = "UserID"
                .DataFieldParentID = "ManagerUserID"
                .DataCollapsedField = "Collapsed"
                .DataSource = oDataSet
                '.GroupColumnCount = 4
                '.GroupEnabledBinding.GroupItemBindingSettings.DataTextField = "UserName"
                '.GroupEnabledBinding.GroupItemBindingSettings.DataFieldID = "UserID"
                '.GroupEnabledBinding.GroupItemBindingSettings.DataFieldNodeID = "ManagerUserID"
                '.GroupEnabledBinding.GroupItemBindingSettings.DataSource = oDataSet
                '.GroupEnabledBinding.NodeBindingSettings.DataFieldID = "UserID"
                '.GroupEnabledBinding.NodeBindingSettings.DataFieldParentID = "ManagerUserID"
                '.GroupEnabledBinding.NodeBindingSettings.DataSource = oDataSet
 
                .DataBind()
            End With
 
        Catch ex As Exception
            Response.Write(ex.ToString)
        Finally
            oConn.Dispose()
            oConn = Nothing
            oCmd = Nothing
            oData = Nothing
            oDataSet.Dispose()
            oDataSet = Nothing
            oAdapter.Dispose()
            oAdapter = Nothing
        End Try
    End Sub
 
 
    Protected Sub OrgChart_NodeDataBound(sender As Object, e As Telerik.Web.UI.OrgChartNodeDataBoundEventArguments) Handles OrgChart.NodeDataBound
        ''e.Node.CssClass = "SmallNode"
        'If e.Node.Level = 1 Then
        '    e.Node.Collapsed = True
        'ElseIf e.Node.Level > 1 Then
        '    'e.Node.Collapsed = False
        'End If
 
        e.Node.CssClass = "Level" & e.Node.Level
 
        For Each oGroupItem As OrgChartGroupItem In e.Node.GroupItems
            If NameOnly.Checked Then
                oGroupItem.CssClass = "SmallNodeNameOnly"
            Else
                oGroupItem.CssClass = "SmallNode"
            End If
        Next
    End Sub
 
    Private Sub OrgChart_NodeExpandCollapse(sender As Object, e As OrgChartNodeExpandCollapseEventArguments) Handles OrgChart.NodeExpandCollapse
        Try
 
            If e.State = OrgChartNodeExpandCollapseState.NodeCollapsed Then
 
                For Each employee As OrgChartNode In e.SourceNode.Nodes
                    employee.Collapsed = True
                Next
            End If
        Catch ex As Exception
 
        End Try
    End Sub
Johnathan
Top achievements
Rank 1
 asked on 20 Feb 2018
3 answers
258 views

Hi, we're trying to use the ASP.NET AJAX controls in our SharePoint pages as visual web parts. We've only used the RadGrid, RadComboBox & RadAjaxManager and they seem to work for the most part. We're trying to incorporate the RadScriptManager as well. We can't add it inside the web part as SharePoint throws the error "Only one instance of a ScriptManager can be added to the page". Which makes sense as the MasterPage (seattle.master) uses a ScriptManager. So, we've tried removing the ScriptManager and replace it with RadScriptManager like:

<!--SPM:<asp:ScriptManager id="ScriptManager" runat="server" EnablePageMethods="false" EnablePartialRendering="true" EnableScriptGlobalization="false" EnableScriptLocalization="true"/>-->

to

<!--SPM:<telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePageMethods="false" EnablePartialRendering="true" EnableScriptGlobalization="false" EnableScriptLocalization="true"/>-->

 

The <!--SPM:--> tag is used in the seattle.html because MS don't recommend you edit the seattle.master file directly in SharePoint 2013. But it throws the same error "Only one instance of a ScriptManager can be added to the page" in the ULS logs. It's like SharePoint is ignoring the RadScriptManager control.

 

Any thoughts?

 

We're using version 2018.1.117.40 of the ASP.NET AJAX controls and SharePoint 2013 (15.0.4569.1000) with the latest patches as at 2018/02/16.

Vessy
Telerik team
 answered on 20 Feb 2018
5 answers
183 views
Hi,

I looked at plenty of code and can't really find a clear answer.

What I want to do is have a grid with paging, sorting and filtering. Once I bind my dataset (read only, no CRUD), even if i use pagination and filters, i want all the dataset to be downloaded (may be up to 3000 records) and then everything like filtering, changing page and sorting be done client side without using any callback to AJAX nor Postback.  

The reason is that the call to the database has so many calculations that it takes forever to get the dataset to be filled. The user won't wait 30 to 40 sec each time he clicks on one of the features.

Also, I don't want to cache the resultset inside the session or on a temporary file on the server.  I want it all in the browser.

This will be use on a private Intranet on IE8.
It is not intended for a wide audience.

Is that possible?
And if so, how do i do it?

Kindest regards,

Michel
Bibek
Top achievements
Rank 2
 answered on 20 Feb 2018
0 answers
148 views

Hi

Is there a way to check (boolean) if the file is pass / fail clientside validation in OnClientFileSelected?

I want to create a form which the submit button is disabled if RadAsyncUpload has files that failed at client side validation. Then enable submit button when there's no fail validation in the list (OnClientFileUploadRemoved event).

I know failed file won't appear in UploadedFiles but still, I need that validation check which  boolean.

Any idea?

 

thanks

Dika
Top achievements
Rank 1
 asked on 20 Feb 2018
7 answers
438 views
I have a grid and I am exporting to excel.

On the web page, I have a DateTime field that displays using the following format:

 
<telerik:GridBoundColumn HeaderText="Message Date" DataField="messageDate" UniqueName="messageDate" SortExpression="messageDate" ShowSortIcon="false" DataFormatString="{0:MM/dd/yyyy hh:mm:ss tt}" DataType="System.DateTime" ></telerik:GridBoundColumn>

On the web page the seconds get displayed. When I export the grid to Excel the seconds are no longer displayed.
The field is displayed on the spreadsheet like the following : 07/21/10 10:06 AM.

If I click on the cell and look at the data for the cell the seconds are indeed there.
How do I force Excel to use my specific DateTime format?

Thanks for the help.

Felipe
Attila Antal
Telerik team
 answered on 20 Feb 2018
0 answers
128 views

Hi all,

i want to have a repeated table with forms. One guy sayd, that i should use grid for this. So i want to create something like:

<grid ID="Grid1" runat="server" DataSourceID=???>

<MasterTableView  DataKeyNames="fldId" DataSourceID=??? AutoGenerateColumns="False">

<form runat="server" ID=??? DataSourceID=??? DataKeyNames="fldId">

</form>

</MasterTableView >

</grid>

The form is created with fields from DB based on the fldId and i want to have repeated forms with all fldId's. I hope your can understand my idea.

 

Thank you in advance!

Alexey
Top achievements
Rank 1
 asked on 20 Feb 2018
0 answers
121 views

Hi,

is it possible to diable the automatic calculation of a summary task. My goal is it to have a specifiv start and end for the summary task not depending on the start and end of the child-tasks.

best regards

Thorsten

Thorsten
Top achievements
Rank 1
 asked on 20 Feb 2018
6 answers
506 views
  Hello All,

I am using RadGrid and binding data dynamically in code behind file.

 Code Behind:
RadGrid grSampleWorkSheet = new RadGrid();
                                grSampleWorkSheet.ID = WSheet.Name + "-" + m_LoopCount.ToString();
                                //grSampleWorkSheet.Columns.Remove(0);// = false;
                                grSampleWorkSheet.ShowGroupPanel = Convert.ToBoolean(System.Configuration.ConfigurationManager.AppSettings["ShowGroupPanel"]);
                                grSampleWorkSheet.AllowPaging = Convert.ToBoolean(System.Configuration.ConfigurationManager.AppSettings["AllowPaging"]);
                                grSampleWorkSheet.ShowFooter = Convert.ToBoolean(System.Configuration.ConfigurationManager.AppSettings["ShowFooter"]);
                                grSampleWorkSheet.ShowStatusBar = Convert.ToBoolean(System.Configuration.ConfigurationManager.AppSettings["ShowStatusBar"]);
                                grSampleWorkSheet.Skin = Convert.ToString(System.Configuration.ConfigurationManager.AppSettings["TelerikSkin"]);
                                grSampleWorkSheet.MasterTableView.PagerStyle.Mode = GridPagerMode.NumericPages;
 
 
                                WorkSheetID = WSheet.ID;
                                strWorkSheetID = objWorkSheet[0].Name;
                                //if (ddlWorkSheets.SelectedValue == strWorkSheetID)
                                //{
                                dtworksheet = GenerateNormalizedRateSheet.GenerateDomesticSampleData(objRateSheet, WorkSheetID, out ErrorCode);
                                if (string.IsNullOrEmpty(ErrorCode))
                                {
                                    if (dtworksheet != null && dtworksheet.Rows.Count > 0)
                                    {
                                        grSampleWorkSheet.DataSource = dtworksheet;
                                        grSampleWorkSheet.Columns.Remove(0);
                                        grSampleWorkSheet.DataBind();
                                        grSampleWorkSheet.MasterTableView.DataSource = dtworksheet;
                                        grSampleWorkSheet.MasterTableView.Columns.Remove(0);
                                        grSampleWorkSheet.MasterTableView.DataBind();
                                        Label lblDomesticTitle = new Label();
                                        lblDomesticTitle.ID = "lbl-" + WorkSheetID;
                                        lblDomesticTitle.Text = "<h5>" + strWorkSheetID + "</h5>";
                                        PhSampleData.Controls.Add(lblDomesticTitle);
                                        PhSampleData.Controls.Add(grSampleWorkSheet);
                                        btnNextStep.Enabled = true;
  }
}

I have also attached image file of result.

Thanks in Advanced...
Prasanth
Top achievements
Rank 1
 answered on 19 Feb 2018
1 answer
204 views
I'm using the rie_onImageLoading Method to load a serverside Image into the control at Page_Load. Now, when selecting another RadioButton of the list, I would like to load another image (preferably with Ajax/RadAjaxManager without postback) into the control. How can I achieve it? All other controls have sth. like "DataSource", but I'm afraid the RIE doesn't have it...
Vessy
Telerik team
 answered on 19 Feb 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?