Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
134 views

I am working an Asp.net project, I am loading two user controls into another ascx control which uses RadSplitter to divide them. First, I am loading the control1.ascx and then the control2. After loading both of them inside control2.ascx I want to access a function that reloads some data of control1. I am doing it with the following code:

 private ASP.control1_ascx tree; 
 tree = (ASP.control1_ascx)LoadControl("control1.ascx");
 tree.aload();

When I debug the code, it seems that it calls the aload() function and updates the RadTreeView. But the problem is that I cannot see them after the function is called, instead I can see the correct data after a postback event. Why is this happens?. Is there a solution to see them when I call the function ?

Vessy
Telerik team
 answered on 12 Nov 2012
2 answers
213 views
Hello,

I have a problem with the group collaspe/expand. My grid is not grouping by default. If I drag a column to group it, it works. When I collapse it, it also works but when I want to expand the collapsed columns, it won't works. I don't have any error (javascript or server-side).

There's my code :
<%@ Page Language="C#" EnableEventValidation="false" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="GetVersionMapping._Default" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
            <div>
                <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
                </telerik:RadScriptManager>
                <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                    <AjaxSettings>
                        <telerik:AjaxSetting AjaxControlID="RadGrid1">
                            <UpdatedControls>
                                <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                            </UpdatedControls>
                        </telerik:AjaxSetting>
                    </AjaxSettings>
                </telerik:RadAjaxManager>
                 
                <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" CellSpacing="0" GridLines="None" ShowGroupPanel="True"  >
             
                    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
 
                    <MasterTableView HierarchyDefaultExpanded="True" >
                        <Columns>
                            <telerik:GridBoundColumn DataField="Platform" HeaderText="Platform" UniqueName="Platform">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Client" HeaderText="Client" UniqueName="Client">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Application" HeaderText="Application" UniqueName="Application">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Version" HeaderText="Version" UniqueName="Version">
                            </telerik:GridBoundColumn>
                            <telerik:GridDateTimeColumn DataField="Date" HeaderText="Publication Date" UniqueName="Date">
                            </telerik:GridDateTimeColumn>
                        </Columns>
                    </MasterTableView>
 
                    <ClientSettings AllowDragToGroup="True" >
                    </ClientSettings>
 
                </telerik:RadGrid>
                 
            </div>
        </form>
    </body>
</html>

Can you see a problem in my code ?

Thanks by advance.
Pierre-Antoine DOUCHET
Top achievements
Rank 1
 answered on 12 Nov 2012
2 answers
119 views
I need to be able to access other fields on the same record that was just selected through the combo box - in the code behind is where I want to access the other fields.  I have a record - an employee record, the fields are first name, last name, phone number, address, dob, and email address.  The combo box displays and I selected the record by last name - after selecting the record by last name, i want to display the address on the screen.  ( I am using C# mostly, an explanation in either C# or VB would be great).

Thanks in advance.

Donnie


wow.
Don
Top achievements
Rank 1
 answered on 12 Nov 2012
10 answers
364 views
Hi,

I have telerik rad datepicker  in my page, I have set width to this controls, and when using telerik version 2009, it works fine, I have changed telerik version to Q1 2012 and now when rendering page in IE (8.0) it shows width less than the width specified, but when focusing on this controls, the width change to the specified width. In other browsers it rendering correctly,
How can i solve this issue.
The attached images shows the details
the first image (image1) is when page loads and the second image (image2) is when focused on the control.

thanks in advance
Jiju
Galin
Telerik team
 answered on 12 Nov 2012
2 answers
102 views
Is there a way to get reference to the editorDropDown tool in Javascript.
1) Replace all the current editorDropDownItem
2) add new editordropdownitem through javascript

I searched for few hours but didn't find anything that can help.
Nikolay
Telerik team
 answered on 12 Nov 2012
8 answers
624 views

I'm using the Telerik rad grid and I'm allow the user to enter data directly to the grid.

I am using the "EditForms" edit mode and I also allow inserts using the same.

If the user edits a row, then I don't want to allow any other edits or inserts until the current one is complete or cancelled.

I'm totally new to Radgrids and I've recently been working in MVC... so any help would be great!

Greg
Top achievements
Rank 2
 answered on 12 Nov 2012
5 answers
98 views
Hi,

since I updated to Q3 2013. Every form that have a RadFormDecorator on it is totally messed up! It does a lot off JavaScripts errors too.

Tommy
Bozhidar
Telerik team
 answered on 12 Nov 2012
2 answers
94 views
I am trying to achieve horizontal scroll in radgrid which has many columns in it.As per the documentation in the demo in 
http://http//demos.telerik.com/aspnet-ajax/grid/examples/client/scrolling/defaultcs.aspx which is as given below:

"In order to display horizontal scroll for navigation, you need to make sure that the total width of the columns (either auto-generated or declaratively set) exceeds the width of the grid".

For this I have set the width of radgrid in pixels which fits in the whole page,and is less than the width of total columns (in pixel).Hence horizontal scroll is working fine.
But the issue is that since I have set the width of radgrid in pixels,while changing the screen resolution,it doesn't fit in the whole page.

When I give width=100% for the grid,horizontal scroll is not working.

Please guide me on this so as to achieve above both scenarios.

Thanks in advance
Kostadin
Telerik team
 answered on 12 Nov 2012
1 answer
96 views
Hello,

I am firing an ajaxRequest and need to capture the arguments from within the OnInit of my master page.  This is because the page lifecycle fires the AjaxRequestHandler after the page has already loaded and I need to set global values prior to any page load.  I'm trying to avoid having to reload the pages by invoking a delegate.

Is it possible to read the arguments in server code anywhere but in the event handler?

Request.Form["__EVENTTARGET"] is "ctl00_rsmMain" and I can't find the property in the ScriptManager object.

Thanks!!
Thad
Thad
Top achievements
Rank 2
 answered on 12 Nov 2012
3 answers
97 views
Hi!

I created an own DateCombo user control where I put a RadDatePicker control.
I want to use more instances of this own user control  on one page and I want to handle unique OnDateSelected client event for all instances.
I tried to use inline expression in the front code but as I experienced it was not resolved at the telerik:RadDatePicker (but in the javascript block it was)

<script type="text/javascript">
        function OnDateSelected_<%= ClientID %>(sender, eventArgs)
        {
......
}

</script>

 <telerik:RadDatePicker id="RadDatePicker1"
                          Runat="server"
                          SharedCalendarID="sharedCalendar"
                          AutoPostBack="false"
                          Width="100px"  CssClass="" >
                  <ClientEvents OnDateSelected="OnDateSelected_<%= RadDatePicker1.ClientID %>" />       
                                                                                                                                 
              <Calendar EnableEmbeddedSkins="false" Skin="MySkin" runat="server">
              </Calendar>
              <DateInput ID="radDateInput1" runat="server" EnableEmbeddedSkins="false" Skin="MySkin" DateFormat="d">
              </DateInput>
              <DatePopupButton ImageUrl= "../Styles/telerik/Skins/MySkin/Calendar/datePickerPopup.gif" CssClass="DateInputImage"
                               HoverImageUrl="../Styles/telerik/Skins/MySkin/Calendar/datePickerPopupHover.gif" />                                               
   </telerik:RadDatePicker>


Does anybody have any idea  how can I solve this problem?
thx in advance
Zsolt

Vasil
Telerik team
 answered on 12 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?