Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
114 views
Hi,
I'm using asp.net ajax tool and I create dynamically 3 RadNumeric TextBoxes with names  RadNumTxt1, RadNumTxt2, RadNumTxt3. 
I create the Text Boxes as follow:
            for (int i = 1; i <= 3; i++){
                    RadNumericTextBox RadNumTxt = new RadNumericTextBox();
                    RadNumTxt .ID = "RadNumTxt" + i;
                    RadNumTxt.AllowOutOfRangeAutoCorrect = true;
                    RadNumTxt.Culture.CultureTypes.Equals("en-US");
                    RadNumTxt.DataType.BaseType.Equals("System.Double");
                    RadNumTxt.Display = true;
                    RadNumTxt.Enabled = true;
                    RadNumTxt.Visible = true;
                    RadNumTxt.ClientIDMode = System.Web.UI.ClientIDMode.Static;
                    PanelCompMembers.Controls.Add(RadNumTxt);
            }
After rendering the page in browser the ids of the  Numeric Texts Boxes have been changed into RadNumTxt1_text, RadNumTxt2_text, RadNumTxt3_text. 

When I try to change the value of these inputs with javascript in client by using the new ids of the inputs like "RadNumTxt1_text" I change them, but when click on them the values that I have change disappeared.  What I am doing wrong?

Veli
Telerik team
 answered on 22 Feb 2012
9 answers
172 views

Hello.

In the web application I have been developing, there is a web page page that uses the RadScheduler component with web service binding.
The RadScheduler component displays appointments grouped by resources.
Since the resources are loaded by a stored procedure that requires input parameters, class SchedulerInfo has been extended:

public class SchedulerInfoExt : SchedulerInfo
{
 public Int16 ClubId { get; set; }
 public String ResourceType { get; set; }
 public String MembershipNumber { get; set; }
 public String InsertResult { get; set; }
  
 public SchedulerInfoExt(ISchedulerInfo baseInfo, Int16 clubId, String resourceType, String membershipNumber) : base(baseInfo)
 {
  ClubId = clubId;
  ResourceType = resourceType;
  MembershipNumber = membershipNumber;
  InsertResult = "";
 }
  
 public SchedulerInfoExt()
 {
 }
}

In the web page, a RadDock component is used to implement a form that allows users to create appointments.
In the Data Provider class, the Insert method validates the business rules and creates the appointment. The scheduler info property InsertResult is set by the Insert method, indicating if the insertion was successful, if there was an error or if there was a violation of the business rules.

On the client side, function AppointmentsPopulated, associated with event OnClientAppointmentsPopulated, is supposed to display a message based on the content of the scheduler info property InsertResult, informing the user if the appointment was created or if there was an error.

Is it possible to access the scheduler info property InsertResult from the client side function AppointmentsPopulated?

Thank you in advance.
Paulo

Plamen
Telerik team
 answered on 22 Feb 2012
1 answer
111 views
I have tried everything I know of to override the inline zIndex of 7000 that is used for RadGrid Header Context menu.
I can see that the rad grid's Context Menu element's style's zIndex is changed to a higher number than the AjaxControlToolkit's ModalPopup in which the RadGrid is shown but still the Context menu appears behind the ModalPopup. My previous method for Q3 2011 where I specified a class for the Header Filter Menu

.modalRadFilterMenu
{
   z-index:111001 !important;
}

stopped working after 2011-3-1305 introduced inline styling for the context menu.

I used both the Client events HeaderMenuShowing and GridCreated to set the zIndex - the code fired the Zindex was changed but the menu still appears behind the ModalPopup - what next??

                    function HeaderMenuShowing(sender, eventArgs) {
                       var mnEle = eventArgs.get_menu().get_element();
                       mnEle.style.zIndex = 111011;
                     }
                     function GridCreated(sender, eventArgs) {
                        var grid = sender;
                        var headerContextMenu = grid.get_headerMenu();
                        var grEle = headerContextMenu.get_element();
                        grEle.style.zIndex = 111011;
                     }
Veli
Telerik team
 answered on 22 Feb 2012
