Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
118 views
Hi, I am fairly new to asp.net.  I am trying to build a 3 level deep hierarchy grid.  I am using linq and joining multiple tables.  The problem I am running into is at level 3, I want to insert a record, into that grid, and i want to use a custom edit form template.  Which I want to have an insert and cancel button.  How do i map these buttons to send Telerik.Web.UI.GridCommandEventArgs e, so that I know which grid is doing the insert?
Basically I want Insert and cancel buttons to work the same way as if I used a standard automatic insert mode.


<telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="LinqDataSource1" GridLines="None"  OnDeleteCommand="RadGrid1_ItemDeleted"
     AllowAutomaticDeletes="True"
      OnItemInserted="RadGrid1_ItemInserted" OnInsertCommand="RadGrid1_InsertCommand"
     >
        <MasterTableView DataSourceID="LinqDataSource1" DataKeyNames="day_id" AutoGenerateColumns="false" Name="Days">
                                <ExpandCollapseColumn Visible="True">
            </ExpandCollapseColumn>
            <Columns>
            <telerik:GridBoundColumn DataField="day_id" Visible="false"></telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="day_name" HeaderText="Day" ></telerik:GridBoundColumn>
            </Columns>

            <DetailTables>
                <telerik:GridTableView DataSourceID="LinqDataSource2" DataKeyNames="day_group_id" Name="Groups" AutoGenerateColumns="false" AllowPaging="True">
                    <ParentTableRelation>
                        <telerik:GridRelationFields DetailKeyField="day_id" MasterKeyField="day_id" />
                    </ParentTableRelation>
                    <Columns>
                        <telerik:GridBoundColumn DataField="day_group_id" Visible="false"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="group_id" Visible="false"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="group_name" HeaderText="Group Name:"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="physician_selected" HeaderText="Physician Name"></telerik:GridBoundColumn>
                    </Columns>
                    <DetailTables>
                        <telerik:GridTableView  DataSourceID="LinqDataSource3" DataKeyNames="day_group_user_id" Name="Users" AutoGenerateColumns="false" CommandItemDisplay="Top" AllowAutomaticDeletes="false">
                            <ParentTableRelation>
                                <telerik:GridRelationFields DetailKeyField="day_group_id" MasterKeyField="day_group_id" />
                            </ParentTableRelation>
                            <Columns>
                                <telerik:GridBoundColumn DataField="fname" HeaderText="First Name:"></telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="lname" HeaderText="Last Name:"></telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="email" HeaderText="Email:"></telerik:GridBoundColumn>
                                <telerik:GridButtonColumn ConfirmText="Remove this user?" ConfirmDialogType="RadWindow"
                                     ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete"  CommandArgument="day_group_user_id"/>
                            </Columns>
 <EditFormSettings  CaptionFormatString="Edit EmployeeID: {0}"
                CaptionDataField="EmployeeID" EditFormType="Template">
                <FormTemplate>
       
       
                                <telerik:RadComboBox runat="server" DataSourceID="LinqDataSource4"
                                  DataTextField="Name"  DataValueField="user_id" AllowCustomText="false" Width="500">
                                 <HeaderTemplate>
           <table width="499px">
           <tr>
           <td width="30%">Name</td><td width="70%">Email</td>
           </tr>
           </table>
        </HeaderTemplate>
        <ItemTemplate>
        <table  width="499px">
        <tr>
        <td width="30%"> <%# DataBinder.Eval(Container.DataItem, "name") %>
        </td>
        <td width="70%">
         <%# DataBinder.Eval(Container.DataItem, "email") %>
        </td>
        </tr>
        </table>

        </ItemTemplate>

                                 </telerik:RadComboBox>
                                 <br />
                                 <asp:linkbutton ID="Linkbutton1" runat="server" OnClick="LinkButton1_Click">Insert</asp:linkbutton>
                                 <asp:linkbutton ID="Linkbutton2" runat="server">Cancel</asp:linkbutton>

                </FormTemplate>
            </EditFormSettings>


   


                         </telerik:GridTableView>
                    </DetailTables>
                </telerik:GridTableView>
            </DetailTables>
        </MasterTableView>
    </telerik:RadGrid>
max
Top achievements
Rank 1
 answered on 14 Jan 2011
2 answers
117 views
Hello,
How can I reset/ init / clear filter in code behind or client
See attached image

Regards
 
dimrud
Top achievements
Rank 1
 answered on 14 Jan 2011
4 answers
292 views
Im using a list of RadButtons inside of a RadListView. The Site skin is currently set to Telerik in webconfig

I have my custom CSS overrides below. And the RadListView code is below that.

It seems the button default is:
  • Centered Text
  • Underline on Mouseover
  • A font that is too large


What I want on the buttons is:
  • Left Aligned Text                   (text-align: left !important;)
  • No underline on Mouseover     (text-decoration: none !important;)
  • 10px font at all times       (font-size: 10px !important;)

The CSS below works perfectly except for the split second after I release the mouse-click. It reverts back to the unwanted centered text, underlined, and a larger font. Just for a second, and then it is fine again.

Any ideas what my CSS is missing?



.myRadButton.rbToggleButton
{
    color: #000;
    font-size: 10px !important;
    text-decoration: none !important;  
}
 
.myRadButton.rbToggleButton:hover
{
    color: #863d02;
}
 
.myRadButton.rbToggleButton .rbText
{
   text-align: left !important;
   padding-left: 20px !important;
    font-size: 10px !important;
}
 
.myRadButton.rbToggleButton.rbDisabled,
.myRadButton.rbToggleButton:hover
{
    color: #6a6a6a;
    font-size: 10px !important;
    text-decoration: none !important;
}


