Telerik Forums
Community Forums Forum
1 answer
68 views
Hi Telerik team,

    In radgrid rowselected event is not working if it in xmlhttppanel. How can I solve the issue?

My source code is below:

<

 

div>

 

 

<script type="text/javascript" language="javascript">

 

 

function OnClientClick() {

 

 

var panel = $find("<%=RadXmlHttpPanel1.ClientID%>");

 

 

var item = document.getElementById("<%=TextBox1.ClientID%>").value;

 

panel.set_value(item);

}

 

function OnRowSelectedHandler(sender, args) {

 

alert();

 

var item = args.getDataKeyValue("CustomerID");

 

 

var panel = $find("<%=RadXmlHttpPanel2.ClientID%>");

 

panel.set_value(item);

}

 

</script>

 

 

<asp:ScriptManager ID="ScriptManager1" runat="server">

 

 

</asp:ScriptManager>

 

 

<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">

 

 

</telerik:RadAjaxLoadingPanel>

 

 

<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>

 

 

<asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="OnClientClick();return false;" />

 

 

<telerik:RadXmlHttpPanel ID="RadXmlHttpPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1"

 

 

OnServiceRequest="RadXmlHttpPanel1_ServiceRequest">

 

 

<uc6:ucXmlgrid ID="ucXmlgrid1" runat="server" />    //This is radgrid

 

 

</telerik:RadXmlHttpPanel>

 

 

<div style="padding-top: 10px">

 

 

<telerik:RadXmlHttpPanel ID="RadXmlHttpPanel2" runat="server" LoadingPanelID="RadAjaxLoadingPanel1"

 

 

OnServiceRequest="RadXmlHttpPanel2_ServiceRequest">

 

 

<uc5:ucXmlDetail ID="ucXmlDetail1" runat="server" />

 

 

</telerik:RadXmlHttpPanel>

 

 

</div>

 

 

</div>

Source code in ucXmlgrid1 is as below:

 

 

<telerik:RadGrid ID="rgCustomer" runat="server" AutoGenerateColumns="False" CellSpacing="0"

 

 

AllowMultiRowSelection="false" GridLines="None">

 

 

<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">

 

 

</HeaderContextMenu>

 

 

<MasterTableView DataKeyNames="CustomerID" ClientDataKeyNames="CustomerID">

 

 

<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>

 

 

<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

</RowIndicatorColumn>

 

 

<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

</ExpandCollapseColumn>

 

 

<Columns>

 

 

<telerik:GridBoundColumn FilterControlAltText="Filter column column" UniqueName="column"

 

 

DataField="ContactName" HeaderText="Contact Name">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn FilterControlAltText="Filter column1 column" UniqueName="column1"

 

 

DataField="CompanyName" HeaderText="Company Name">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn FilterControlAltText="Filter column2 column" UniqueName="column2"

 

 

DataField="ContactTitle" HeaderText="Contact Title">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn FilterControlAltText="Filter column3 column" UniqueName="column3"

 

 

DataField="Address" HeaderText="Address">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn FilterControlAltText="Filter column4 column" UniqueName="column4"

 

 

DataField="City" HeaderText="City">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn FilterControlAltText="Filter column5 column" UniqueName="column5"

 

 

DataField="Country" HeaderText="Country">

 

 

</telerik:GridBoundColumn>

 

 

</Columns>

 

 

<EditFormSettings>

 

 

<EditColumn FilterControlAltText="Filter EditCommandColumn column">

 

 

</EditColumn>

 

 

</EditFormSettings>

 

 

</MasterTableView>

 

 

<FilterMenu EnableImageSprites="False">

 

 

</FilterMenu>

 

 

<ClientSettings EnableRowHoverStyle="True">

 

<%

--<Selecting AllowRowSelect="True" />--%>

 

 

<ClientEvents OnRowSelected="OnRowSelectedHandler" />

 

 

</ClientSettings>

 

 

</telerik:RadGrid>

 

Pero
Telerik team
 answered on 28 Sep 2011
1 answer
111 views
Max file size on a support ticket is 20Megs, can you bump that up perhaps?  I'm having to share out of my dropbox (database zipped is 93Megs when I need to send it as an example)

Steve
Georgi Tunev
Telerik team
 answered on 28 Sep 2011
1 answer
86 views
Please, please, please fix this.  The column on the left with the trees and the column on the right with the text should be independent.  i.e. When clicking through multiple levels on the tree it resets the entire thing to top every time.  So it's click, scroll back down, click, scroll back down, click, scroll back down just to navigate the tree.  The scroll position on the tree should not change just because you clicked on another item.

Incredibly annoying.
Anthony
Telerik team
 answered on 26 Sep 2011
6 answers
645 views
Dear to Whom This Concern,

We are looking for an ASP.NET, C# Developer with r.a.d. controls experience (Splitter and Tab).

We have designed the Web Form on paper, but need help with r.a.d. splitter and tab control.

Please see Telerik URL for sample we like to build:
http://www.telerik.com/demos/aspnet/Controls/Examples/Integration/Ajax/WizardCV/DefaultCS.aspx?product=controls

http://www.telerik.com/demos/aspnet/Controls/Examples/Integration/UnifiedSkins/DefaultCS.aspx?product=controls

http://www.telerik.com/demos/aspnet/Controls/Examples/Integration/DradDropTab/DefaultCS.aspx?product=controls

http://www.telerik.com/demos/aspnet/Controls/Examples/Integration/GridAndCombo/DefaultCS.aspx?product=controls

If this is easy for you, please contact us.

Thank you,
Mr. Rune Brattas
RuneBrattas(@)videotron(dot)ca
Meham
Top achievements
Rank 1
 answered on 23 Sep 2011
