Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
58 views
Our scheduler had been using the rsAllDayCell class (that was put on each TD within rows of the rsAllDayTable table) to control some settings with your previous version. With 2008 Q3, those TDs are not getting the rsAllDayCell class (or any other class) assigned to them, so I'm having a hard time figuring out how to set up these same events. I have rigged up a function that adds this class to each of those TDs, but that seems like a workaround (and probably affects performance). Is there a way to specify that these TDs should still have this class applied?

Thanks!
Peter
Telerik team
 answered on 15 Dec 2008
2 answers
169 views
I have a RadGrid that has filters and paging enabled.  The problem is, the filters only filter on the data in the current page.  Is there a way to get the filters to work on the whole set of data instead of just the data on the current page?
Justin
Top achievements
Rank 1
 answered on 15 Dec 2008
5 answers
263 views
We're in the process of converting our website from the old RadControls ASP.NET suite to the new "prometheus" one. On the whole it's gone relatively easy, except for one rather awkward function that we needed.

Basically, we have a RadGrid with a GridTemplateColumn, (plus others but they don't affect this), that contains a RadComboBox. What we needed was when the user presses the [enter] in one RadComboBox, it needs to select a default option in that control and then set focus to the RadComboBox on the following row, (if there is one of course). [This is done client-side for speed reasons, via each RadComboBox's ClientKeyPressing event].
After some research we've updated most of the javascript, except for two aspects;
1) Finding the grid row's index for the RadComboBox that received the [enter] button. The javascript we're currently using is;
             var intRowIndex = pobjCombo.get_inputDomElement().parentNode.parentNode.parentNode.rowIndex - 1;
Where "pobjCombo" is the RadComboBox control that the event's being raised for.

2) Setting focus to the RadComboBox in the next row. Currently we have the following to focus onto the next row's control, which was supplied by someone from telerik;
        var objNextRow = objGrid.get_masterTableView().get_dataItems()[intNextRowIndex];
        // a) Find the necessary cell within this next row.
        var objCell = objNextRow.get_element().cells[intCellIndex];
        // b) Locate the correct combo-box within this cell, which will depend on the type of node this is for.
        var objControl;
        if (objCell.childNodes[0].nodeName == "DIV")
        {
            objControl = objCell.childNodes[0].childNodes[1].childNodes[0];
        }
        else
        {
            objControl = objCell.childNodes[1].childNodes[2].childNodes[0];
        }
        // c) Make sure this new control has focus.
        objControl.focus();
Notes: "intNextRowIndex" is the row's index that we want to select its RadComboBox for, "objGrid" is the RadGrid we're processing for, and "intCellIndex" is the column's index containing the GridTemplateColumn. The latter two of these we're able to find without issue, (for the first see point (1)).

Could you please amend the included javascript code we've been using for the new ASP.NET AJAX RadControls suite.

Paul H
Iana Tsolova
Telerik team
 answered on 15 Dec 2008
7 answers
592 views
I have an AJAX enable RadGrid.  One of the columns in this grid is a GridButtonColumn.  I want to do a regular postback when this button is clicked because it initiates a file download.

I thought I could use client side java script to disable AJAX on this call, but I am having trouble identifying whether the button was clicked or not.  Here's what I have so far:

In the grid:

<telerik:GridButtonColumn ButtonType="PushButton" UniqueName="Download" CommandName="Download" Text="Download"></telerik:GridButtonColumn>

In the AJAX Manager:

<

ClientEvents OnRequestStart="mngRequestStarted" />

Client side java script

<script type="text/javascript">

function mngRequestStarted(ajaxManager, eventArgs)

{

    var re = new RegExp("\.DownloadButton$","ig");

    if (eventArgs.EventTarget.match(re))

    {

        eventArgs.EnableAjax = false;

    }

}

</script>

