Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
446 views
Hi,

After reading some threads and documentation about the client-side OnPopUpShowing event, I tried to position the popup window right below the edited item (as opposed to centered in the page as discussed in this thread)

I tried using the eventArgs.get_domEvent() function but received the following error : eventArgs.get_domEvent is not a function. My objective was to retrieve the clicked button's image and deduced the position from there. The documentation page about OnPopUpShowing mentions that domEvent is an property of eventArgs though...

var popUp; 
function PopUpShowing(sender, eventArgs) 
   var  domEvent = eventArgs.get_domEvent(); 
   var target = domEvent.target; 
   ... 

Can you suggest an alternative ?

Dominic.
-----
Using version 2009 Q1 SP1 (2009.1.402.35)
Nikolay Rusev
Telerik team
 answered on 05 May 2009
1 answer
71 views
Hi:

Looks like an old parameter that allowed us to limit the image types that could be uploaded within the image manager dialog has been deprecated.  Is there a way to limit the content to jpg and gif images?

Thanks for the help.

Brad
Rumen
Telerik team
 answered on 05 May 2009
1 answer
125 views

Hello Telerik,

Just quick qustion from my side:

How can I set selection in new row (after insert) in Relation Table? 

I use ItemCommand for handle Insert event. I try to use e.Item.Selected = true; and e.Item.OwnerTableView.Items[selectedIndex].Selected = true; - but no effect. 

For Master table selection set very easy:

RadGrid1.SelectedRow = selectedIndex;

Please explain how can I make selection for new (inserted) row for detail table.

Yavor
Telerik team
 answered on 05 May 2009
3 answers
243 views
Hello,

I am using your example at

http://demos.telerik.com/aspnet-ajax/tooltip/examples/tooltiptreeview/defaultcs.aspx

To have a treeview launch tooltips.  I have some javascript code to Add a Node client side.  This works as expected.  I have the identical code you have in the markup page OnClientMouseOver(..) that gets called when the user goes over the node.  The problem is that the Ajax event does not fire for the New Node.  The tooltip does appear though.  The ajax event fires for all the other nodes that were added at start up. 

After some investigation it seems that the "id" attribute needs to be set.  Just like you have done in the RadTreeView_NodeExpand event node.Attributes("id") = Guid.NewGuid().ToString() from your code behind page.  However, trying to set this on the client side does not work.  Adding the node like the following;

   var tree = $find("<%= RadTreeView1.ClientID %>");
   tree.trackChanges();
   var node = new Telerik.Web.UI.RadTreeNode();
   node.set_text("New Node");
   node.get_attributes().setAttribute("id","myid")
   tree.get_nodes().add(node);
   tree.commitChanges();

When I look at the node like so.. node.get_textElement() the id is not set.  However, the rest of the IDs of the other nodes are set.  If I manually set the ID like so... node.get_textElement().id = "myid", the ID gets set correctly and the tooltip and ajax event fires correctly.

I am wondering if I am doing something incorrectly when adding the Node client side and expecting the Ajax event to fire. 

Thanks.
Svetlina Anati
Telerik team
 answered on 05 May 2009
12 answers
320 views

The spellcheck feature in our radEditors is a little buggy. 

  • First, the misspelled words aren't highlighted in yellow on my screen, but they are for my co-workers. 
  • Secondly, if the user has a long narrative and the spellcheck is down at the bottom of the screen, it covers the highlighted word when it displays suggested words (1024 by 768 screen resolution, possibly others).
  • Also, if the text has several misspelled words in it, the spellcheck will randomly stop or the text will scroll uncontrollably for a few seconds and then the spellcheck will stop working (you still have the option to hit "Finish Spellcheck", but it no longer gives suggestions for the misspelled words).  
  • Finally, if you add two unknown words to the dictionary in a row, the spellcheck also stops (instead of a word being highlighted, a cursor appears in the text and the spellcheck only works again if you click a few times). 

Our users are getting a bit frustrated with the unpredictability of the spellcheck feature.  Do any of these bugs have fixes?  Have you heard any complaints about any of these things before?

Thanks,
Lisa

Lini
Telerik team
 answered on 05 May 2009
1 answer
148 views
I thought this would be easier than it has become, but I am stuck trying to refresh my grid when a change is make from a FormView (that is in a UserControl) from the forms NestedView.  Basically I am doing a simple update, but that data that is getting update is part of the main grids display so I want the grid to rebind or refresh when the change is made.

