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

I have done extensive research on this issue and have yet to find a solution that works. I have a simple RadGrid, 2 columns are Template Columns. Each of those 2 columns have a RadDropDownList (DDL) with SQL Data Sources. I would like the selection of the first DDL to define the data list of the second DDL. Also, this needs to work in Insert and Edit modes.

I am stuck at two instances, at one point the first DDL - after making a selection it posts-back and loses the selected item. It resets to "- Select -" and does not bind the second DDL with any data.

Another is when I get an error that states I can't use Eval, Bind, etc., to a non-databound control.

Please take a look at my code and point me in the correct direction!


						<telerik:RadGrid ID="rgvHDwithLoc" runat="server" AutoGenerateColumns="False" DataSourceID="sdsHDwithLoc" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AutoGenerateDeleteColumn="false" AutoGenerateEditColumn="False">

							<GroupingSettings CollapseAllTooltip="Collapse all groups" />

							<MasterTableView AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" CommandItemDisplay="Top" DataKeyNames="owedRequestID" DataSourceID="sdsHDwithLoc" EditMode="EditForms">

								<CommandItemSettings ShowCancelChangesButton="false" ShowSaveChangesButton="false" />

								<Columns>

									<telerik:GridEditCommandColumn EditText="Edit" UpdateText="Update" CancelText="Cancel" HeaderText="Edit"></telerik:GridEditCommandColumn>

									<telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" ConfirmText="Are you sure you want to delete this record?" ConfirmTitle="Delete Adjustment" FilterControlAltText="Filter delete column" HeaderText="Delete" UniqueName="delete">
									</telerik:GridButtonColumn>

									<telerik:GridBoundColumn DataField="owedRequestID" DataType="System.Int32" FilterControlAltText="Filter owedRequestID column" HeaderText="owedRequestID" ReadOnly="True" SortExpression="owedRequestID" UniqueName="owedRequestID" Display="false">
									</telerik:GridBoundColumn>

									<telerik:GridBoundColumn DataField="wageAdjRequestID" DataType="System.Int32" FilterControlAltText="Filter wageAdjRequestID column" HeaderText="wageAdjRequestID" SortExpression="wageAdjRequestID" UniqueName="wageAdjRequestID" Display="false" ReadOnly="true">
									</telerik:GridBoundColumn>

									<telerik:GridTemplateColumn DataField="sapWageCode" FilterControlAltText="Filter sapWageCode column" HeaderText="Wage Code" SortExpression="sapWageCode" UniqueName="sapWageCode">
										<EditItemTemplate>

											<telerik:RadDropDownList ID="ddlsapWageCode" runat="server" SelectedValue='<%# Bind("sapWageCode") %>' DataTextField="sapWageCodeAndName" DataValueField="sapWageCode" DataSourceID="sdsWageCode" Width="400" DefaultMessage="- Select -" AutoPostBack="True" CausesValidation="false" EnableViewState="true" OnSelectedIndexChanged="ddlsapWageCode_SelectedIndexChanged"></telerik:RadDropDownList>

										</EditItemTemplate>
										<ItemTemplate>
											<asp:Label ID="sapWageCodeLabel" runat="server" Text='<%# Eval("sapWageCode") %>'></asp:Label>
										</ItemTemplate>
									</telerik:GridTemplateColumn>

									<telerik:GridTemplateColumn DataField="sapAttnCode" FilterControlAltText="Filter sapAttnCode column" HeaderText="Attn Code" SortExpression="sapAttnCode" UniqueName="sapAttnCode">
										<EditItemTemplate>
											<telerik:RadDropDownList ID="ddlsapAttnCode" runat="server" DataTextField="sapAttnCodeAndName" DataValueField="sapAttnCode" Width="400" SelectedValue='<%# Eval("sapAttnCode")%>' DefaultMessage="- Select -"></telerik:RadDropDownList>
										</EditItemTemplate>
										<InsertItemTemplate>
											<telerik:RadDropDownList ID="ddlsapAttnCode" runat="server" DataTextField="sapAttnCodeAndName" DataValueField="sapAttnCode" Width="400" DefaultMessage="- Select -"></telerik:RadDropDownList>
										</InsertItemTemplate>
										<ItemTemplate>
											<asp:Label ID="sapAttnCodeLabel" runat="server" Text='<%# Eval("sapAttnCode") %>'></asp:Label>
										</ItemTemplate>
									</telerik:GridTemplateColumn>

									<telerik:GridBoundColumn DataField="sapWorkCenter" FilterControlAltText="Filter sapWorkCenter column" HeaderText="Work Center" SortExpression="sapWorkCenter" UniqueName="sapWorkCenter">
									</telerik:GridBoundColumn>

									<telerik:GridBoundColumn DataField="sapDept" FilterControlAltText="Filter sapDept column" HeaderText="Dept" SortExpression="sapDept" UniqueName="sapDept">
									</telerik:GridBoundColumn>

									<telerik:GridBoundColumn DataField="Hours" DataType="System.Decimal" FilterControlAltText="Filter Hours column" HeaderText="Hours" SortExpression="Hours" UniqueName="Hours">
									</telerik:GridBoundColumn>

									<telerik:GridBoundColumn DataField="RatePay" DataType="System.Decimal" FilterControlAltText="Filter RatePay column" HeaderText="RatePay" SortExpression="RatePay" UniqueName="RatePay">
									</telerik:GridBoundColumn>

									<telerik:GridDateTimeColumn DataField="Date" DataType="System.DateTime" FilterControlAltText="Filter Date column" HeaderText="Date" SortExpression="Date" UniqueName="Date" DataFormatString="{0:d}">
									</telerik:GridDateTimeColumn>

									<telerik:GridTemplateColumn DataField="sapJobCode" FilterControlAltText="Filter sapJobCode column" HeaderText="Job Code" SortExpression="sapJobCode" UniqueName="sapJobCode">
										<EditItemTemplate>
											<telerik:RadDropDownList ID="ddlsapJobCode" runat="server" DataSourceID="sdsJobCode" DataTextField="sapJobCodeAndName" DataValueField="sapJobCode" SelectedValue='<%# Bind("sapJobCode") %>' Width="400" DefaultMessage="- Select -"></telerik:RadDropDownList>
										</EditItemTemplate>
										<ItemTemplate>
											<asp:Label ID="sapJobCodeLabel" runat="server" Text='<%# Eval("sapJobCode") %>'></asp:Label>
										</ItemTemplate>
									</telerik:GridTemplateColumn>
								</Columns>

								<EditFormSettings>
									<EditColumn FilterControlAltText="Filter EditCommandColumn1 column" UniqueName="EditCommandColumn1">
									</EditColumn>
								</EditFormSettings>

							</MasterTableView>

						</telerik:RadGrid>

