Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
238 views
I have a Grid with a lot of rows and a different DateTime value on each row. When I mouse hover the rows I set the selectedDate of an outside RadDatePicker client-side using the javascript set_selectedDate().
When the user opens the calendar popup and selects a different date a server side event is fired and the grid is updated with AJAX.

The problem is that the client javasript set_seletedDate method also fires the server side event because of the Autopostback, but I want the server event fired only when the date is changed using the popup.
If I set Autopostback to False then the server event never gets fired..

How can I cancel the server postback after I call set_selectedDate() and make the popup selecteddatechanged server event keep working?


Roger
Top achievements
Rank 1
Veteran
 answered on 24 Apr 2017
1 answer
63 views

I have a radgrid that takes 20 + seconds to databind.

Each row has a button with databound command argument

<telerik:GridTemplateColumn DataField="EnableScript" HeaderText="EnablScript" UniqueName="EnableScript">
    <ItemTemplate>
        <telerik:RadButton ID="EnableButton" runat="server" CommandArgument='<%#Eval("EnableScript")%>' Text="Enable poller" OnClick="EnableButton_Click"/> 
    </ItemTemplate>
</telerik:GridTemplateColumn>

Is it possible to update the radbutton background per radgrid row, without rebinding the entire radgrid?

Grtz,

Theo (NL)

Marin Bratanov
Telerik team
 answered on 24 Apr 2017
3 answers
218 views

Parent Code

01.<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Starter.aspx.cs" Inherits="WebWindows.Starter" %>
02. 
03.<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
04. 
05.<!DOCTYPE html>
06. 
08.<head runat="server">
09.    <title></title>
10. 
11.    <script type="text/javascript">
12.        function clientShow(sender, eventArgs)
13.        {
14.            var txtInput = document.getElementById("txtInput");
15.            sender.argument = txtInput.value;
16.        }
17.        function clientClose(sender, args)
18.        {
19.            if (args.get_argument() != null)
20.            {
21.                txtInput.value = args.get_argument();
22.            }
23.        }
24.</script>
25. 
26.     
27.</head>
28.<body>
29.    <form id="form1" runat="server">
30.        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
31.            <Scripts>
32.                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js">
33.                </asp:ScriptReference>
34.                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js">
35.                </asp:ScriptReference>
36.                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js">
37.                </asp:ScriptReference>
38.            </Scripts>
39.        </telerik:RadScriptManager>
40.        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
41.        </telerik:RadAjaxManager>
42.    <div>
43.     
44.                            <telerik:RadWindow ID="RadWindow1" runat="server" Height="600px" Modal="True" Width="800px" NavigateUrl="Childform.aspx" OnClientClose="clientClose" OnClientShow="clientShow" OpenerElementID="showDialog" ReloadOnShow="True">
45.                            </telerik:RadWindow>
46.        <br />
47.            <telerik:RadDockLayout ID="RadDockLayout1" Runat="server">
48.                <telerik:RadDockZone ID="RadDockZone1" Runat="server" Height="300px" Width="1220px">
49.                    <telerik:RadDock ID="RadDock10" Runat="server" Height="136px" Width="1182px">
50.                        <ContentTemplate>
51.                            <br />
52.                            <br />
53.                            <br />
54.                             
55.                          
56.                             
57.                        </ContentTemplate>
58.                    </telerik:RadDock>
59.                </telerik:RadDockZone>
60.        </telerik:RadDockLayout>
61. 
62.                            <asp:TextBox ID="txtInput" runat="server"></asp:TextBox>
63.                            <asp:Button ID="showDialog" runat="server" OnClientClick="clientShow" Text="Open" />
64.          
65.            <br />
66. 
67.    </div>
68.    </form>
69.</body>
70.</html>

 

Child page code :

