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

Hello,

 

I have a grid with one of column defined as below, now I want to use HeaderContextMenu to show the filter option but the input is textbox instead of DateTime which should have a small calendar icon on the right side. I have tried manually showing and hiding the textbox by using below jquery at ShowMenu event but the filter just doesn't take value from my input datepicker. Can you show me how to do that?

$('[id$=DPFirstCond_wrapper]').show();
$('[id$=DPSecondCond_wrapper]').show();
$('[id$=TBFirstCond_wrapper]').hide();
$('[id$=TBSecondCond_wrapper]').hide();

 

<telerik:GridTemplateColumn SortExpression="StartDate" UniqueName="StartDate"
                                                            DataType="System.DateTime"
                                                            HeaderText="Complan Eff. Date" DataField="StartDate">
                                    <HeaderStyle Width="180px"></HeaderStyle>
                                    <ItemTemplate>
                                        <div runat="server" class='<%# ComPlanCssClass(Eval("StartDate"), Eval("ComPlanPending.StartDate"), Eval("ComPlanPending"))%>'>
                                            <asp:Label Text='<%# ComPlanValue(Eval("StartDate"), Eval("ComPlanPending.StartDate"), Eval("ComPlanPending"))%>' runat="server" />
                                        </div>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
Attila Antal
Telerik team
 answered on 27 Jul 2023
0 answers
151 views

Hi sir

 

 

                 I  create radhtmlbar chart dynamically created using below code i have two column series one for task and another lateaction i give color dynamically that color not update in legend

             How we handle this situation.

 

Dim chart2 As New RadHtmlChart
        chart2.ID = "chart2"
        chart2.ChartTitle.Text = "Employee Efficiency (KPI)"

        chart2.PlotArea.XAxis.LabelsAppearance.RotationAngle = 100

        chart2.PlotArea.XAxis.DataLabelsField = _ChartSeriesFieldTitlexaxis2

        chart2.PlotArea.Series.Clear()
        chart2.PlotArea.XAxis.LabelsAppearance.RotationAngle = 0
        Dim series4 As New ColumnSeries
        series4.DataFieldY = _ChartDataFieldTitle2
        series4.Name = "Total task(s)"

        series4.LabelsAppearance.DataFormatString = "{0} Task(s)"

        chart2.PlotArea.Series.Add(series4)
        Dim series66 As New ColumnSeries
        series66.DataFieldY = _ChartDataFieldTitle23
        series66.Name = "Late action(s)"

        series66.LabelsAppearance.DataFormatString = "{0} Task(s)"
        chart2.PlotArea.Series.Add(series66)

        Dim strrec As String = ""

        series4.ColorField = "ColorRange"
        series66.ColorField = "ColorRange1"
        chart2.Legend.Appearance.Visible = True
        chart2.Legend.Appearance.Position = ChartLegendPosition.Top

        firstTable2.Columns.Add("ColorRange", Type.GetType("System.String"))
        firstTable2.Columns.Add("ColorRange1", Type.GetType("System.String"))
        Dim cosos2 As Integer = 0
        For Each row As DataRow In firstTable2.Rows

            row("ColorRange") = _Colors1(cosos2)
            row("ColorRange1") = _Colors2(cosos2)
                  Next

 

 


                                      
M Kumar
Top achievements
Rank 1
Iron
Iron
Veteran
 asked on 26 Jul 2023
1 answer
478 views

How do I trouble shoot the following error "RadAsyncUpload handler is registered successfully, however, it may not be accessed directly."

 

It works fine locally but not on the server.

 

 

 

Mark
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 24 Jul 2023
1 answer
122 views
Is it possible to add a hyperlink to a diagram shape?
Rumen
Telerik team
 answered on 19 Jul 2023
0 answers
120 views

Good day, I am using Teleik.Web.UI version 2023.1.323.40

I had to add this javascript to the date picker to get the current day to be focused in the calendar- when it is first opened.

I am not sure why this helped, is there a more suitable fix?

                                    datePickerDynCtrl.ClientEvents.OnPopupOpening =
                                        @"function(sender,eventArgs){ " +
                                        "var popup = eventArgs.get_popupControl(); " +
                                        "var todaysDate = new Date(); " +
                                        "popup.selectDate([todaysDate.getFullYear(),'',''], true); }"; 
Andrew
Top achievements
Rank 1
 asked on 18 Jul 2023
1 answer
642 views

The RadGrid's AutoGenerateColumn is set to True. it can generate columns from the data source and load perfectly fine. Then I save the Grid Setting using the PersistanceManager. All good so far

The Grids data-source is actually taken from a View in database. only if I remove a column from the database View, and then try to load the grid along with saved settings then it fails because now the column that was there when saving settings no longer exists in datasource.

Here is how first settings are loaded 

RadPersistenceManagerCs.LoadState()

and then

RadGridCs.Rebind()

The error is thrown in .Rebind()

 


The RadPersistanceManager does not expose any property where i can see what was loaded

I wonder if it is possible to verify if columns in saved settings match columns in data-source some other way

 

Thanks

Harshad

Doncho
Telerik team
 answered on 18 Jul 2023
0 answers
222 views

Hello.

I need to check on each row of the grid if its checkbox is checked or not.

<tel:GridTemplateColumn HeaderStyle-Width="15px" UniqueName="gridTemplateColumnCheckbox">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chkItem" runat="server" AutoPostBack="false" CssClass="checkbox-item" />
                                    </ItemTemplate>
                                    <HeaderTemplate>
                                        <asp:CheckBox ID="chkSelectAll" runat="server" AutoPostBack="false" CssClass="checkbox-item-header" onclick="toggleCheckAll();" />
                                    </HeaderTemplate>
                                </tel:GridTemplateColumn>
George
Top achievements
Rank 1
 updated question on 17 Jul 2023
1 answer
145 views

In RadDropDownTree there is option EnableFiltering.

Is there some listbox (checkbox enabled) that has same capabilities?

Or maybe a way to keep RadDropDownTree always opened?

Attila Antal
Telerik team
 answered on 14 Jul 2023
0 answers
87 views
In RadOrgChart , Why is this happening ?
Pro
Top achievements
Rank 1
 asked on 14 Jul 2023
1 answer
114 views

I am using Telerik RadGrid control in my ASP.NET web application. Grid columns are generated automatically from the data source. Also Grouping, sorting, Filtering, Aggregates etc are enabled for the columns in the grid. On right click on the column, it shows context menu and after selecting "Aggregates" option it shows all functions available such as  None,Sum,Min,Max,Last,First,Count,Avg,CountDistinct,Custom

But I would like to remove some functions from this list.

 

Is there a way to access the functions list and manipulate it before grid renders ?

 

Thanks

Harshad

Attila Antal
Telerik team
 updated question on 13 Jul 2023
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?