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

Hi,

Can any one please help me out with the following issue on QTP 9.5:

 

 

1. QTP9.5 is unable to identify the Upload fields in the Application. It identifies the field as a WinObject >Activex.

2. QTP9.5 is unable to identify the Upload fields in the Application. It identifies the field as a Frame >WebElement.

 

I have added the latest Patch available for QTP9.5 - 'QTP_00550'  and 'QTP_00552' , still the facing the same problem.

Kindly guide.. :)

Thanks,
Shraddha

 

Konstantin Petkov
Telerik team
 answered on 10 Mar 2011
4 answers
195 views
Hello Telerik Team,

I know that this kind of topic has been solved many times, but I couldn't have found solution in my case.

I use inline editing form in the radgrid. I have radcombobox control defined inside of the radgrid <EditItemTemplate> section. The combobox has set property EnableLoadOnDemand=true.

What I need to achieve is to set focus on the same combobox when requested item is selected. Now, when user selects some item from the combobox list it's updated properly, but focus in not set on it. I found something similar in this thread: http://www.telerik.com/community/forums/aspnet-ajax/combobox/set-focus-and-cursor-at-the-end-of-text-in-radcombobox.aspx

I use this script in the protected void cmb_Artikel_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e):
StringBuilder script = new StringBuilder();
script.Append("Sys.Application.add_load(function(){");
script.Append("var combo2 = $find('" + combo.ClientID + "');");
script.Append("combo2.get_inputDomElement().focus();");
script.Append("combo2.selectText(combo2.get_text().length, combo2.get_text().length); });");            
  
RadScriptManager.RegisterStartupScript(Page, Page.GetType(), "comboCursor", script.ToString(), true);

The script runs properly, the combobox gets focus after user selects some item. For this steps everything looks good and correct, the problem will appear when user clicks on update button in the edited row.

Then the error message is appeared: Microsoft JScript runtime error: 'null' is null or not an object

Detailed info about this error is in the attachment.

I think that it will be related to Sys.Application.add_load from the above script section. Maybe there must be append some script for unload section when ajax request is completed ?

Please help me to solve this issues.

Best regards

Vasssek
Vasssek
Top achievements
Rank 1
 answered on 10 Mar 2011
1 answer
50 views
I have an explorer type screen - treeview on the left, pane on the right, When you click on a node in the treeview, a page loads in the pane on the right. All works fine. But there are times when the user does something in the right pane that I want to reload the treeview.

How can I fire an event either in the treeview or on the page from the pane which is running an all together different page?

TIA - Jeff.
Dobromir
Telerik team
 answered on 10 Mar 2011
1 answer
88 views

