Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
170 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
149 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
94 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
530 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
43 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
1 answer
140 views
Hi, i have an issue.

On IE6 my fieldset with radformdecorator, have a gray background not beautiful at all, and i want to remove it for the real telerik background, or for
a white background.

I'm using the skin Web20.


Martin
Telerik team
 answered on 29 Jul 2009
1 answer
127 views
I have a panel bar which is:

<telerik:RadPanelBar ID="RadPanelBar1" runat="server" Width="219px" ExpandMode="SingleExpandedItem" OnClientItemExpand="LeftNavAndFilters_RadPanelItemExpand" CollapseAnimation-Duration="200" CollapseDelay="300">
<CollapseAnimation Duration="200"></CollapseAnimation>
    <Items>
        <telerik:RadPanelItem runat="server" Text="General" Value="general">
        </telerik:RadPanelItem>
        <telerik:RadPanelItem runat="server" Text="Subject" Value="subject">
            <Items>
                <telerik:RadPanelItem runat="server">
                    <ItemTemplate>
                        <asp:ListBox name="m_selSubject" ID="m_selSubject" CssClass="DropDownListNavAcc" runat="server" />
                    </ItemTemplate>
                </telerik:RadPanelItem>
        </telerik:RadPanelItem>
</telerik:RadPanelBar>

I'm trying to make the General bar clickable - no client events are fired. Is it because there are no child items?
Anyway what is the workaround if there is one?

Thank you!
Shinu
Top achievements
Rank 2
 answered on 29 Jul 2009
1 answer
65 views
I have programmatically created a RadScheduler control and am trying to add an event to be raised when a new appointment is added.

        // Create new scheduler control so we can load appointments  
 

            RadScheduler 

 

RadSchedulerNew = new RadScheduler(); 
           RadSchedulerNew.DataSource = ds.Tables["Appointments"];  

            RadSchedulerNew.DataEndField = "EndDate";  
            RadSchedulerNew.DataKeyField = "UniqueID";  
            RadSchedulerNew.DataRecurrenceField = "RecurrenceRule";  
            RadSchedulerNew.DataRecurrenceParentKeyField = "RecurrenceParentID";  
            RadSchedulerNew.DataStartField = "StartDate";  
            RadSchedulerNew.DataSubjectField = "Subject";  
      
          
            RadSchedulerNew.AppointmentInsert += new AppointmentInsertEventHandler(RadSchedulerNew_AppointmentInsert);  
            RadSchedulerNew.DataBind();  
 

Calling the InsertAppointment method does not raise the Insert event. 

   RadSchedulerNew.InsertAppointment(apt); 


        void RadSchedulerNew_AppointmentInsert(object sender, SchedulerCancelEventArgs e)  
        {  
            if (e.Appointment.Subject == String.Empty)  
            {  
                e.Cancel = true;  
            }  
        } 

Any ideas what I am missing?  Can I programmatically add events to the control?  Should InsertAppointment trigger this event?
Veselin Vasilev
Telerik team
 answered on 29 Jul 2009
1 answer
98 views
Hi
  I'm working on the Menu system. The parent already has a background image for it. Here's the screen shot of the current menu and i'd like to take out those white spaces of gap between the menu links in the child menu by having a full gray background.
http://i28.tinypic.com/2qis8ar.jpg

Thanks in advance

SJain
Kamen Bundev
Telerik team
 answered on 29 Jul 2009
2 answers
206 views
Hi,

Is there a property in RadGrid so that I can check whether a particular column exists in a grid or not? I need this in Grid_PreRender event.

Once I know this in runtime, I have the option to make it whether to make it visible or not?

Thanks a lot.

Milan G
Milan Gurung
Top achievements
Rank 1
 answered on 29 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?