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

I have a template column with an image button that when clicked opens a radwindow through javascipt to edit an item in the grid.  This proces works well.

<telerik:GridTemplateColumn

UniqueName="TemplateEditColumn"

HeaderText="View/Edit"

HeaderStyle-Width="100">

<ItemTemplate>

<asp:ImageButton ID="EditButton" OnClientClick='<%# Eval("ID", "openEditCommentWindow({0}); return false;" ) %>' runat="server" ImageUrl="./images/edit.gif"></asp:ImageButton>

</ItemTemplate></telerik:GridTemplateColumn>


this is the jascript that it calls:

function openEditCommentWindow(CommentID)

{

var oWnd = radopen("CommentDetail.aspx?CommentID=" + CommentID, "Edit Comment");

oWnd.set_modal(

true);

oWnd.Center();

}

So my issue is that I am trying to build an application to minimize mouse use and generally use the keyboard support of the grid to place the grid into edit mode by setting

ClientSettings-AllowKeyboardNavigation
="true"

whihc is a relly nice feature.

The problem is that pressing the enter key while having a row selected causes a postback to the  radGridComments_ItemCommand rather than opening a client side radwindow.

How can I hook up the enter key to the openEditCommentWindow javascript function?

Thanks much

Jonathan 

Jonathan
Top achievements
Rank 1
 answered on 22 Aug 2008
4 answers
104 views
An issue occurs whenever i try to minimize a rad window

Screenshot
xxxtreme_pasaway
Top achievements
Rank 1
 answered on 22 Aug 2008
9 answers
213 views
I recently converted from the classic Rad Grid to the new Rad Grid for Ajax.  For some reason I've lost the ability to open a rad window from a link button in my grid.  This rad window was working fine before I converted to the new grid for ajax.  Now it just doesn't open the rad window.  The code is hit and there aren't any errors the window just doesn't open.  I can open a Rad Window from other controls on the page, just not the grid.

I also need to mention that for some reason the initial load of the screen which has basically nothing but the new grid on it is very slow.  This was not the case with the classic grid the screen loaded instantly, but now it takes 10 seconds just to display the page - and that's with an empty grid.

Has anyone experienced anything similar?  Is there something different that needs to be done for the new grid to open a Rad Window?

Here is my code for attempting to open my rad window from my ajax grid:

<telerik:RadAjaxManager ID="ram1" runat="server">

<AjaxSettings>

<telerik:AjaxSetting AjaxControlID="rgT"> rgT is my new grid

<UpdatedControls>

<telerik:AjaxUpdatedControl ControlID="txW"></telerik:AjaxUpdatedControl>

</UpdatedControls>

</telerik:AjaxSetting>

</AjaxSettings>

</telerik:RadAjaxManager>

<telerik:RadWindowManager ID="RadWindowManager1" runat="server">

<Windows>

<telerik:RadWindow ID="txW" runat="server" style="display:none;" Behavior="Default" Height="300px" InitialBehavior="None" Left="" Modal="True" NavigateUrl="PurchaseCardUseTax.aspx" OpenerElementID="rgT" Skin="WebBlue" Top="" Width="400px" Title="Use Tax">

</telerik:RadWindow>

</Windows>

</telerik:RadWindowManager>


This is the link buttonj from my grid which calls the vb.net sub to open the window:

<telerik:GridTemplateColumn DataField="USE_TAX_AMT" HeaderText="Use Tax" UniqueName="USE_TAX_AMT"

AllowFiltering="False">

<HeaderStyle HorizontalAlign="Left" Width="45px" Wrap="False" />

<ItemStyle HorizontalAlign="Right" Width="45px" Wrap="False" />

<ItemTemplate>

<asp:LinkButton ID="lbUseTax" runat="server" Width="45px" CssClass="Normal" OnCommand="useTaxClick"

ToolTip="Click to edit use Tax" Text='<%#DataBinder.Eval(Container, "DataItem.USE_TAX_AMT") %>'></asp:LinkButton>

</ItemTemplate>

</telerik:GridTemplateColumn>


Here is my vb.net sub that opens the window:

Public

Sub useTaxClick(ByVal sender As Object, ByVal e As CommandEventArgs)

'Open up the rad window that allows editing of the Use Tax

txW.Behaviors = WindowBehaviors.Close

Or WindowBehaviors.Move