As I mentioned in a previous post I am converting an old Dundas chart to a Telerik chart control. I am finally at the last part which is the ability to select and highlight a section (see the screen shot labeled ZoomingHighlight.png). When one does this the section they selected is higlighted with a different color and then statistics at the bottom are updated based on the selected area ((see the screen shot labeled ZoomingHighlighted.png). For example it shows the selected start and end dates. I have ran into two issues in trying to replicate this function.

First and perhaps the easiest I bet to solve is that of the color and transparency of the rectangle selection. I can set the color to yellow, but no matter what I set the ZoomRectangleOpacity to it remains fully solid and not slightly transparent. The default settings work fine with opacity.

Second and probably much harder is capturing the starting and end points of data for the selection. I am doing only x-axis scrolling/zooming and I can easily get the XScaleNew and YScaleNew on the server side, but I cannot figure out how I can get the selected data points particularly the start and end points in the selection. Is there an example, client-side api or such that can assist me in this? This functionality of selection is one they use extensively.Thanks.

Missing User
 answered on 10 Mar 2011
2 answers
154 views
Hello!!

This will be my first post hoping to get the answer as soon as possible...

With regards to the Subject, is there a way to Bind the Object Properties declaratively to the DetailTable of the Grid.

Lets assume this is my Object Structure

Class Person
         Property PersonName As String
         Property Hobbies As List(Of Hobby)
         Property Nationality As String
End Class

Class Hobby
         Property ID As Integer
         Property Description as String
End Class

And this is my Grid Structure

<telerik:RadGrid ID="myGrid" runat="server">
    <MasterTableView>
            <Columns>
                        <telerik:GridBoundColumn DataField="PersonName " />
                        <telerik:GridBoundColumn DataField="Nationality " />
            </Columns>
            <DetailTables>
                        <telerik:GridTableView Name="HobbyList">
                                    <Columns>
                                                            <telerik:GridBoundColumn DataField="Description" />
                                    </Columns>
                        </telerik:GridTableView>
            </DetailTables>
    </MasterTableView>
</telerik:RadGrid>

My Problem is that I want bind the whole Person object to the Grid and to the DetailTables. When I retrieve the Person object, I will the whole Person object, including all the properties [Hobbies].

Although I have an alternate solution to this, and that is to handle the DetailDataBind event and bind the Property to the Detail manually using CodeBehind.

Is there a way to do it declaratively? My purpose for this is to automate things and reduce the Codes behind.

Thank You..
AUE
Top achievements
Rank 1
 answered on 10 Mar 2011
1 answer
109 views
What's the easiest way to set the font sizes for ALL telerik control to a single value? I believe you can control fonts by modifying the CC of a specific control, but that's a pain because I am using many different control types...

Thx
Shinu
Top achievements
Rank 2
 answered on 10 Mar 2011
1 answer
424 views
I need to create a link in my grid that takes the user to an update form, the form is HUGE so I don't want to use the in-grid edit mode. So I want to do a Template column with something like this

<a href="updateform.aspx?id='<%# bind("id")%>"><%# bind("Name")%></a>

I am getting errors using the bind statement though.

Thanks!
Shinu
Top achievements
Rank 2
 answered on 10 Mar 2011
1 answer
150 views
Hi,

I am trying to set text to radcombobox in radgrid itemtemplate. I am getting an error "object reference not set to an instance of object" at

Box1.Text = Box2.SelectedValue;


ASPX:

<

 

telerik:GridTemplateColumn HeaderText = "Print Letters/Post Cards" UniqueName = "PrintLetter" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">

 

 

<ItemTemplate>

 

 

<telerik:RadComboBox ID= "Print" runat="server">

 

 

<Items>

 

 

<telerik:RadComboBoxItem runat="server" Text=""/>

 

 

<telerik:RadComboBoxItem runat="server" Text="1 Year Postcard"/>

 

 

<telerik:RadComboBoxItem runat="server" Text="1 Year Adult"/>

 

 

<telerik:RadComboBoxItem runat="server" Text="2 Years Adult"/>

 

 

<telerik:RadComboBoxItem runat="server" Text="3 Year"/>

 

 

</Items>

 

 

</telerik:RadComboBox>

 

 

</ItemTemplate>

 

 

<EditItemTemplate>

 

 

<telerik:RadComboBox ID= "PrintEdit" runat="server">

 

 

<Items>

 

 

<telerik:RadComboBoxItem runat="server" Text="1 Year Postcard"/>

 

 

<telerik:RadComboBoxItem runat="server" Text="1 Year Adult"/>

 

 

<telerik:RadComboBoxItem runat="server" Text="2 Years Adult"/>

 

 

<telerik:RadComboBoxItem runat="server" Text="3 Year"/>

 

 

</Items>

 

 

</telerik:RadComboBox>

 

 

</EditItemTemplate>

 

 

</telerik:GridTemplateColumn>

 


ASPX.CS:

protected

 

void EditGrid(object sender, GridCommandEventArgs e)

 

 

{


GridEditableItem

 

dataItem = e.Item as GridEditableItem;

 


RadComboBox

 

Box1 = e.Item.FindControl("Print") as RadComboBox;

 

RadComboBox

 

Box2 = (RadComboBox)dataItem["PrintLetter"].FindControl("PrintEdit");

 

Box1.Text = Box2.SelectedValue;


}
Princy
Top achievements
Rank 2
 answered on 10 Mar 2011
1 answer
84 views
I had hoped to use some raddocks on my pages w/o any dragging or any dock zones.

I simply wanted to make use of the container UI and the ability to add commands to the title bar easily.

But I am finding that the raddocks all float up to the top as far as they can.  In fact, if I put 2 in the same div an separate them by a few <BR>s the simply display on top of one another.

Is there any way around this?  Or is this not possible to use them in this manner?

EDIT: of course as soon as I post I find a work around.

I can just wrap my raddocks in raddockzones, and I don't have to enable dragging and it seems to do what I want.
Sean
Top achievements
Rank 2
 answered on 10 Mar 2011
1 answer
78 views
Hi Telerik,

I have reviewed the example on how to remove a dynamically created splitbar here. I am trying to remove a RadPane and RadSplitBar from a RadSplitter on collapse.

First, during the OnClientCollapsed event I make an ajaxRequest to force a postback on the page. Then, during SaveDockLayout I perform validation on my controls and remove those controls which need to be removed. 

RadSplitter splitter = splitBarToRemove.Splitter;
splitter.Items.Remove(splitBarToRemove);
RadControlStates.SplitbarStates.Remove(splitBarToRemove.ID);

I do this inside of SaveDockLayout -- which causes an exception to be thrown later on. Presumably, this exception is being caused by the fact that I am modifying the view state (?) during a period in which it should not be modified.

By using the line "splitter.Items.Remove(splitBarToRemove)" I get the message
else{var g=this.getSplitBarByIndex(0);
var e=g.get_element();
 
Uncaught TypeError: Cannot call method 'get_element' of null
off over in a Telerik.Web.UI.WebResource -- the one for the RadSplitter, presumably. Anyway, I remove the code that brings the dynamically created SplitBar back -- so I'm not adding a new SplitBar to the RadSplitter. I've tried just disabling the control. The code doesn't know that the RadSplitBar should be removed until after the ajaxRequest has finished processing as SaveDockLayout needs to fire and an AjaxRequest is necessary to make the postback happen. Any thoughts?
Sean
Top achievements
Rank 2
 answered on 10 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?