<asp:SqlDataSource ID="sdsHDwithLoc" runat="server" ConnectionString="<%$ ConnectionStrings:XXXXXX_SAP %>"
		DeleteCommand="DELETE FROM [tblSAP_HoursDollarsOwedRequest] WHERE [owedRequestID] = @owedRequestID"
		SelectCommand="SELECT * FROM view_SAP_WageAdjRequest_hoursDollarsOwed WHERE (wageAdjRequestID = @wageAdjRequestID)"
		UpdateCommand="UPDATE tblSAP_HoursDollarsOwedRequest SET sapWageCode = @sapWageCode, sapAttnCode = @sapAttnCode, sapWorkCenter = @sapWorkCenter, sapDept = @sapDept, Hours = @Hours, RatePay = @RatePay, sapJobCode = @sapJobCode, Date = @Date  WHERE (owedRequestID = @owedRequestID)"
		InsertCommand="INSERT INTO tblSAP_HoursDollarsOwedRequest (wageAdjRequestID, sapWageCode, sapAttnCode, sapWorkCenter, sapDept, Hours, RatePay, sapJobCode, [Date]) VALUES (@wageAdjRequestID, @sapWageCode, @sapAttnCode, @sapWorkCenter, @sapDept, @Hours, @RatePay, @sapJobCode, @Date)">
		<SelectParameters>
			<asp:ControlParameter ControlID="lblWageAdjID" PropertyName="Text" Name="wageAdjRequestID" Type="Int32" />
		</SelectParameters>
		<DeleteParameters>
			<asp:Parameter Name="owedRequestID" Type="Int32" />
		</DeleteParameters>
		<UpdateParameters>
			<asp:Parameter Name="sapWageCode" Type="String" />
			<asp:Parameter Name="sapAttnCode" Type="String" />
			<asp:Parameter Name="sapWorkCenter" Type="String" />
			<asp:Parameter Name="sapDept" Type="String" />
			<asp:Parameter Name="Hours" Type="Decimal" />
			<asp:Parameter Name="RatePay" Type="Decimal" />
			<asp:Parameter Name="sapJobCode" Type="String" />
			<asp:Parameter Name="Date" Type="DateTime" />
			<asp:Parameter Name="owedRequestID" Type="Int32" />
		</UpdateParameters>
		<InsertParameters>
			<asp:ControlParameter ControlID="lblWageAdjID" PropertyName="text" Name="wageAdjRequestID" Type="Int32" />
			<asp:Parameter Name="sapWageCode" Type="String" />
			<asp:Parameter Name="sapAttnCode" Type="String" />
			<asp:Parameter Name="sapWorkCenter" Type="String" />
			<asp:Parameter Name="sapDept" Type="String" />
			<asp:Parameter Name="Hours" Type="Decimal" />
			<asp:Parameter Name="RatePay" Type="Decimal" />
			<asp:Parameter Name="sapJobCode" Type="String" />
			<asp:Parameter Name="Date" Type="DateTime" />
		</InsertParameters>
	</asp:SqlDataSource>

