Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
89 views
Hi guys,

I'm trying to reduce the amount of controls for the users in the toolbox of VS2008, but I don't want just to delete them from the VS toolbox, I want to remove them directly from the binaries (I have the control's source code).
Is there anyone who make this change already?

Thanks in advance
Regards.
Paul
Telerik team
 answered on 29 Jul 2009
1 answer
190 views
Our client has a particular request for the grid. The grid has existing rows in readonly mode that go into edit mode only when they click on the rows and in addition they want to have about 5 empty rows in edit mode already at the bottom of the grid. I have multiple row edit turned on and only set the edit mode for the 5 rows to true. This is working fine and I also have the readonly rows mode going into edit mode on click working.  

The problem is with the blank rows in the bottom. When the user fills in the data for one of these empty rows and moves to the next blank row which is already in edit mode, I need to commit the changes to the first edit row and set that row to read-only and add another blank edit row to keep the count of blank rows to 5 at all times. When the user moves from one edit row to another (which can be by clicking on a edit control in a cell), how do I track that on the client and fire an event to the server so that I can commit the changes for that row, turn off the edit flag and rebind. Please help.
Yavor
Telerik team
 answered on 29 Jul 2009
1 answer
441 views
I have a grid which includes a GridHyperLinkColumn.  The enabled state of the link needs to be set dynamically based on values in other columns in the grid.  This needs to be done client-side (as I'm building an MVC app).

I've added a RowDataBound event handler:
function RadIncidents_RowDataBound(sender, args)
{
        var cell = args.get_item().get_cell("colActionText");
        if (cell)
        {
            if (dataItem.CanQuickReview)
            {
                cell.disabled = false;
                cell.title = "Click to quick-review this item.";
            }
            else
            {
                cell.disabled = true;
                cell.title = "This item cannot be quick-reviewed.";
            }
        }
    }
}

This makes the link look disabled (its colour is changed), but it still functions as an active, enabled link.
I've also tried replacing the cell's inner Html with its text, but this then gets cached across grid refresh / rebinds.

Does anyone know how to properly disable the link in a GridHyperLinkColumn?
Thanks,
Luke.

Tsvetoslav
Telerik team
 answered on 29 Jul 2009
1 answer
48 views
I am posting this as a workaround in case anyone else is having this issue.

I was having a problem with Firefox with the Paste Plain Text (and Paste Cleaning Word Formatting) inline popup windows on tall pages that have multiple Editors. I created a test page to demonstrate this:

http://client.hughes-stl.com/wuphysicians/test/edit.aspx

If you click the Paste Plain Text button in the top Editor, the inline popup shows fine. If you scroll all the way down and click the Paste Plain Text button in the bottom editor, the popup at first does not appear to show up. If you scroll back up, you'll see that it has appeared at the top of the page. This causes a lot of confusion for a client of ours who thinks that the button doesn't work. It seems to me that multiple editors will show their inline popups positioned next to the first Telerik box (or always at the top of the page) regardless of where the Editor that fired the inline popup is. I would prefer them shown centered on the page window (position: fixed) or near the Editor that fired them.

I have a lot of CSS on the actual page, but I created this test page with no extra CSS to test/demonstrate that it is not a CSS conflict issue. According to Firebug, the inline popup window for the second editor is absolutely positioned near the top of the page (not position:fixed). For long pages with multiple editors, this means many users cannot see the inline popups when they appear.

The solution is to change the DOCTYPE of the page. I had it originally at HTML 4 Transitional. I set it to XHTML (Strict or not; both work), and it shows up in the middle of the browser window correctly.
Rumen
Telerik team
 answered on 29 Jul 2009
5 answers
216 views

How to make SpellCheckProvider="MicrosoftWordProvider" work......
it throws an assembly error at run time

below is my code

<

telerik:RadEditor ID="RadEditor1" runat="server" Skin="Outlook" StripFormattingOptions="MSWordRemoveAll" SpellCheckSettings-
SpellCheckProvider
="MicrosoftWordProvider"> 

 

 

<Tools>

 

 

 

<telerik:EditorToolGroup>

 

 

 

<telerik:EditorTool Name="AjaxSpellCheck" ShowIcon="true" />

 

 

 

</telerik:EditorToolGroup>

 

 

 

</Tools>

 

</

 

telerik:RadEditor>

 

 

 

 

Lini
Telerik team
 answered on 29 Jul 2009
1 answer
161 views
I have a File Explorer on a stand alone and every control is displaying properly besides the tree view. I am running it in IE8 and when I test it out on Firefox everything displays properly. But in IE8 the treeview isn't displaying correctly.

I also have a File Explorer on a RadMultipage within a Tab Control and it is using the same control page that the stand alone page is using. But within the tabs the file explorer splitter and treeview aren't displaying correctly. Again I tested this page in Firefox and all controls are displaying properly in there but not in IE8.

Any suggestions as to what may help? Thanks!
Fiko
Telerik team
 answered on 29 Jul 2009
1 answer
145 views
I really love the red border and little exclamation image that is display by the InputManager and was hoping that there is a simpler way to get this for required fields when a grid is in edit mode.

I have followed the example outline at http://demos.telerik.com/aspnet-ajax/input/examples/radinputmanager/dynamicinputfiltersettings/defaultcs.aspx?product=grid and got it working. I just find it a bit of a drag because I have declared all my columns using telerik:Gridxxx and I now have to re-declare all my controls again and the wrapping table for formatting purpose just so I can get the InputManager to "hijack" a few textboxes.

Am I missing something is there a simpler way?


Thanks for your help
Yavor
Telerik team
 answered on 29 Jul 2009
1 answer
91 views
I have a RadGrid with a detailtable. That detailtable also has it's own detailtable.
The RadGrid has DataKey CustomerID, the first DetailTable has DataKey OrderID.

In the second DetailTable i have a gridrelation to the MasterKeyField OrderID and this is working great.
However now i need the CustomerID of the RadGrid itself as well in the second DetailTable, a gridrealtion to MasterKeyField CustomerID doesn't work because the first DetailTable doesn't have the CustomerID.

Is there someway that i can use the GridRelation so it can access the proper CustomerID? Or is there another way to do this?

Thanks in advance!
Pavlina
Telerik team
 answered on 29 Jul 2009
1 answer
522 views
I have encountered a strange issue I havent come accross before regarding the delete command of a radgrid.  
1.  User clicks the edit link on a row
2.  User clicks delete on a different row while the edit row is still open
3.  User clicks Add new and recieves the message "you may only have one item open at a time"

The issue seems to be that the radgrids editindexes.count is still at one when the user clicks delete even though the row in edit mode visually closes.

I am handling the deletecommand but all I am doing is reading in the id to delete from e.commandargument and deleting it.
Is there something I need to do in the deletecommand to get the editindexes to reload?

The simple solution would be to not let the user delete, but there has to be another solution...





    Protected Sub rg_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles rg.ItemCommand

        lblMessage.Text = ""

        If (e.CommandName = RadGrid.InitInsertCommandName) Then

            If ((CType(source, RadGrid).EditIndexes.Count > 0) _

                        OrElse e.Item.OwnerTableView.IsItemInserted) Then

 

                prjUtilities.showFeedback(lblMessage, "*You may only have one item open at a time", True)

                e.Canceled = True

                cblExpenses.Enabled = False

            Else

                e.Canceled = True

                Dim off As New offType

                e.Item.OwnerTableView.InsertItem(off)

                'Hides the edit column when in create mode

                Dim editColumn As GridEditCommandColumn = CType(CType(source, RadGrid).MasterTableView.GetColumn("edit"), GridEditCommandColumn)

                editColumn.Visible = False

                cblExpenses.Enabled = False

            End If

        ElseIf e.CommandName = "PerformInsert" Then

            Dim editColumn As GridEditCommandColumn = CType(CType(source, RadGrid).MasterTableView.GetColumn("edit"), GridEditCommandColumn)

            If Not editColumn.Visible Then

                editColumn.Visible = True

            End If

 

            cblExpenses.Enabled = True

        ElseIf e.CommandName = "Cancel" Then

            cblExpenses.Enabled = True

            prjUtilities.showFeedback(lblMessage, "Changes Cancelled", False)

            Dim editColumn As GridEditCommandColumn = CType(CType(source, RadGrid).MasterTableView.GetColumn("edit"), GridEditCommandColumn)

            If Not editColumn.Visible Then

                editColumn.Visible = True

            End If

        Else

            'reset the edit column to visible

            cblExpenses.Enabled = False

            Dim editColumn As GridEditCommandColumn = CType(CType(source, RadGrid).MasterTableView.GetColumn("edit"), GridEditCommandColumn)

            If Not editColumn.Visible Then

                editColumn.Visible = True

            End If

        End If

    End Sub



<telerik:RadGrid ID="rg" runat="server" AllowPaging="True" AutoGenerateColumns="False"

            GridLines="None" Skin="Office2007">

            <HeaderContextMenu>

                <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

            </HeaderContextMenu>

            <MasterTableView CommandItemDisplay="Top">

                <CommandItemTemplate>

                    <table>

                        <tr>

                            <td width="30%">

                                <asp:ImageButton ID="btnAddImbtn" runat="server" CommandName="InitInsert" CausesValidation="false"

                                    ImageUrl="~/images/RadControls Skins/Office2007/Grid/AddRecord.gif" />

                                <asp:LinkButton ID="btnAddlkbtn" runat="server" Font-Bold="true" CausesValidation="false"

                                    CommandName="InitInsert">Click Here to Add New</asp:LinkButton>

                            </td>

                            <td width="40%">

                            </td>

                            <td width="30%">

                            </td>

                        </tr>

                    </table>

                </CommandItemTemplate>

                <EditFormSettings EditFormType="WebUserControl" UserControlName="~/UserControls/ucOff.ascx" />

                <Columns>

                    <telerik:GridEditCommandColumn EditText="Edit" UniqueName="edit" />

                    <telerik:GridBoundColumn DataField="offid" UniqueName="offid"

                        HeaderText="offid" Visible="false">

                    </telerik:GridBoundColumn>

                    <telerik:GridTemplateColumn UniqueName="del">

                        <ItemTemplate>

                            <asp:LinkButton ID="lblDelete" runat="server" Text="Delete" CommandName="Delete"

                                CommandArgument='<%#Eval("offid")%>' CausesValidation="false" OnClientClick="return confirm('Are you sure you want to delete this record?');"></asp:LinkButton>

                        </ItemTemplate>

                    </telerik:GridTemplateColumn>

                </Columns>

            </MasterTableView>

        </telerik:RadGrid>

               

Tsvetoslav
Telerik team
 answered on 29 Jul 2009
1 answer
41 views
I'm using RadEditor as an installed feature in MOSS 2007 and  I am trying to ENABLE the "HTML MODE" in MOSS 2007. Both my [ConfigFile.xml] and [ListConfigFile.xml] are using this:

<property name="EditMode">Design,Html</property>

 

 

But MOSS 2007 ignores my settings and shows the DESIGN and PREVIEW mode.

Is there another place I can set this globally?
Rumen
Telerik team
 answered on 29 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
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
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?