Here is how my grid is set up:
<NestedViewTemplate> 
       <uc1:AppViewer ID="AppViewer1" runat="server" /> 
    </NestedViewTemplate> 

Then from a <asp:FormView> inside that usercontrol 'AppViewer1' I have:
<telerik:RadComboBox ID="list_appState" Runat="server" Skin="Sunset" SelectedValue='<%# Bind("app_state") %>' AutoPostBack="True" OnSelectedIndexChanged="list_appState_SelectedIndexChanged"

And finally from the user control code behind:
Protected Sub list_appState_SelectedIndexChanged(ByVal o As ObjectByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) 
 
        Dim record As Integer = (TryCast(Parent.FindControl("GridRec"), Label)).Text 
        Dim AppState As String = (TryCast(formview_AppInfo.FindControl("list_appState"), RadComboBox)).SelectedValue 
 
        Dim UpdateSuccess As Integer = Applications.UpdateAppState(record, AppState) 
 
        If UpdateSuccess > 0 Then 
            lbl_status.Text = String.Format("<br />The Application Status has been updated to '{0}' for record: {1}.<br /><br />", AppState, record) 
            'Dim grid As RadGrid = Parent.FindControl("grid_applications") 
            'grid.Rebind() 
        End If 
 
    End Sub 

Any ideas on an easier way to do this?  Appreciate it.


Yavor
Telerik team
 answered on 05 May 2009
3 answers
90 views
Hi,

I am getting an error  "column orderNumber does not belong to table GroupedTable0" when trying to achieve grouping by drag and drop facility.
Please have a look into the following codesnippet.
....
        <Columns>
            <telerik:GridButtonColumn DataTextField="OrderNumber" CommandName="BtnLinkPO" HeaderText="Order No." UniqueName="BtnOrderNumber" Groupable="false" SortExpression="OrderNumber">
                <ItemStyle Font-Bold="True" ForeColor="Green" />
            </telerik:GridButtonColumn>
            <telerik:GridBoundColumn DataField="OrderDate" HeaderText="Order Date" UniqueName="OrderDate"  DataType="System.DateTime" DataFormatString="{0:dd/MM/yyyy}"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Cost" HeaderText="Cost" Aggregate="Sum"   DataFormatString="{0:###,##0.00}"  FooterAggregateFormatString="&lt;strong&gt;{0:###,##0.00}&lt;/strong&gt;"  UniqueName="GrossCost" Groupable="False">
                <FooterStyle HorizontalAlign="Right" />
                <ItemStyle HorizontalAlign="Right" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="ClientPO" HeaderText="Client PO No." UniqueName="ClientPO"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Authoriser" HeaderText="Authoriser" UniqueName="Authoriser"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="ActivityID" HeaderText="Activity ID" UniqueName="ActivityID"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="UserID" HeaderText="User ID" UniqueName="UserID"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Business" HeaderText="Business" UniqueName="Business"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Brand" HeaderText="Brand" UniqueName="Brand"></telerik:GridBoundColumn>
        </Columns>
...

Thanks in advance.

Milan G


Sebastian
Telerik team
 answered on 05 May 2009
2 answers
158 views



Hello everyone,

I've used most of RadControls, and I really like it. Its easy and have too many features to use.
One of the greatest RadControls is the Grid, I used it in around 3 projects and everyone likes it.

The problem that I'm facing with RadGrid is:
I used to develop using GridView, I know how to use/ access its templates, header, footer pager... etc.
I can do anything using it, but with RadGrid its abit hard to. I tried to read every & any document that I find regarding that great control but till now I dont even have a clear idea about it.

I'd really appreciate it If anyone have the knowledge in how to use the RadGrid and would like to spare some time to write tutorials and description in how to use.

Please note that I'm not using SqlDataSource Control, I'm using the Server-Side data binding method.
A.mass
Top achievements
Rank 1
 answered on 05 May 2009
1 answer
96 views
Is it possible to implement "OR" condition in filter column? What i am looking for is in normal filter column it checks only for "contains","equalto" etc. But I want my filter to check multiple conditions like First Name = "Micheal" or First Name="John". Is this possible in Rad Grid? Telerik File version we are using is 2008.03.1105.20

Thanks 
Madhu Nair
Yavor
Telerik team
 answered on 05 May 2009
1 answer
284 views
Hello,

Within the radalert properties, can you set the z-index explicitly, or is this you have to access the element directly to set?

Thanks.
Georgi Tunev
Telerik team
 answered on 05 May 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?