01.<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ChildForm.aspx.cs" Inherits="WebWindows.ChildForm" %>
02. 
03.<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
04. 
05.<!DOCTYPE html>
06. 
08.<head runat="server">
09.    <title></title>
10.  
11. <script type="text/javascript">
12.      
13.     function pageLoad() {
14.         
15.         txtInput = document.getElementById('txtUserInput');
16.         var currentWindow = GetRadWindow();
17.         txtInput.value = currentWindow.argument;
18. 
19.           
20.     }
21. 
22. 
23.     function GetRadWindow() {
24.         var oWindow = null;
25.         if (window.radWindow)
26.             oWindow = window.radWindow;
27.         else if (window.frameElement.radWindow)
28.             oWindow = window.frameElement.radWindow;
29.         return oWindow;
30.     }
31. 
32. 
33. 
34. 
35.     //Close the dialog and return the argument to the OnClientClose event handler
36.     function returnArg() {
37.          
38.         var oWnd = GetRadWindow();
39.         oWnd.close(txtInput.value);
40.     }
41. 
42.</script>      
43. 
44. 
45. 
46. 
47.</head>
48.<body>
49.    <form id="form1" runat="server">
50.    <div>
51.     
52.   
53. 
54.        
55.     
56.        <asp:ScriptManager ID="ScriptManager1" runat="server" OnLoad="Page_Load">
57.        </asp:ScriptManager>
58.       
59.        <asp:TextBox ID="txtUserInput" runat="server"></asp:TextBox>
60.        <br />
61.        <br />
62.        <asp:Button ID="Button1" runat="server" Text="Close With Argument" OnClientClick="returnArg(); return false;" />
63.        <br />
64. 
65.        
66.     
67.         
68. 
69. 
70. 
71.    </div>
72.    </form>
73.</body>
74.</html>

 

** The code working perfect if Textbox and Button outside RadDock Control, But inside doesn't work? 

Check attached video files.

Thanks

Vmax

 

HAREESH
Top achievements
Rank 1
 answered on 24 Apr 2017
1 answer
152 views

(If this is the wrong section to post into, please advise and I'll repost in the proper spot.)

So I need some assistance as I have an idea of what I need, but putting it into code is the challenge. (Or pseudo code).

a) Can't I utilize the RadGrid object with different datasets depending on the 'dropdown box' selections?

b) Can't I bind the data, dynamically display headers, AND, have the dataset fields data grouped into filters?

 

I'm challenged, that I need different RadGrids for different datasets.