1 answer
53 views
Hi,
I need a usercontrol to be used as EditForm in RadGrid. When I click on "Edit" in RadGrid, the aforementioned usercontrol appears. Up till now, everything can be acheivable. However, after the usercontrol appears, all the bottom rows are being scrambled. I need your assistance in enabling autoscrollbar so that all the bottom rows are adjusted automatically i.e. enabling autoscrollbar option.

I do not want to use popupsettings auto-scrollbar as I would like the usercontrol to be displayed in the form. I even tried to enable auto-scrollbar option for the RadGrid but it didnt serve my purpose.

Could you please advice a resolution at the earliest????
Veli
Telerik team
 answered on 22 Feb 2012
1 answer
98 views
We are experiencing following error in .NET web application
"Microsoft JScript runtime error: '_events' is null or not an object"

We are using ASP.NET AJAX build version 2011.3.1305.40
James Campbell
Top achievements
Rank 1
 answered on 22 Feb 2012
1 answer
74 views
The problem i have is , My HTML look good on the Editor but when on exported PDF all the table size and TD sizes are ignored !!! , i tried to use inline css , external css , but still same result ,
i learned my HTML cant have HTML , BODY tag !! where can i find document about what is supported on PDF what is not?
i'm using latest version of Telerik component 
 
Princy
Top achievements
Rank 2
 answered on 22 Feb 2012
0 answers
57 views
Dear Friends,
                      I have work out the Rad Inline Grid,its working properly without layer architechture,when i am trying to implement it into layered architechture am getting some errors.

I got the code from below link,can you please explain me that how to apply this in layered architecture.

http://www.telerik.com/community/code-library/aspnet-ajax/grid/manual-insert-update-delete-operations-using-auto-generated-editform-with-sql-statements-from-the-code-behind.aspx
Aarthi
Top achievements
Rank 1
 asked on 22 Feb 2012
3 answers
118 views
I was curious if the RadCalendar can be used in a monthly format with listing out details for each day.

Click here to see an example.

Thanks in advance.

Matt
Princy
Top achievements
Rank 2
 answered on 22 Feb 2012
1 answer
75 views
When I dynamically instantiate a RadGrid server side and insert it into a placeholder control I have no problems.  If I create the same RadGrid with identical properties declaratively, I get the error: "Error: Sys.InvalidOperationException: A control is already associated with the element.".  If I remove the AllowScroll property from the declarative RadGrid, the error goes away, but this isn't what I'm looking for.  Since I will be reusing the same grid over several pages I created a user control that wraps the RadGrid, but I am still getting the error.  Leaving out AllowScroll removes the error but, again, this isn't what I need.  I tried adding the AllowScroll property in the pre-render event, but I get the same error.  I can't figure out how the same grid created dynamically works when creating it declaratively doesn't. 

Here's the dynamic version (c#):
            RadGrid grid = new RadGrid();
            grid.ID = "GridName";
            grid.Skin = SkinName;
            grid.CssClass = "gridCss";
            grid.AllowMultiRowSelection = true;
            grid.MasterTableView.HeaderStyle.Wrap = false;
            grid.MasterTableView.HeaderStyle.Height = Unit.Pixel(50);
            grid.MasterTableView.AutoGenerateColumns = true;
            grid.ClientSettings.Scrolling.AllowScroll = true;
            grid.ClientSettings.Scrolling.UseStaticHeaders = true;
            grid.ClientSettings.Selecting.AllowRowSelect = true;
            grid.ClientSettings.AllowKeyboardNavigation = true;

and here's the declarative version:
<telerik:RadGrid runat="server" ID="GridName" AllowMultiRowSelection="true" Skin="SkinName">
    <ClientSettings AllowKeyboardNavigation="true" KeyboardNavigationSettings-AllowSubmitOnEnter="false">
        <Selecting AllowRowSelect="true" />
        <Scrolling AllowScroll="true" UseStaticHeaders="true" />
    </ClientSettings>
    <MasterTableView HeaderStyle-Wrap="true" HeaderStyle-Height="50px"> 
    </MasterTableView>
</telerik:RadGrid>



Shinu
Top achievements
Rank 2
 answered on 22 Feb 2012
5 answers
366 views

i applied this for Item
<

 

telerik:RadPanelItem BackColor="Red">

But color is not changing
Please help

Regards
Arijit

 

Shinu
Top achievements
Rank 2
 answered on 22 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?