Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
21 views

Hi,

 

I am trying to implement form template demo here, https://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/form-template-update/defaultvb.aspx . The problem is that it is throwing error on 'Bind' that it is not declared. I am using .NET 4.6..1 . The only differences are is that with the sqldatasource, it's running stored procedures rather than a query and It's in a radajaxpanel.

 

 

Paul
Top achievements
Rank 1
Iron
 answered on 23 Aug 2023
0 answers
40 views

 

The RadMultiSelect implementation has one error that WCAG 4.1.1 parsing is catching. There is a duplicate span with the same id.

Found in the page source of the demo page (similar to how I implemented as well):

https://demos.telerik.com/aspnet-ajax/multiselect/virtualization/defaultcs.aspx

<select name="ctl00$ContentPlaceholder1$RadMultiSelect1" multiple="" id="ctl00_ContentPlaceholder1_RadMultiSelect1" class="RadMultiSelect RadMultiSelect_Silk" style="width:400px;">
<span id="ctl00_ContentPlaceholder1_RadMultiSelect1_WebServiceCDS" style="display:none;"></span><input id="ctl00_ContentPlaceholder1_RadMultiSelect1_ClientState" name="ctl00_ContentPlaceholder1_RadMultiSelect1_ClientState" type="hidden" />
</select><span id='ctl00_ContentPlaceholder1_RadMultiSelect1_WebServiceCDS' style='display:none'></span>

Hudson
Top achievements
Rank 1
 asked on 23 Aug 2023
1 answer
14 views

Hi Telerik team,

the "Contrast Security" tool we use shows us a "Untrusted Deserialization" Vulnerability found on one of the ASPX (webForms) page where we utilize RadMultiSelect control. (Our current version is 2021.1.119.45). 

Could you please suggest any options now to fix it, please?  

Details:

Tracked the following data from "ctl00_Main_content_ddlMSelectMultipleStaff_ClientState...:

POST /vosnet/communications/scheduler/default.aspx

ctl00_Main_content_ddlMSelectMultipleStaff_ClientState={"enabled":true,"selectedItems":[],"deselectedItems":[],"value":[2613],"selectedDataItems":[{"text":"Skaggs","value":"2613","Lastname":"Skaggs","Userid":2613,"attributes":{"FullName":"Skaggs Kari","Color":"background-color:rgb(89,20,195);","ColorARGB":"5838019"}}]}&ctl00$textsize=.......SNIP...........

...which was accessed within the following code:
Telerik.Web.UI.RadMultiSelect.LoadPostData()