(Read between the lines, my engineer is saying it's difficult; but my experience with Telerik isn't noob, thus it doesn't sound difficult.)

Marin Bratanov
Telerik team
 answered on 24 Apr 2017
1 answer
173 views
File drag and drop is broken again this time specifically to MS Edge Creator's Edition. It is broken in my own code and your online examples.
Vessy
Telerik team
 answered on 24 Apr 2017
5 answers
215 views

Hello,

I am trying to pass two parameters (Red and Blue outlined in attachment) to a radWindow via a Cell double click, which I will then populate a grid. I am able to pass the datakey (Red outlined) value on row double click thanks to this demo, but have had no luck in capturing the Column name to use in the querystring. 

Is there a Cell Double click event that I can use to make this happen or can this be done with Row Double click that captures the cell index I click on? 

The second attachment shows the window opened based on the demo link, but how can I get the querystring URL to show:

Bklg_SupportStatusWIPDetails.aspx?MPC=ABAL1TC7XB00?AREA=DB

where Area is another parameter in my datasource that is looking for the column name. 

Thank you in advance!

 

 
 
   
Peter Milchev
Telerik team
 answered on 24 Apr 2017
1 answer
63 views

To run a vb.net 2010 web form application, I have previously used Telerik ASP.NET UI ASO.NET_AJAX_2016 Dev.msi download files so the application would run successfully.
In the past I have found out that if I do not have the current Telerik tool installed, the application had unpredictable results. Basically when the .net application ran on the test application server, I got errors when I accessed the Telerik tool contained within the .net application. Is this still the same issue? Can I continue to use the version of the Telerik tool the application is accessing currently ? If so, can you tell me how long I can continue to use the same version of the Telerik tool?

If not, can you tell me what version of the Telerik tool I need to install?
**I am asking this question since I do not know if my latest install of the Telerik ASP.NET UI ASO.NET_AJAX_2017_1_228_Dev.msi installed correctly.

Marin Bratanov
Telerik team
 answered on 24 Apr 2017
3 answers
452 views
Hi,

In my radGrid i am placing CheckBox on both the ItemTemplate,HeaderTemplate.My requirement is that if i select checkbox in HeaderTemplate then all the chackBoxes in ItemTemplate  should be selected.If i de-select checkBox in HeaderTemplate then all the checkBoxes in ItemTemplate should be de-selected.

How can i achieve this requirement.Please help me...

Thanks in advance...
Abdul
Top achievements
Rank 1
 answered on 24 Apr 2017
4 answers
278 views
We have a user using Safari 3.1 (on Mac OS X 10.4) who reports that when he clicks on the RadComboBox nothing happens.  The combobox doesn't drop down as it should.  Are there any known issues with RadComboBox and Mac Safari?  I am running the latest version of Prometheus on the website.  Here is the RadComboBox in my aspx page:

<

telerik:RadComboBox ID="rcbProcessGroup" DataSourceID="dsGetProcessGroups" runat="server" Skin="WebBlue" AppendDataBoundItems="true" Font-Size="12px" AutoPostBack="true" DataTextField="ProcGroupName" DataValueField="PgrpID" Width="196px">
<Items>
<telerik:RadComboBoxItem runat="server" Text="All Processes" Value="0" />
</Items>
</telerik:RadComboBox>

Jason
Top achievements
Rank 1
 answered on 24 Apr 2017
2 answers
429 views
Hi 

I want to add validation for Radcombobox which contains checkboxes for multiple selection. The issue is the custom validation handler is getting fired on page load. I want to get if fired every time when the user clicks on submit.

Please find the code below ;

<telerik:RadComboBox ID="ddlAcc"  runat="server" DataValueField="Value" DataTextField="Text" Width="270" AllowCustomText="true" ExpandDirection="Up"   AutoPostBack="true" Height="150" CausesValidation="true" HighlightTemplatedItems="true" OnItemDataBound="ddlAcc_ItemDataBound" OnSelectedIndexChanged="ddlAcc_SelectedIndexChanged">
                    <HeaderTemplate>
                      <asp:CheckBox runat="server"  ID="SelectAll" />
                      <asp:Label runat="server" ID="hdrLabel" Font-Bold="false" AssociatedControlID="SelectAll">Select All</asp:Label>
                  </HeaderTemplate>
                  <ItemTemplate>
                      <div onclick="StopPropagation(event)">
                          <asp:CheckBox runat="server" ID="chk1" />
                          <asp:Label runat="server" ID="label1" Font-Bold="false" Font-Size="Smaller" AssociatedControlID="chk1"><%# DataBinder.Eval(Container, "Text") %></asp:Label>
                      </div>
                  </ItemTemplate>
              </telerik:RadComboBox>   
               <asp:CustomValidator ID="cvAccNos" runat="server" ErrorMessage="<%$ Resources: ErrorMessages, error.missing.accountnumber %>"
                      OnServerValidate="cvAccNos_ServerValidate" ControlToValidate="ddlAcc"
                      Text="<%$ Resources: ErrorMessages, error.validatoricon %>"  EnableClientScript="False" />

In the code behind :

protected void cvAccNos_ServerValidate(object sender, ServerValidateEventArgs args)
       {
           args.IsValid = !string.IsNullOrEmpty(GetCheckBoxValues());
       }

Please help . This is urgent
sharon
Top achievements
Rank 1
 answered on 24 Apr 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?