<asp:SqlDataSource ID="sdsWageCode" runat="server" ConnectionString="<%$ ConnectionStrings:XXXXXX_SAP %>"
		SelectCommand="SELECT [sapWageCode], sapWageCode + ' - ' + sapWageCodeName AS sapWageCodeAndName FROM [tblSAP_WageCode] WHERE [sapWageCodeActive] = 1 ORDER BY [sapWageCodeName]"></asp:SqlDataSource>

	<asp:SqlDataSource ID="sdsAttnCode" runat="server" ConnectionString="<%$ ConnectionStrings:XXXXXX_SAP %>"
		SelectCommand="SELECT [sapAttnCode], sapAttnCode + ' - ' + sapAttnCodeName AS sapAttnCodeAndName FROM [tblSAP_AttnCode] WHERE [sapAttnCodeActive] = 1 AND sapWageCode = @sapWageCode">
		<SelectParameters>
			<asp:ControlParameter ControlID="ddlsapWageCode" PropertyName="SelectedValue" Name="sapWageCode" Type="String" />
		</SelectParameters>
	</asp:SqlDataSource>

And I have tried this in my VB code behind:


Protected Sub ddlsapWageCode_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs)

		Dim wageCodeDDL As RadDropDownList = CType(sender, RadDropDownList)
		Dim insertItem As GridEditFormInsertItem = CType(wageCodeDDL.NamingContainer, GridEditFormInsertItem)
		Dim attnCodeDDL As RadDropDownList = CType(insertItem.FindControl("ddlsapAttnCode"), RadDropDownList)
		Dim strWageCode = wageCodeDDL.SelectedValue.ToString

		Dim strAttnCode As String = Nothing
		Dim strAttnCodeAndName As String = Nothing

		Dim myConn As New SqlConnection(ConfigurationManager.ConnectionStrings("XXXXXX_SAP").ConnectionString)
		Dim strSelect As String = "SELECT [sapAttnCode], sapAttnCode + ' - ' + sapAttnCodeName AS sapAttnCodeAndName FROM [tblSAP_AttnCode] WHERE [sapAttnCodeActive] = 1 AND sapWageCode = @sapWageCode"
		Dim myCmd As New SqlCommand(strSelect, myConn)

		myConn.Open()

		With myCmd.Parameters
			.Add(New SqlParameter("@sapWageCode", strWageCode))
		End With

		Dim dr As SqlDataReader = myCmd.ExecuteReader

		While dr.Read
			strAttnCode = dr("sapAttnCode")
			strAttnCodeAndName = dr("sapAttnCodeAndName")
		End While

		myConn.Close()
		myCmd.Dispose()
		myConn.Dispose()
		dr.Close()

		attnCodeDDL.DataValueField = strAttnCode
		attnCodeDDL.DataTextField = strAttnCodeAndName

		attnCodeDDL.DataBind()

	End Sub
Thank you in advance!
Attila Antal
Telerik team
 answered on 12 Oct 2021
1 answer
243 views

Can the Radgrid print function print a multi page grid?

My grid just prints out the first page - it is more like a print screen function  than a print grid function.

 

Thank You

 

Doug Juola

djuola@cox.net