Everything seems to work except the regular expression check.  I was hoping that the button controls would be named DownloadButton* (based on the UniqueName), but instead they are named like clt00$ContentPlaceHolder1$RadGrid1$ctl00$ctl04$ctl00.  Any suggestions on how I can make this work?  Thanks.

Sebastian
Telerik team
 answered on 15 Dec 2008
1 answer
178 views
Hi Telerik,

My college has purchased the Dev version of RadEditor for MOSS (RadEditorMOSS_5_3_1_Dev) which I'm trying to install on a clean, fully patched MOSS server.  When I use the STSADM tool to import the WSP file, I get the following error “Object reference not set to an instance of an object”

Could someone please provide assistance?

Thanks

Craig, MCTS
Stanimir
Telerik team
 answered on 15 Dec 2008
7 answers
243 views
Ok, so, what is happening right now, is for some reason when I try to add columns to the RadGrid in the designer, I can see them in the designer, but the source is not changing. So if I right-click on the control and hit refresh, the columns are gone. Its as though the designer is working but its not actually chaning the Source Code. The only way I can get it to work is to remove it and add a new RadGrid Control. Then it works for awhile, and stops working again.

<%@ Control Language="VB" AutoEventWireup="false" CodeFile="leftPowerPAD.ascx.vb" Inherits="controls_leftPowerPAD" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<telerik:RadAjaxPanel ID="RAPPowPad" runat="server">  
 
<div id="areaPwrPadLists">  
    <table cellpadding="0" cellspacing="0">  
        <tr> 
            <td> 
                <asp:DropDownList ID="DropDownList1" runat="server" CssClass="dropListA">  
                    <asp:ListItem Selected="True" Value="0">-- Select List--</asp:ListItem> 
                </asp:DropDownList> 
            </td> 
            <td>&nbsp;</td> 
            <td valign="middle">  
                <asp:ImageButton ID="ImageButton13" runat="server"   
                ImageUrl="~/images/buttonPPGo.gif" /> 
            </td> 
        </tr> 
    </table> 
</div> 
 