txW.NavigateUrl =

"MyWindow.aspx"

txW.VisibleOnPageLoad =

True

End Sub


Any help would be greatly appreciated.


**Also, there is a bug in the RadWindowManager designer as far as I can tell.  If you follow the steps in the Telerik online example http://www.telerik.com/help/aspnet-ajax/window_gettingstarted.html the window does not actually get added.  You need to manually drag the <Windows></Windows> tags onto your asp code  between the radwindowmanager tags first and then you can add windows via the windows manager.  Otherwsise it appears as though you are adding them but they dissappear when you leave and come back into the windows collection of the windows manager.  My co-worker reproduced this problem.  If you come back into the radwindowmanager and try to add that same window (same ID) it tells you that the window already exists.  Anyways, check it out and hopefully you can reproduce this



Thanks
Acadia
Top achievements
Rank 1
Iron
 answered on 21 Aug 2008
2 answers
114 views
I'm creating columns programmatically and some columns are GridTemplateColumns.

I created a class inherited from ITemplate that has a RadNumericTextBox and I set the ItemTemplate property.

When I run the page, only the last row show the RadNumericTextBox control. Why?


Leonardo Amorim de Barros
Top achievements
Rank 1
 answered on 21 Aug 2008
2 answers
165 views
If I have a grid with 30 records and I update two of them can I only refresh the two rows updated or do I have to rebind the whole grid to get the updates.

i.e. I have a checkbox in the row, if a user selects one or many checkboxes and presses a submit button to change the status of the row from ready to complete I would like to have only the rows with checkboxes updated to complete and not go back the database and rebind the data.  Is this possible?  If so how?
Leon
Top achievements
Rank 1
 answered on 21 Aug 2008
0 answers
117 views
Is it possible to use sql Timestamp type in the custom attribute for the scheduler using a sqldatasource or use the optimistic concurrency feature of the sqldatasource for the RadScheduler?

Thanks, Burl
Burl
Top achievements
Rank 2
 asked on 21 Aug 2008
1 answer
102 views
Hi,

I am populating my grid from my Account object using the grid bound column.  I am having a problem because in my Account object there is a Currency object.

If I need the currency description through a loop, I would do it like:

account.Currency.Description

How do I add such a property's value to a column in my grid?

Please can some one help?

Thanks
Brendan
Leon
Top achievements
Rank 1
 answered on 21 Aug 2008
1 answer
272 views
Hello Everybody,

                        i am binding 50 records to grid, page size of grid is 10.
                        when i am on second or third page, and edit record on that page , opening new page for edit. After editing record i want to came back on         same page. How can i persist it ? please help...
 
Thanks in advance...
  Amol

     
Leon
Top achievements
Rank 1
 answered on 21 Aug 2008
2 answers
96 views
It appears the Q2 2008 release changed the Default skin for RadTabStrip such that tabs change color when moused over.  This works fine in IE, FF, and Safari (and looks decent).  In Opera (I'm using 9.27), however, when you mouse over a tab, only the left half changes color.  Any workaround?
mlandauer
Top achievements
Rank 1
 answered on 21 Aug 2008
1 answer
230 views
Hi,
I found several posts related to this but nothing specific to my situation.

I'm using Q2 2008 RadMenu and VB...

I'm trying to use a sitemap with a Horizontal RadMenu. The problem is that once the root node is filtered out using ShowStartingNode="false", the RadMenu displays vertically. I tried adding <DefaultGroupSettings Flow="Horizontal" /> but that only works if the root node is showing.

Any idea how to get this to work horizontally once the root node is "hidden"?

Here's my code:
--- aspx ---
<telerik:RadMenu ID="RadMenu1" DataSourceID="SiteMapDataSource1" runat="server"></telerik:RadMenu>
<asp:SiteMapDataSource ID="SiteMapDataSource1" ShowStartingNode="false" runat="server" />

--- web.sitemap ---
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
  <siteMapNode url="default.aspx" title="I shouldn't be visible">
    <siteMapNode url="page1.aspx" title="Page 1" roles="Administrators,Supervisors" />
    <siteMapNode url="page2.aspx" title="Page 2" roles="Administrators" />
  </siteMapNode>
</siteMap>

Thanks for any help,
Joe
Joe
Top achievements
Rank 2
 answered on 21 Aug 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?