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

Hi all,

 

I 'm looking to convert millis into the tooltip of a RadHtmlChart

 

The convertion work well on the xAxis.

I set the DataFormating in the code behind since a have dynamical number of serie ..

But it's doesnt work.

 

Also, looking for simple Label (unit) insertion bellow the xAxis and left to the yAxis. (like my sample)

 

Thanks in advance,

 

Didier

 

 

 

Vessy
Telerik team
 answered on 30 Mar 2022
1 answer
119 views

Hi,

In RadEditor I need to use radcolorpicker to add custom colors.  When we click "Add Custom Color" now its giving a popup and

we need to type the hex color code.

without doing that is there a way to use radcolorpicker after click the  "Add Custom Color".

 

Thank You,

Sahan

Rumen
Telerik team
 answered on 30 Mar 2022
1 answer
200 views

I'm wondering if there is more direct way to access the datasource values or at least the DataKeyValues or GroupByField values in a grouped grid from a button click event (not ItemDataBound).

The only thing I could piece together was a bit awkard...

- loop through group header items

- get child items for the group and do one loop through that list to access a dataitem

- then access GetDataKeyValue() method to get the key value for that particular group;

Accessing controls in the header template seems pretty straightforward with the .FindControl() method.

 


protected void btnSave_Click(object sender, EventArgs e) { foreach (GridGroupHeaderItem item in gridMain.MasterTableView.GetItems(GridItemType.GroupHeader)) { string sKey= "";

string sValue = ""; // is there a better way to get to GroupByField or DataKeyName value for the current group? var childItems = item.GetChildItems(); foreach (GridDataItem child in childItems) { GridDataItem childItem = child as GridDataItem; sKey = childItem.GetDataKeyValue("SomeDataKeyName") as string; break; // only need the first one }

// get stuff from group header template

if (item.FindControl("txtSomeValue") is TextBox txtBox)
            {
                sValue = txtBox.Text;
            }

// additional code here to do stuff with retrieved values

} }


Doncho
Telerik team
 answered on 29 Mar 2022
1 answer
129 views

We are using the radtreeview with a webmethod to populate nodes with persistloadondemandnodes set to true.   Once the user clicks an item on the tree context menu it calls the codebehind which modifies the data.   At this point we call DataBind on the tree expecting it to call back to the web method to retieve the updated data.  However it never calls back to server's webmethod.  The tree does refresh client side since has been added to the ajax manager - but refresh is just the same data as before context menu click.   

How do we get the treeview to refresh it's data after the server-side context menu handler changes the data in the source ???

Peter Milchev
Telerik team
 answered on 28 Mar 2022
1 answer
125 views

Hi,

01.   Assign the values to MultiSelect control as follows.

// Assign the Values array to MultiSelect
    kendoMultiSelect.value(allValues);

After assigning values, its scroll to the last item as below picture.

                                  

I need to navigate it to the first item in the list.

02.   When I try to expand the multiselect control first time it get close and second click it expanded.  I have set AutoClose=False.

 

Can anyone help me resolve these two issues.

 

Thank You,

Regards,

Chandi

Peter Milchev
Telerik team
 answered on 28 Mar 2022
0 answers
199 views

Hello,

I have multi select combo box which shows countries. I want to show states of countries in that same drop down only if that country is selected. See example below. Only if USA is selected in the multi select drop down, then only show states under USA as multi select drop down. Likewise for other countries in the drop down too. Is this something achievable?

USA

USA-Arizona

USA-California

USA-Texas

MEXICO

Mexico-Tijuana

Mexico-Hidalfgo

Joe
Top achievements
Rank 1
 asked on 24 Mar 2022
1 answer
209 views

RadEditor - Rich text editor does not support hierarchical nested numbering or bullets and also dont have built-in option for multi level list

I tried  but not able to achieve this requirement.

Can you please tell me if telerik rolling out this feature or if it is already implemented then how to use it ?

 

Doncho
Telerik team
 answered on 24 Mar 2022
3 answers
225 views

Hi,

I have a page with an HTML chart that is dynamically created from the code behind.

The user selects some options and the column chart get generated, user change filter options, the chart should change the results accordinly.

The issue is, when the chart is created from the code behind, and e.g 3 bars are created which that represents three categories (series). When I change the filter option that should result in plotting one column bar, the chart still displays three bars representing the old filter option and the new one. 

How do I reset the chart?

I have attached two images, P1 represent the first chart that was created with three series, P2 was created after P1 which suppose to have one series, but it shows the previous two series with the new series.


            RadHtmlChart chart = new RadHtmlChart();
            chart.PlotArea.Series.Clear();
           
            for (int j = 0; j < rec.Count; j++)
            {
                ColumnSeries series = new ColumnSeries();
                series.Name = rec[j].answer;
                series.SeriesItems.Add(new CategorySeriesItem(rec[j].total));
                series.LabelsAppearance.ClientTemplate = rec[j].answer + ": (" + rec[j].total + ")";
                chart.PlotArea.Series.Add(series);
            }
            area_results.Controls.Add(chart);


  <div id="area_results" runat="server" style="padding-left: 20px; width: 100%">
                                       
                                    </div>
yuv
Top achievements
Rank 1
Iron
 answered on 18 Mar 2022
0 answers
123 views

hi, im wondering if someone can help me out, im making a form where you can add and edit.  the idea is to use the grid to find the desired record to edit and select it on the same form where you create forms in the first place.  i can pass the values to the textboxes just fine but no the boolean values for the check boxes.  anybody got any idea on how i can do this? 

ill post down here what i did for the textboxes.

Panel1.Visible = True
        Dim row As GridViewRow = GVSearch.SelectedRow

        Case_ID.Text = row.Cells(1).Text
        Numero_Record_PRM.Text = row.Cells(1).Text
        If row.Cells(1).Text.Trim <> "" Then

            Numero_Record_PRM.Text = row.Cells(2).Text.Trim
            Patient_Name.Text = row.Cells(6).Text.Trim
            Provider_Name.Text = row.Cells(8).Text.Trim
Brandon
Top achievements
Rank 1
 asked on 18 Mar 2022
2 answers
270 views
I have a grid that is in Batch edit mode. It has two GridDropdownColumn's. When I select the first GridDropdownColumn, I want the value to help load the second GridDropdownColumn. I assume that is somehow connecting to the SelectedIndexChanged event. How do I go about doing that.
Attila Antal
Telerik team
 answered on 18 Mar 2022
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?