Vessy
Telerik team
 answered on 12 Oct 2021
2 answers
148 views

While introducing a screenshot feature to one of our applications, we're experiencing unexpected behavior.  

The screenshots are grabbed as a blob, client-side, converted to a base64 string, then saved in a RadListBox.  We found that if greater than five base64 strings are saved in the RadListBox, the item count is zero, and triggers an error on our server side save functionality.

In most cases the limit of five works as expected, however, at times, even with the limit of five images (as base64 strings), the list box item count is zero.  

Is there a size limit to the RadListBox?  So far, the only explanation I can come up with is the list box control is overwhelmed with data and purges itself.

What else could cause this?  

Doncho
Telerik team
 answered on 11 Oct 2021
1 answer
719 views

Hi,

   I have a RadTapStrip and a RadmultiPage: The code is below though I have cut off the RadMultiPage for brevity.

    In The code behind which I've left out, again for brevity,In each pageview there is a RadHTMLChart. I read an article that said that all pageviews are loaded automatically unless they are set to Select Only.

 The code makes certain tabs invisible under certain circumstances. In this case the first tab is made invisible. so the second tab shows up first. To make sure that the second tab is selected and the associated RadHTMLChart shows up I set the Selectedindex for the RadTabStrip to 1.

RadTabStrip1.SelectedIndex = 1;

I wasn't sure if that was right but I did see that the second tab is highlighted  as I hoped when the screen renders; just to be clear this "second" tab is the first tab after the real first  tab is  made invisible . However the RadHTMLChart associated with that tab does not show up. 

 I clicked the next tab and the associated RadHtmlChart DID appear for that tab. Then when I went back to click the previous tab that didn't show the radHTMLChart when the screen was FIRST rendered; this time the radHTMLchart DID show up.

 

To do research I put a line in the  codebehind to explicitly activate the RadHTMLChart when the screen FIRST renders,

RadMultiPage1.FindPageViewByID("RadPageView2").Selected = true;

This time when the screen first rendered it DID show the associated radHTMLChart.

 I believe I'm missing something in the odd situation where tabs are made invisible.

The code from the aspx file is  below:

-------------------------------------------------------------------------------------------

 

 

         <telerik:RadTabStrip runat="server" ID="RadTabStrip1" MultiPageID="RadMultiPage1" SelectedIndex="0" Skin="Simple" Visible="false">

                <Tabs>

                    <telerik:RadTab Text="One" Width="200px"></telerik:RadTab>

                    <telerik:RadTab Text="Two" Width="200px"></telerik:RadTab>

                    <telerik:RadTab Text="Three" Width="200px"></telerik:RadTab>

                    <telerik:RadTab Text="Four" Width="200px"></telerik:RadTab>

                    <telerik:RadTab Text="Five" Width="200px"></telerik:RadTab>

                    <telerik:RadTab Text="Six" Width="200px"></telerik:RadTab>

                    <telerik:RadTab Text="Seven" Width="200px"></telerik:RadTab>

                    <telerik:RadTab Text="Eight" Width="200px"></telerik:RadTab>

                    <telerik:RadTab Text="Nine" Width="200px"></telerik:RadTab>

                    <telerik:RadTab Text="Ten" Width="200px"></telerik:RadTab>

                    <telerik:RadTab Text="Eleven" Width="200px"></telerik:RadTab>

                </Tabs>

            </telerik:RadTabStrip><br />

           

            <telerik:RadMultiPage runat="server" id="RadMultiPage1" SelectedIndex="0">

                <telerik:RadPageView runat="server" ID="RadPageView1">

                    <div>

                        <telerik:RadHtmlChart runat="server" Width="100%" Height="800px" ID="ChartInsideDiameter" Skin="Metro" PlotArea-XAxis-MinorGridLines-Visible="false"

                            PlotArea-XAxis-MajorGridLines-Visible="false" PlotArea-YAxis-MajorGridLines-Visible="false" PlotArea-YAxis-MinorGridLines-Visible="false">

                            <PlotArea>

                                <Series>

                                    <telerik:LineSeries DataFieldY="Field1" Name="">

                                        <TooltipsAppearance Color="White" />

                                    </telerik:LineSeries>

                                </Series>

                                <XAxis DataLabelsField="Label1">

                                    <LabelsAppearance RotationAngle="75">

                                    </LabelsAppearance>

                                    <TitleAppearance Text="Date">

                                    </TitleAppearance>

                                </XAxis>

                                <YAxis Step=".15">

                                    <TitleAppearance Text="Title1">

                                    </TitleAppearance>

                                </YAxis>

                            </PlotArea>

                            <Legend>

                                <Appearance>

                                </Appearance>

                            </Legend>

                            <ChartTitle>

                            </ChartTitle>

                        </telerik:RadHtmlChart>

                    </div>

                </telerik:RadPageView>

                <telerik:RadPageView runat="server" ID="RadPageView2">

                    <div>

                        <telerik:RadHtmlChart runat="server" Width="100%" Height="800px" ID="ChartInsideDiameterA" Skin="Metro" PlotArea-XAxis-MinorGridLines-Visible="false"

                            PlotArea-XAxis-MajorGridLines-Visible="false" PlotArea-YAxis-MajorGridLines-Visible="false" PlotArea-YAxis-MinorGridLines-Visible="false">

                            <PlotArea>

                                <Series>

                                    <telerik:LineSeries DataFieldY="Field2" Name="">

                                        <TooltipsAppearance Color="White" />

                                    </telerik:LineSeries>

                                </Series>

                                <XAxis DataLabelsField="Label2">

                                    <LabelsAppearance RotationAngle="75">

                                    </LabelsAppearance>

                                    <TitleAppearance Text="Date">

                                    </TitleAppearance>

                                </XAxis>

                                <YAxis Step=".2">

                                    <TitleAppearance Text="Title2">

                                    </TitleAppearance>

                                </YAxis>

                            </PlotArea>

                            <Legend>

                                <Appearance>

                                </Appearance>

                            </Legend>

                            <ChartTitle>

                            </ChartTitle>

                        </telerik:RadHtmlChart>

                    </div>                    

                </telerik:RadPageView>

 