0 answers
80 views
Hi,

I am developing Custom server control(Ex : MyRadListBox) by inheriting from RadListBox. And I need RequiredFieldValidator inside the MyRadListBox class. Means need a RequiredFieldvalidator feature with My Custom server control. But its giving error like "Unable to find control id 'MyListBox1' referenced by the 'ControlToValidate' property of ''.

My Code is

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Telerik.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI;
 
namespace WebApplication1
{
    public class MyListBox : RadListBox
    {
        RequiredFieldValidator rfv ;
        protected override void CreateChildControls()
        {
            rfv = new RequiredFieldValidator();
            rfv.ControlToValidate = this.ID;
            rfv.ErrorMessage = "This is required";
            rfv.EnableClientScript = true;
            base.Controls.Add(rfv);
            base.CreateChildControls();
        }
 
        protected override void Render(HtmlTextWriter writer)
        {
            base.Render(writer);
            rfv.RenderControl(writer);
        }
    }
}

But If I inherit from simple ASP Listbox it works fine. Look at below code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Telerik.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI;
 
namespace WebApplication1
{
    public class MyListBox : ListBox
    {
        RequiredFieldValidator rfv ;
        protected override void CreateChildControls()
        {
            rfv = new RequiredFieldValidator();
            rfv.ControlToValidate = this.ID;
            rfv.ErrorMessage = "This is required";
            rfv.EnableClientScript = true;
            base.Controls.Add(rfv);
            base.CreateChildControls();
        }
 
        protected override void Render(HtmlTextWriter writer)
        {
            base.Render(writer);
            rfv.RenderControl(writer);
        }
    }
}

I am not getting why its not working with RadListBox and why its working with normal asp ListBox control?

Please kindly help me to resolve this problem.

Thanks
Vinayak


Vinayak
Top achievements
Rank 1
 asked on 15 Sep 2011
4 answers
86 views
See attached, this started a couple weeks ago...the links used to nest under the avatars :)

**NOTE*** Screenshot from the sitefinity forums
Filip
Telerik team
 answered on 13 Sep 2011
0 answers
113 views
Hi

Can anyone pls tell how to proceed for validating raddatepicker?
I have only one rad date picker when I enter any number or any alphabets in it , it is not validating and the form is submitting.
I tried with validation exp but not succeeded upto the mark.It has to take only dateformat like MMDDYYYY.Here is my sample code.


<tr>
<td>

<asp:label ID="lblenddate"  runat="server"  text="EndDate" >
</asp:label>

<rad:RadDatepicker Id="txtenddate" runat="server">
</rad:RadDatepicker>

</td>
</tr>


Regards

Srinivas



srinivas
Top achievements
Rank 1
 asked on 07 Sep 2011
0 answers
87 views
BizTalk Server SDE
-------------------------
Based in Shenzhen, CHINA.
Minimum 3 to 5 years development experience & expertise with .NET arcitecture will be a plus.
Experience with BizTalk Server 2004 to 2010 would be an added advantage.
Familiarity with Microsoft Dynamics CRM, SQL or Sharepoint is great to have, but not necessary.
Fluent spoken & written English is needed as you will be based in an international organisation.



SilverLight SDE
-------------------------
Based in Shenzhen, CHINA.
Minimum 3 to 5 years development experience & expertise with .NET Framework CLR will be a plus.
Experience with Visual Studio Silverlight Tools & Silverlight 4, 5 would be an added advantage.
Familiarity with Microsoft Silverlight for Mobile would be added advantage.
Fluent spoken & written English is needed as you will be based in an international organisation.


Microsoft Sharepoint SDE
-------------------------
Based in Shenzhen, CHINA.
Minimum 3 to 5 years development experience & expertise in SharePoint Designer / Workspace.
Fluent spoken & written English is needed as you will be based in an international organisation.


If you are interested in your career development and would consider employment in the FarEast,
please contact IceLiu (Ms).
Cell: +86 0136 3261 3127
Email: iceliu@wicresoft.com
Ice
Top achievements
Rank 1
 asked on 03 Sep 2011
7 answers
143 views
There is a menu option "About" under menu option "Telerik" in VS menu.
Usually it is supposed to be a string about current version of program and a few strings about a purpose.
But what you see: the full list of Telerik products!
Even if click one of them you will not see a version!
It doesn't make any sense!

What is purpose of "About" menu option?
How can I check which current version of Telerik?

Thank you,
Ildar
Sebastian
Telerik team
 answered on 01 Sep 2011
2 answers
86 views
Hi.  I love your controls and use them extensively.  I'm going to give you a little disclaimer here before going on a bit of a rant.  I'm a VB developer and have no need/desire to learn C#.  Ever.  

First, I dislike the support and demo sections defaulting to C#.  While if I select "VB" in the demo section, it will stay for my visit, the next time I visit, it is defaulted back to C# again.  It would be nice to be able to put my language choice in my profile so it doesn't display Java... err... C# to me every time I come back to look at code.

Also, your video sections are nearly useless for VB developers.  Nearly all presentations are done in C#.  I know that you don't control how your evangelists present their demos, but Telerik TV and the Webinars are almost always in C# and this is a HUGE lost resource that 50% of the developers (who code in VB) cannot use.  It would be nice to at least have some VB source to download, even if the video was done in C#.

Lastly, some of your documentation for WPF or Silverlight (can't remember which one) are ONLY in C#.  Obviously you can see the problem there...  

I know you provide a free "conversion tool".  I'm tired of having to take the extra time to convert.  How about providing only VB code and making all of the C# developers convert the code every time they want to read it.  I'm just saying...

Anyhow, keep up the good work with the awesome controls!  
Kurt
Top achievements
Rank 1
 answered on 26 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?