<telerik:RadListView ID="RadListView1" runat="server" AllowPaging="false" OnItemDataBound="RadListView1_ItemDataBound"
                   OnDataBound="RadListView1_DataBound" Width="100%" OnLayoutCreated="RadListView1_LayoutCreated">
                   <LayoutTemplate>
                       <div class="rlv_mainLayout">
                           <div id="groupPlaceholder" runat="server">
                           </div>
                       </div>
                   </LayoutTemplate>
                   <ItemTemplate>
                       <div class="rlv_item">
                           <telerik:RadButton ID="btnOffice" runat="server" ButtonType="ToggleButton" ToggleType="CheckBox" 
                               Width="97%">
                               <ToggleStates>
                                   <telerik:RadButtonToggleState PrimaryIconCssClass="rbToggleCheckbox" CssClass="myRadButton"/>
                                   <telerik:RadButtonToggleState PrimaryIconCssClass="rbToggleCheckboxChecked"  CssClass="myRadButton" />
                               </ToggleStates>
                           </telerik:RadButton>
                       </div>
                   </ItemTemplate>
                   <GroupTemplate>
                       <div id="OfficeGroup" runat="server" class="rlv_group">
                           <asp:PlaceHolder ID="itemPlaceholder" runat="server" />
                       </div>
                   </GroupTemplate>
                   <GroupSeparatorTemplate>
                   </GroupSeparatorTemplate>
                   <EmptyDataTemplate>
                   </EmptyDataTemplate>
               </telerik:RadListView>
Adam
Top achievements
Rank 1
 answered on 14 Jan 2011
4 answers
70 views
Hi,

I'd like to know how can I show a RadAjaxLoadingPanel when I'm using Google-like filtering in a RadGrid.  Every other filtering scenario shows the panel when the user executes a filter. 

I have noticed that for the Google-like filtering demo (http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandcombo/defaultcs.aspx?product=grid), you are not using a RadAjaxLoadingPanel.

Thank you.
Fred
Top achievements
Rank 1
 answered on 14 Jan 2011
7 answers
181 views
Hi ,

 I need  small question about to get the month name ,,, If i click on the next " > "  button in the calendar i need to get the month name,,,  
 can you tell me how to do this?
Brown
Top achievements
Rank 1
 answered on 14 Jan 2011
1 answer
147 views
I have a RADWindow that will download a file to the user when they click a button on the window.  The file (text/csv) is being downloaded successfully however appended to the file is all of the RADWindow html.

The following is the code used to download the file.

Response.ContentType = "text/csv"
Response.AppendHeader("Content-Disposition", "attachment; filename=" & wrkFileName)
Response.TransmitFile(Server.MapPath(fileName))

Thanks for any help.
Mark
Top achievements
Rank 1
 answered on 14 Jan 2011
6 answers
157 views
I'm using the RadChart to display some data and I'm looking for the ability to add some functionality so that when a user clicks, or right-clicks on a chartseries item, the chart displays some type of menu with a series of actions that would be tied to the chartseries that they clicked.  Is there any RadMenu support for the RadChart?  I know that there is a click event for the chart, but it seems to be server side. Any other ideas are welcome.

Thanks!
Steve
Nutan
Top achievements
Rank 1
 answered on 14 Jan 2011
1 answer
208 views
Hello,

I am using an AdvancedEditTemplate using the example which is shown on the telerik website i have used the following code for the call of the form and closing of the form.

 

<asp:Panel runat="server" ID="ButtonsPanel" CssClass="rsAdvancedSubmitArea">
<div class="rsAdvButtonWrapper">
<asp:LinkButton CommandName="Update" runat="server" ID="UpdateButton" CssClass="rsAdvEditSave">
<
span><%# Container.Appointment.Owner.Localization.Save%></span>
</asp:LinkButton>
<asp:LinkButton runat="server" ID="CancelButton" CssClass="rsAdvEditCancel" CommandName="Cancel"CausesValidation="false">
<span><%# Container.Appointment.Owner.Localization.Cancel%></span>
</asp:LinkButton>
</div>
</asp:Panel>

When i click on the "Open" menu item in the appointment contextmenu, it opens the AdvancedEditTemplate in a rad window. below shows you my context menu.

 

 

<AppointmentContextMenus>
<telerik:RadSchedulerContextMenu runat="server" ID="SchedulerAppointmentContextMenu">
<Items>
<telerik:RadMenuItem Text="Open" Value="CommandEdit" />
<telerik:RadMenuItem IsSeparator="True" />
<telerik:RadMenuItem Text="Delete" Value="CommandDelete" ImageUrl="Images/delete.gif" />
</Items>
</telerik:RadSchedulerContextMenu>
</AppointmentContextMenus>

 

 

 

When i click "Open" in the contextmenu I pressume it uses the value "CommandEdit" to show the Form in a RadWindow. I can not find any examples online which explain the process of the "CommandEdit" and how it opens the RadWindow.
So my question is. How do I close and open this AdvancedEditTemplate in the radwindow - serverside so that I can add my own MenuItem and make that open the AdvancedEditTemplate?

Thank you

Peter
Telerik team
 answered on 14 Jan 2011
1 answer
79 views
Hi, is it possible to spellcheck the source of a contenteditable div using RadSpell?
Thanks in advance, Max.
Lini
Telerik team
 answered on 14 Jan 2011
2 answers
111 views
Hi,

If we go through the following example
Click here
I found that first frame doesn't show text (ticker text), from next frame after sliding each and every frame shows the text.
is this a bug? if so what is the solution? or how do i show the text in the first frame too?

Thanks
K²
Ali Faraji
Top achievements
Rank 1
 answered on 14 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?