Vessy
Telerik team
 answered on 11 Oct 2021
0 answers
195 views

Hi ,

                we are creating dynamic report in that one of the columns contain 100 and above characters . so we set text wrap as true.

Result as 


If we set false for text wrap, then result as below

data not show as fully, 

Below the code that we create dynamic report Dim detailsTxt As New Telerik.Reporting.TextBox
                detailsTxt.Size = New SizeU(Unit.Inch(col.ColumnName.Length), Unit.Inch(0.2))
                detailsTxt.Location = New Drawing.PointU(Unit.Inch(iniLeft), Unit.Inch(0.01))
                detailsTxt.Style.Font.Size = New Unit(10)
                detailsTxt.Style.VerticalAlign = VerticalAlign.Middle
                detailsTxt.Style.TextAlign = HorizontalAlign.Left
                detailsTxt.TextWrap = False
                detailsTxt.StyleName = "Data"
                detailsTxt.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.Solid
                detailsTxt.CanGrow = True
                detailsTxt.KeepTogether = True
                detailsTxt.Multiline = True
                ' detailsTxt.Format = Format("{0:n}")
               detailsTxt.Value = "=Fields.[" + col.ColumnName.ToString & "]"
                detail.Items.Add(detailsTxt)

What we expect 


Pls reply with any solution, we are using Telerik version is 11.1.7.614  , is it new version fixed this bug ?

Thanks.

M Kumar
Top achievements
Rank 1
Iron
Iron
Veteran
 asked on 11 Oct 2021
1 answer
173 views

 

Hi

I have a page with a RadProgressBar over an loadbalancer (AWS Elastic Load Balancer).

When I access the page not using the loadbalancer address everyting works fine. But when I access using the address of loadbalancer the progressbar close after 90 seconds.

I know, the default timeout of scriptmanager is 90 seconds. But the scriptmanager have the AsyncPostBackTimeout with 2000 seconds.

<telerik:RadScriptManager ID="ScriptManager1" EnableScriptCombine="true" AsyncPostBackTimeout="2000" OutputCompression="Forced" ScriptMode="Release" runat="server" />

<telerik:RadProgressManager ID="RadProgressManager1" RefreshPeriod="5000" RegisterForSubmit="false" runat="server" />

In the AWS loadbalancer have the idle timeout param and I set the value to 900 seconds. I can confirm this configuration working very fine because the page still load until the end of the request, but the radprogress closes after 90 seconds or 18 times of the radprogress handler calls the server.