<table border="0" cellpadding="0" cellspacing="0" class="tblPowerPad">  
    <tr> 
        <td class="cellPowerPadHead">JS Order #</td> 
        <td class="cellPowerPadHead">Qty</td> 
        <td>&nbsp;</td> 
    </tr> 
    <tr> 
        <td class="cellPowerPadInput">  
            <asp:TextBox ID="TextBox1" CssClass="inputA" Width="155px" runat="server" /> 
        </td> 
        <td class="cellPowerPadInput">  
            <asp:TextBox ID="TextBox2" CssClass="inputA" Width="25px" runat="server" /> 
        </td> 
        <td> 
            <asp:ImageButton ID="ImageButton3" runat="server"   
            ImageUrl="~/images/buttonDelete.gif" T  
            oolTip="Delete This Item" /> 
        </td> 
    </tr> 
    <tr> 
        <td class="cellPowerPadInput">  
            <asp:TextBox ID="TextBox3" CssClass="inputA" Width="155px" runat="server" /> 
        </td> 
        <td class="cellPowerPadInput">  
            <asp:TextBox ID="TextBox4" CssClass="inputA" Width="25px" runat="server" /> 
        </td> 
        <td> 
            <asp:ImageButton ID="ImageButton4" runat="server"   
            ImageUrl="~/images/buttonDelete.gif" T  
            oolTip="Delete This Item" /> 
        </td> 
    </tr> 
    <tr> 
        <td class="cellPowerPadInput">  
            <asp:TextBox ID="TextBox5" CssClass="inputA" Width="155px" runat="server" /> 
        </td> 
        <td class="cellPowerPadInput">  
            <asp:TextBox ID="TextBox6" CssClass="inputA" Width="25px" runat="server" /> 
        </td> 
        <td> 
            <asp:ImageButton ID="ImageButton5" runat="server"   
            ImageUrl="~/images/buttonDelete.gif" T  
            oolTip="Delete This Item" /> 
        </td> 
    </tr> 
    <tr> 
        <td class="cellPowerPadInput">  
            <asp:TextBox ID="TextBox7" CssClass="inputA" Width="155px" runat="server" /> 
        </td> 
        <td class="cellPowerPadInput">  
            <asp:TextBox ID="TextBox8" CssClass="inputA" Width="25px" runat="server" /> 
        </td> 
        <td> 
            <asp:ImageButton ID="ImageButton9" runat="server"   
            ImageUrl="~/images/buttonDelete.gif" T  
            oolTip="Delete This Item" /> 
        </td> 
    </tr> 
    <tr> 
        <td class="cellPowerPadInput">  
            <asp:TextBox ID="TextBox9" CssClass="inputA" Width="155px" runat="server" /> 
        </td> 
        <td class="cellPowerPadInput">  
            <asp:TextBox ID="TextBox10" CssClass="inputA" Width="25px" runat="server" /> 
        </td> 
        <td> 
            <asp:ImageButton ID="ImageButton6" runat="server"   
            ImageUrl="~/images/buttonDelete.gif" T  
            oolTip="Delete This Item" /> 
        </td> 
    </tr> 
    <tr> 
        <td class="cellPowerPadInput">  
            <asp:TextBox ID="TextBox11" CssClass="inputA" Width="155px" runat="server" /> 
        </td> 
        <td class="cellPowerPadInput">  
            <asp:TextBox ID="TextBox12" CssClass="inputA" Width="25px" runat="server" /> 
        </td> 
        <td> 
            <asp:ImageButton ID="ImageButton7" runat="server"   
            ImageUrl="~/images/buttonDelete.gif" T  
            oolTip="Delete This Item" /> 
        </td> 
    </tr> 
    <tr> 
        <td class="cellPowerPadInput">  
            <asp:TextBox ID="TextBox13" CssClass="inputA" Width="155px" runat="server" /> 
        </td> 
        <td class="cellPowerPadInput">  
            <asp:TextBox ID="TextBox14" CssClass="inputA" Width="25px" runat="server" /> 
        </td> 
        <td> 
            <asp:ImageButton ID="ImageButton8" runat="server"   
            ImageUrl="~/images/buttonDelete.gif" T  
            oolTip="Delete This Item" /> 
        </td> 
    </tr> 
    <tr> 
        <td class="cellPowerPadInput">  
            <asp:TextBox ID="TextBox15" CssClass="inputA" Width="155px" runat="server" /> 
        </td> 
        <td class="cellPowerPadInput">  
            <asp:TextBox ID="TextBox16" CssClass="inputA" Width="25px" runat="server" /> 
        </td> 
        <td> 
            <asp:ImageButton ID="ImageButton10" runat="server"   
            ImageUrl="~/images/buttonDelete.gif" T  
            oolTip="Delete This Item" /> 
        </td> 
    </tr> 
    <tr> 
        <td class="cellPowerPadInput">  
            <asp:TextBox ID="TextBox17" CssClass="inputA" Width="155px" runat="server" /> 
        </td> 
        <td class="cellPowerPadInput">  
            <asp:TextBox ID="TextBox18" CssClass="inputA" Width="25px" runat="server" /> 
        </td> 
        <td> 
            <asp:ImageButton ID="ImageButton11" runat="server"   
            ImageUrl="~/images/buttonDelete.gif" T  
            oolTip="Delete This Item" /> 
        </td> 
    </tr> 
    <tr> 
        <td class="cellPowerPadInput">  
            <asp:TextBox ID="TextBox19" CssClass="inputA" Width="155px" runat="server" /> 
        </td> 
        <td class="cellPowerPadInput">  
            <asp:TextBox ID="TextBox20" CssClass="inputA" Width="25px" runat="server" /> 
        </td> 
        <td> 
            <asp:ImageButton ID="ImageButton12" runat="server"   
            ImageUrl="~/images/buttonDelete.gif" T  
            oolTip="Delete This Item" /> 
        </td> 
    </tr> 