...and ended up being deserialized with code that looks like this:
m = serializer.Deserialize<M>("{"enabled":true,"selectedItems":[],"deselectedI...")

 

Konstantin
Top achievements
Rank 1
Iron
 updated answer on 22 Aug 2023
1 answer
36 views

Please help.

Hello. I have put a telerik grid inside an asp update panel, the update panel is updated every 5 seconds by a asp timer on the same page. Inside the timer's OnTick event, I wrote RadGrid.Rebind() since the datasource is changing over time.

There is an edit button column for RadGrid, when user presses this button inside this column to edit corresponding record, the input values are always flushed out by RadGrid.Rebind. By the way, the edit mode of grid is in line editing.

In order to handle this issue, I added code inside the timer's OnTick event before RadGrid.Rebind, that is to check if RadGrid.EditItems.Count > 0 then return and don't rebind. Now the input values won't be flushed but the mouse cursor will always be reset.

Is there any possible way to realize my requirement, keep input values in edit mode while the RadGrid is inside an update panel that updates every few seconds?

Thanks!

Doncho
Telerik team
 answered on 21 Aug 2023
3 answers
4.8K+ views
People, can you help to select radcombo item in server side?
Look in my example

drpActive.SelectedValue = 2;

When I try this example above, RadComboBox does not select the element.

Can you help me to solve this, please?

Best Regards,

Milton Camara
Johnny
Top achievements
Rank 3
Bronze
Iron
Iron
 updated answer on 18 Aug 2023
1 answer
25 views

Is it possible to have a stacked graph where the y axis labels only show to inticate teh top of each part of the stack, eg 143 then next shows at 159 (based ont eh 2nd value of 16) and so on?

I thought, seeing as you can specify each "series" step that it might be doable but its not working for me

Here is a snapshot of my code:
            graphEmailAlerts.DataSource = eAdatatable
            graphEmailAlerts.DataBind()
            graphEmailAlerts.Visible = True

            graphEmailAlerts.Appearance.FillStyle.BackgroundColor = Drawing.Color.Transparent

            'Y axis
            graphEmailAlerts.PlotArea.YAxis.AxisCrossingValue = 0
            graphEmailAlerts.PlotArea.YAxis.Color = Drawing.Color.Black
            graphEmailAlerts.PlotArea.YAxis.MajorTickType = HtmlChart.TickType.Outside
            graphEmailAlerts.PlotArea.YAxis.MinorTickType = HtmlChart.TickType.None

            Dim totalvalue = eAdatatable.Rows(0).Item("value1") + eAdatatable.Rows(0).Item("value2") + eAdatatable.Rows(0).Item("value3")

            graphEmailAlerts.PlotArea.YAxis.MinValue = 0
            graphEmailAlerts.PlotArea.YAxis.MaxValue = CDec((Math.Ceiling((totalvalue * 1.2) / 100) * 100))

            graphEmailAlerts.PlotArea.YAxis.LabelsAppearance.DataFormatString = "{0} "
            graphEmailAlerts.PlotArea.YAxis.LabelsAppearance.RotationAngle = "0"
            graphEmailAlerts.PlotArea.YAxis.LabelsAppearance.Skip = "0"

            'X-axis
            graphEmailAlerts.PlotArea.XAxis.AxisCrossingValue = 0
            graphEmailAlerts.PlotArea.XAxis.Color = Drawing.Color.Black
            graphEmailAlerts.PlotArea.XAxis.MajorTickType = HtmlChart.TickType.Outside
            graphEmailAlerts.PlotArea.XAxis.MinorTickType = HtmlChart.TickType.None
            graphEmailAlerts.PlotArea.XAxis.DataLabelsField = "type"
            graphEmailAlerts.PlotArea.XAxis.Reversed = False
            graphEmailAlerts.PlotArea.XAxis.BaseUnit = HtmlChart.DateTimeBaseUnit.Auto
            graphEmailAlerts.PlotArea.XAxis.LabelsAppearance.DataFormatString = "{0} "
            graphEmailAlerts.PlotArea.XAxis.LabelsAppearance.RotationAngle = "0"
            graphEmailAlerts.PlotArea.XAxis.LabelsAppearance.Skip = "0"
            graphEmailAlerts.PlotArea.XAxis.LabelsAppearance.Step = "1"


            graphEmailAlerts.PlotArea.Series.Clear()

            Dim cs_ss As New ColumnSeries()
            cs_ss.Stacked = "true"

            cs_ss.DataFieldY = "value1"

            cs_ss.LabelsAppearance.Step = eAdatatable.Rows(0).Item("value1")
            cs_ss.LabelsAppearance.Position = HtmlChart.BarColumnLabelsPosition.Center
            cs_ss.LabelsAppearance.DataFormatString = "Saved Searches {0}"
            cs_ss.Appearance.FillStyle.BackgroundColor = Drawing.Color.FromArgb(165, 213, 162)
            cs_ss.TooltipsAppearance.DataFormatString = "Saved Searches {0}"



            graphEmailAlerts.PlotArea.Series.Add(cs_ss)

            If eAdatatable.Rows(0).Item("value2") <> 0 Then
                Dim cs_tracked As New ColumnSeries()
                cs_tracked.Name = "Tracked"
                cs_tracked.Stacked = "true"

                cs_tracked.DataFieldY = "value2"
                cs_tracked.LabelsAppearance.Position = HtmlChart.BarColumnLabelsPosition.Center
                cs_tracked.LabelsAppearance.DataFormatString = "Tracked {0}"
                cs_tracked.Appearance.FillStyle.BackgroundColor = Drawing.Color.FromArgb(255, 181, 110)
                cs_tracked.TooltipsAppearance.DataFormatString ="Tracked {0}"

               cs_tracked.LabelsAppearance.Step = eAdatatable.Rows(0).Item("value1") + eAdatatable.Rows(0).Item("value2")

                graphEmailAlerts.PlotArea.Series.Add(cs_tracked)
            End If

Cheryl
Top achievements
Rank 1
Iron
 updated answer on 14 Aug 2023
0 answers
18 views

Hi there

In order to get differing steps to show the levels on my stacked chart I can kind of do it using additional Y axis, but obviously this is showing them on separate lines.

Is it possible to manipulate the layout so that the lines are on top of each other so it looks like 1 line?

 

 

Thanks for your help

Cheryl
Top achievements
Rank 1
Iron
 asked on 13 Aug 2023
0 answers
15 views

I have a situation(s) where trying to display RadHtmlChart in different parts of the page.

When I put the RadHtmlChart towards the top, all displays fine (charts with bound or non bound data).

As soon as put RadGrid on page graphs before rad grid will still render, but any RadHtmlChart that follows displays empty.

whether try changes in .aspx/code behind/javascript can't seem to get anything to render properly.

In case this isn't a me issue but version issue: Telerik version 2015.3.xxxxx

Kyle
Top achievements
Rank 1
 asked on 11 Aug 2023
2 answers
72 views
Hi,

We have a requirement to render a page in edit mode and read only mode.

The RAD controls that we are using are custom classes that inherits from Rad control classes. For example we have a class called CSRadComboBox that extends from the class RadComboBox and we use the instances of class CSRadComboBox in all the code for the project.

When a page is rendered in the read-only mode to the users, we override the Render method of the RadComboBox and render an System.Web.UI.WebControls.Label object with the contents in it. I have copy pasted the code used to render in the readonly mode for one of the controls below.
protected override void Render(HtmlTextWriter writer)
{
    if (IsReadOnly)
    {
        Label lblValue = new Label();
        string display = "--";
        if (!string.IsNullOrEmpty(this.SelectedText))
        {
            display = this.SelectedText;
        }
        lblValue.Text = display;
        lblValue.RenderControl(writer);
    }
    else
    {
        base.Render(writer);
    }
}


We have a problem in the readonly pages that there are lot of javascript error that is thrown, "null is null or not an object" and when debugged in visual studio, we could make out that the ajax javascript from the telerik resource is trying to attach events to the labels that has been entered and since it is not able to find the actual control, the javascript error is being thrown.

We need help on how to disable javascript for individual rad controls in the readonly view of the page when actually it is not required at all.

Thanks,
Manoj

Ravishankar
Top achievements
Rank 1
Iron
 updated answer on 09 Aug 2023
0 answers
25 views

Is it possible to create a stacked column chart and show the steps on axis but the labels on the right axis (instead of a legend)

I am programmatically creating a graph but I only have one set to data to show so didn't think i could use an additional axis?, Showing the label on the column itself is not displayed well if the data is wildly differing, eg 5421 and then 16

Thanks

Cheryl
Top achievements
Rank 1
Iron
 asked on 07 Aug 2023
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bernd
Top achievements
Rank 5
Bronze
Bronze
Iron
kva
Top achievements
Rank 2
Iron
Iron
Iron
Jay
Top achievements
Rank 2
Iron
Iron
Veteran
Mark
Top achievements
Rank 3
Iron
Iron
Iron
Ruchika
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bernd
Top achievements
Rank 5
Bronze
Bronze
Iron
kva
Top achievements
Rank 2
Iron
Iron
Iron
Jay
Top achievements
Rank 2
Iron
Iron
Veteran
Mark
Top achievements
Rank 3
Iron
Iron
Iron
Ruchika
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?