The web.config has executionTimeout="10800", and this works because the page remains running until the end.

Anybody have any idea about the problem and solution?

Thanks

Fabio PM
Top achievements
Rank 1
Iron
 updated question on 08 Oct 2021
1 answer
315 views

 

I am trying to set the datasource property of a radcombobox in the selectedindexchanged eventhandler of another radcombobox.

I am getting this error. 

 

 

How do I accomplish this?

Vessy
Telerik team
 answered on 08 Oct 2021
1 answer
147 views

Hi,

I've been looking for an answer but haven't been anything so apologies if it has already been answered.

I had a RadContextMenu with multiple targets (divs), when the onitemclick event is triggered how do I get which target the click event was launched from?

I need to know which control the contextMenu has been launched from as I'm using it as an edit/delete interface.

 


<telerik:radcontextmenu runat="server" id="ContextMenu1"
                            enableroundedcorners="True" enableshadows="True" onitemclick="RadMenuItem_Click" meta:resourcekey="ContextMenu1Resource1">
                            <targets>
                                <telerik:contextmenuelementtarget elementid="divField1" />
                                <telerik:contextmenuelementtarget elementid="divField2" />
                                <telerik:contextmenuelementtarget elementid="divField3" />
                                <telerik:contextmenuelementtarget elementid="divField4" />
                                <telerik:contextmenuelementtarget elementid="divField5" />
                                <telerik:contextmenuelementtarget elementid="divField6" />
                                <telerik:contextmenuelementtarget elementid="divField7" />
                                <telerik:contextmenuelementtarget elementid="divField8" />
                                <telerik:contextmenuelementtarget elementid="divField9" />
                                <telerik:contextmenuelementtarget elementid="divField10" />
                            </targets>
                            <items>
                                <telerik:radmenuitem text="Edit" value="Edit" runat="server" meta:resourcekey="RadMenuItemResource1" />
                                <telerik:radmenuitem text="Delete" value="Delete" runat="server" meta:resourcekey="RadMenuItemResource2" />
                            </items>
                        </telerik:radcontextmenu>

 

Thanks in advance

Vessy
Telerik team
 answered on 07 Oct 2021
0 answers
162 views

I am using the OnBatchEditCellValueChanged in the Client Events of the RadGrid.  The first time a cell is edited it fires as it should, if I choose another cell in the same row and edit it fires as well but when I go back and edit the first cell that was edited it does not fire until I click on another row.  Any thoughts or ideas would be great!

FYI, I am using Hierarchy grid and the cells being edited are in the master table view and updating cells in detail view when OnBatchEditCellValueChanged is fired.

Jerry
Top achievements
Rank 2
Iron
Iron
 asked on 06 Oct 2021
0 answers
262 views

Hi,

We have upgraded the current 2013 Telerik version to Telerik AspNet Ajax Net45 2021.2.616. Following the upgrade the RadDatepickers have stopped working. Although the calendar popup appears as expected, if a date is clicked (whether it’s on a date or empty cell) the popup closes.

Whilst looking into this we noticed that the older version has a click event attached to the RadCalendarPopup which does not get added when the 2021 version is used. 

The RadDatePicker control used for testing

<asp:Panel id="Wrapper" runat="server">
    <telerik:RadDatePicker ID="RadDatePicker" Style="display: none;" MinDate="01/01/1900" MaxDate="12/31/2200" runat="server" Skin="Cse" EnableEmbeddedSkins="false">
        <Calendar ShowRowHeaders="False" FastNavigationStep="12"></Calendar>
        <ClientEvents OnDateSelected="TelerikRadDateTimePicker_DateSelected" />
    </telerik:RadDatePicker>
</asp:Panel>

 

The OnDateSelected is fired when the Go button is clicked. The onClosing method used sets the event. set_cancel() to true.

A screenshot attached

  • RadCalendarPopup in version 2013
  • Version 2013 Scriptresource snippet
  • RadCalendarPopup  in version 2021
  • Version 2021 Scriptresource snippet

The 2021 version has wrapped the div click event in an If condition which we are unable to satisfy to get the click event added to the RadCalendarPopup div. Due this the calendar click event is treated as a document click event which closes the popup.

Could you please explain why the click event is wrapped around the If condition and help us find a workaround for this.

Thanks

Sureni
Top achievements
Rank 1
 asked on 06 Oct 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?