</table> 
    <telerik:RadGrid ID="RadGrid1" runat="server"   
        AllowMultiRowEdit="True" AutoGenerateDeleteColumn="True"   
        AutoGenerateEditColumn="True" DataSourceID="SqlDataSource1" GridLines="None"   
        Skin="Default2006" AutoGenerateColumns="False">  
        <MasterTableView DataSourceID="SqlDataSource1">  
            <RowIndicatorColumn> 
                <HeaderStyle Width="20px" /> 
            </RowIndicatorColumn> 
            <ExpandCollapseColumn> 
                <HeaderStyle Width="20px" /> 
            </ExpandCollapseColumn> 
        </MasterTableView> 
        <ClientSettings AllowColumnsReorder="True">  
        </ClientSettings> 
        <FilterMenu EnableTheming="True">  
            <CollapseAnimation Duration="200" Type="OutQuint" /> 
        </FilterMenu> 
    </telerik:RadGrid> 
<div> 
    <asp:HyperLink ID="HyperLink1" runat="server" CssClass="lnkClose"   
    Text="Clear All" NavigateUrl="#" /> 
      
</div> 
 
<div class="padButtons">  
    <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/buttonPPAddList.gif" /> 
    &nbsp;  
    <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/images/buttonPPAddCart.gif" /> 
</div> 
    <asp:Panel ID="Panel1" runat="server">  
    </asp:Panel> 
</telerik:RadAjaxPanel> 
Gavin Howlett-Foster
Top achievements
Rank 1
 answered on 15 Dec 2008
3 answers
852 views

This is very unfortunate as CommandArgument is very convinient place for Eval("SomeDataField"). That way finding what was clicked would be very easy in ItemCommand and simmilar events (Delete, Insert...). Please consider this as nice feature for future implementations.
Regards,
Alex

PS
Finding what recordID is associated with ItemCommand is very dificult. This is what I do. Please correct if wrong:

        Select Case e.CommandName  
            Case "CheckDeleted"  
                Dim objItem As Telerik.Web.UI.GridDataItem = e.Item  
                Dim intRankID As Integer = _ 
                CInt(Regex.Match(Mid(objItem.KeyValues, _  
                objItem.KeyValues.LastIndexOf(":") + 3), "[0-9]{1,}").Value)  
                'The rest of the code goes here, now when I know  
                'what KeyValue was clicked on and caused postback (ItemCommand)  
            Case "InitInsert"  
                '....  
 
        End Select  
 
Sebastian
Telerik team
 answered on 15 Dec 2008
1 answer
84 views
sir,
    I have problem when we use rad grid in user control and internet explorer 7.0 resizing problems occurs.
    
Dimo
Telerik team
 answered on 15 Dec 2008
1 answer
85 views
Hi support,

I can't open up dialog box SetImageProperties in IE when right-click on Image that nested with a DIV that have style="width:200px".

e.g.
<div style="width:200px"><img alt="product logo" src="../../Img/productLogoLight.gif" /></div
 

It works fine on FF, but not on IE.

To test it, you copy above code to RadEditor.Content, then try to open up Image Properties dialog box. It doesn't work.

Please help.

Thanks,
Tervel
Telerik team
 answered on 15 Dec 2008
1 answer
92 views
I want topics... held together like a n/g reader/ forum reader.... with + signs to expand.
Sounds like its perfect for the Teeview, doesn't it?

But I also want a tabular display, with columns for the Subject (with Tree attribute) and for Sender and for Date/Time
And the messages (data) will all be data-bound

Have a look at Outlook Express - not the email part, the News part. - or like in this shot: http://203.110.155.14/image1.png

My problem: I cannot create a Treeview template that will allow this.. as soon as I try to insert the html table, the subordinate tree rows are offset by the whole width of the table!

Any ideas/hints?

Steve
Atanas Korchev
Telerik team
 answered on 15 Dec 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?