Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
127 views

Has I still don't know how to add a expand icon on a treeview, I use the Onclick event to check if I need to load the children node of a treeview... 

 

 

if (parentId != 0) {

 parentNode = tree.findNodeByValue(parentId);

}

 

 
... Code to Add Nodes 

tree.commitChanges(); 

if (parentId != 0) {

 parentNode.set_expanded();

}

 

 
Result is great.... The node expands... But it collapses back !

Peter Ryckaert
Top achievements
Rank 1
 answered on 02 Aug 2010
1 answer
702 views
Hi,

I am using GridTableView inside a RadGrid (for Hierarchy display).
I declared the datasource in the RadGrid1_NeedDataSource event from code-behind and its working fine.

Now how do I set the dataSource of GridTableView from code-behind C#?
I am not able ro refer to the GridTableView from code-behind as it don't has a ID property.

Thanks
Ajay Sharma
Princy
Top achievements
Rank 2
 answered on 02 Aug 2010
4 answers
110 views
Hello,

I am new in using Telerik, and I have a basic question. I am using the AJAX component of telerik and I want to change the tooltip which appears when i pass the mouse over the appoinment.

I have seen this link but is for WPF
http://www.telerik.com/help/wpf/radscheduler-how-to-create-appointment-tooltip.html

First, I want to know what is the WPF, and if I can use it with in a normal asp NET project. 

Second, some ideas to change the tooltip?

Thanks you very much,

BR,

David.
David Lopez
Top achievements
Rank 1
 answered on 02 Aug 2010
5 answers
121 views
Hello everyone,

I need to organize a big amount of appoinments in my scheduler, and I want to know in a quick view to the scheduler which days has more appoinments. Is there someway which I can show (next to the day number e.g.) the number of appoinments for each day?

Thanks a lot.
David Lopez
Top achievements
Rank 1
 answered on 02 Aug 2010
4 answers
214 views
I need to have the horizontal submenu that has the same width as the 1st main level with the items in the submenu 

|  Level 1     Level 1a     Level 1b    Level 1c    Level 1d  |
|            Sublevel 1a1  Sublevel 1a2  Sublevel 1a3          | 

I've manged to get the initial menus to look and work fine. The problem I'm having is if you hover over the Level 1c and then Level 1b the submenu grows in width and height.  The attached images may help to explain better what is happening.


|  Level 1     Level 1a     Level 1b    Level 1c    Level 1d  |
|            Sublevel 1a1  Sublevel 1a2  Sublevel 1a3                     |  width and hieght excedes the boundries.

Here is my code - any help or insight anyone can give is appreciated.

 
<script type="text/javascript">
        function itemOpening(sender, args)
        {   
           var SecRow = args.get_item().get_element();
           SecRow.childNodes[1].style.left = - SecRow.offsetLeft + "px" ; 
             
        }
  </script>
  
<telerik:RadMenu ID="RadMenu1" runat="server" Flow="Horizontal" width="900px" OnClientItemOpened="itemOpening"
    skin="BC2010BLACK" EnableEmbeddedSkins="false" style="float:left;">
    <expandanimation type="InOutQuad" duration="300" />
    <collapseanimation type="InOutQuad" duration="200" />
    <items>
          <telerik:RadMenuItem ID="RadMenuItem43" runat="server" NavigateUrl="~/default.aspx" Text="Home"/>
          <telerik:RadMenuItem runat="server" NavigateUrl="~/OurFirm.aspx" Text="Our Firm" GroupSettings-Flow="horizontal">
          <GroupSettings ExpandDirection="Auto" Flow="Horizontal" width="898"/>
               <Items>
                    <telerik:RadMenuItem runat="server" NavigateUrl="~/FirmCulture.aspx" Text="Firm Culture"/>
                    <telerik:RadMenuItem runat="server" NavigateUrl="~/Innovation.aspx" Text="Innovation"  />
                    <telerik:RadMenuItem runat="server" NavigateUrl="~/Diversity.aspx" Text="Diversity"  />
                    <telerik:RadMenuItem runat="server" NavigateUrl="~/HonorAndAwards.aspx"  Text="Honors and Awards"/>
                    <telerik:RadMenuItem runat="server" NavigateUrl="~/ClientFeatures.aspx"  Text="Client Features"/>
                    <telerik:RadMenuItem runat="server" NavigateUrl="~/CommunityInvolvement.aspx" Text="Community Involvement"/>
               </Items>
          </telerik:RadMenuItem>
          <telerik:RadMenuItem runat="server" NavigateUrl="~/OurServices.aspx" Text="Our Services" GroupSettings-Flow="horizontal"  >
          <GroupSettings ExpandDirection="Auto" Flow="Horizontal" width="898"/>
               <Items>
                    <telerik:RadMenuItem IsSeparator="true"  width="50" runat="server" text="" />
                    <telerik:RadMenuItem runat="server"  NavigateUrl="~/ourServices.aspx" Text="Practice Areas"  />
                    <telerik:RadMenuItem runat="server" NavigateUrl="~/ADR.aspx" Text="Alternative Dispute Resolution" />
                    <telerik:RadMenuItem runat="server"  NavigateUrl="~/OurServices.aspx" Text="Industries Served"  />
               </Items>
          </telerik:RadMenuItem>
          <telerik:RadMenuItem runat="server"  NavigateUrl="~/OurAttorneys.aspx" Text="Our Attorneys"  GroupSettings-Flow="horizontal">
          <GroupSettings ExpandDirection="Auto" Flow="Horizontal" width="898"  />
               <Items>
                    <telerik:RadMenuItem IsSeparator="true"  width="60" runat="server" text="" />
                    <telerik:RadMenuItem  runat="server" NavigateUrl="~/attorneysbypractice.aspx" Text="by Practice" />
                    <telerik:RadMenuItem  runat="server" NavigateUrl="~/attorneysbyindustry.aspx" Text="by Industry" />
                    <telerik:RadMenuItem  runat="server" NavigateUrl="~/attorneyalphalist.aspx" Text="by Last Name"/>
                    <telerik:RadMenuItem  runat="server" NavigateUrl="~/attorneysbyoffice.aspx" Text="by Office"/>
                    <telerik:RadMenuItem  runat="server" NavigateUrl="~/OurAttorneys.aspx" Text="Search" />
               </Items>
          </telerik:RadMenuItem>
          <telerik:RadMenuItem runat="server"  NavigateUrl="~/OurOffices.aspx"  Text="Our Offices"  GroupSettings-Flow="horizontal">  
               <GroupSettings ExpandDirection="Auto" Flow="Horizontal" width="898"  />
               <Items>
                    <telerik:RadMenuItem IsSeparator="true"  width="20" runat="server" text="" />
                    <telerik:RadMenuItem runat="server" NavigateUrl="~/office.aspx?ID=1" Text="Boca Raton"/>
                    <telerik:RadMenuItem runat="server" NavigateUrl="~/office.aspx?ID=8" Text="Destin"/>
                    <telerik:RadMenuItem runat="server" NavigateUrl="~/office.aspx?ID=2" Text="Fort Lauderdale"/>
                    <telerik:RadMenuItem runat="server" NavigateUrl="~/office.aspx?ID=3" Text="Miami"/>
                    <telerik:RadMenuItem runat="server" NavigateUrl="~/office.aspx?ID=4" Text ="Orlando"/>
                    <telerik:RadMenuItem runat="server" NavigateUrl="~/office.aspx?ID=5" Text="Tallahassee"/>
                    <telerik:RadMenuItem runat="server" NavigateUrl="~/office.aspx?ID=6" Text="Tampa"/>
                    <telerik:RadMenuItem runat="server" NavigateUrl="~/office.aspx?ID=7" Text="West Palm Beach" />
               </Items>
          </telerik:RadMenuItem>
          <telerik:RadMenuItem runat="server"  NavigateUrl="~/MediaCenter.aspx" Text ="Media Center"/>
            
          <telerik:RadMenuItem ID="RadMenuItem12" runat="server" NavigateUrl="~/EventsandPublications.aspx" Text ="Events and Publications" GroupSettings-Flow="horizontal"> 
                <GroupSettings ExpandDirection="Auto" Flow="Horizontal" width="898"  />
                <Items>
                 <telerik:RadMenuItem IsSeparator="true"  width="420" runat="server" text="" />
                    <telerik:RadMenuItem runat="server"  NavigateUrl="~/caseupdates.aspx" Text="Case Updates"  />
                    <telerik:RadMenuItem runat="server"  NavigateUrl="~/events.aspx" Text="Events"/>
                    <telerik:RadMenuItem runat="server"  NavigateUrl="~/pressreleases.aspx" Text="Press Releases"/>
                    <telerik:RadMenuItem runat="server"  NavigateUrl="~/publications.aspx" Text="Publications"/>
               </Items>
          </telerik:RadMenuItem>
          <telerik:RadMenuItem runat="server"  NavigateUrl="~/Careers.aspx" Text ="Careers">
               <GroupSettings ExpandDirection="Auto" Flow="Horizontal"  width="898"/>
               <Items>
                    <telerik:RadMenuItem IsSeparator="true"  width="600" runat="server" text="" />
                    <telerik:RadMenuItem  runat="server"  NavigateUrl="~/careersattorneys.aspx" Text ="Attorneys" />
                    <telerik:RadMenuItem runat="server"  NavigateUrl="~/careerslawstudents.aspx" Text="Law Students"    />
                    <telerik:RadMenuItem runat="server" NavigateUrl="~/careersstaff.aspx" Text="Staff"/>
              </Items>
          </telerik:RadMenuItem>
  </items>
</telerik:RadMenu>
Kamen Bundev
Telerik team
 answered on 02 Aug 2010
4 answers
2.0K+ views
Hi,

I am using radgrid with rowcontextmenu. when i right click on a radgrid row and select edit option it will open a popup window. What i need is when i rightclick on a radgrid row, i just want to get the values of 3 columns for that particular selected row.  For example, when i right click on a selected radgrid row i want to get customer name, headend name, site name values of that selected row.

Here is my code....


<MasterTableView GridLines="None" DataKeyNames="orderId" CommandItemDisplay="Top">
                            <Columns>
                                <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" HeaderStyle-Width="3%"
                                    ItemStyle-Width="3%">
                                    <HeaderStyle Width="3%"></HeaderStyle>
                                    <ItemStyle Width="3%"></ItemStyle>
                                </telerik:GridClientSelectColumn>
                                <telerik:GridBoundColumn UniqueName="sId" HeaderText="sId" DataField="sId" ReadOnly="true"
                                    Visible="false">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn UniqueName="orderId" HeaderText="orderId" Visible="false"
                                    ReadOnly="true" DataField="orderId">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn UniqueName="Customer Name" HeaderText="Customer Name" DataField="Customer Name"
                                    ReadOnly="true">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn UniqueName="Market Name" HeaderText="Market Name" DataField="Market Name"
                                    ReadOnly="true">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn UniqueName="LOB" HeaderText="LOB" DataField="LOB" ReadOnly="true">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn UniqueName="Headend Name" HeaderText="Headend Name" DataField="Headend Name"
                                    ReadOnly="true">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn UniqueName="Project Name" HeaderText="Project Name" DataField="Project Name"
                                    ReadOnly="true">
                                </telerik:GridBoundColumn>
                                <telerik:GridTemplateColumn UniqueName="Site Name" HeaderText="Site Name" DataField="SiteName"
                                    ReadOnly="true">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnkSiteName" runat="server" Text='<%# Eval( "Site Name" ) %>'
                                            ForeColor="Blue" CommandName="sitename"></asp:LinkButton>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridBoundColumn UniqueName="Task Status" HeaderText="Task Status" DataField="Task Status"
                                    ReadOnly="true">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn UniqueName="Clarify Account Nbr" HeaderText="Clarify Account Nbr"
                                    DataField="Clarify Account Nbr">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn UniqueName="Site ID" HeaderText="Site ID" DataField="Site ID">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn UniqueName="Quote ID" HeaderText="Quote ID" DataField="Quote ID">
                                </telerik:GridBoundColumn>
                                <telerik:GridCheckBoxColumn UniqueName="EDP Created?" HeaderText="EDP Created?" DataField="EDP Created?">
                                </telerik:GridCheckBoxColumn>
                                <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" Display="false">
                                </telerik:GridEditCommandColumn>
                            </Columns>
                        </MasterTableView>


protected void RadMenu1_ItemClick(object sender, RadMenuEventArgs e)
    {
        int radGridClickedRowIndex;
 
        radGridClickedRowIndex = Convert.ToInt32(Request.Form["radGridClickedRowIndex"]);
 
        switch (e.Item.Text)
        {
            case "Edit Task":
                string OrdID = rg200.MasterTableView.DataKeyValues[radGridClickedRowIndex]["orderId"].ToString();
                lblOrdHeadName.Text = rg200.MasterTableView.NamingContainer.FindControl("Headend Name").ToString();
 
                Session["orderId"] = OrdID;
        }
    }


if you see the above code, I am able to get the orderId value for that selected column. But when I am trying to get Headend Name value I am getting error. How to get headend Name value for selected row.

Thanks In Advance
Princy
Top achievements
Rank 2
 answered on 02 Aug 2010
2 answers
156 views
Hi

I couldn't find any information on how to manage the RadListBox's keyboard shortcuts. How can I remove e.g. the "Del"-Shortcut for deleting an item?

Thanks in advance
Best
Roman
Roman
Top achievements
Rank 1
 answered on 02 Aug 2010
1 answer
123 views
You might consider this a little out of the remit of the VSB but here goes.

Suppose I create a skin. I mess with the fonts, the borders and the margins and I change the colours. All of my control's skins are based on a lovely Barbie Pink. Right at the beginning of the process I named the skin "BarbiePink".

Now, I want to create a copy of the skin, same fonts, borders and margins but a different colour.

ATM, I have to rename each CSS file and a number of image files, then I have to open each of the CSS files are replace the old skin name with the new one.

And so to the request; WIBNI, when importing a .zip file, I was given the option of renaming the skin? Then I could import "BarbiePink", rename it to "ButchBlue", change the base colour for each control and export my new skin.

What do the here assembled think?

-- 
Stuart
Alex Gyoshev
Telerik team
 answered on 02 Aug 2010
4 answers
181 views
I have a telerik radgrid with a single editable column that I've thrown into edit mode using the code below.  I'm using a radtoolbar and I'd like to allow the user to save the grid data (AllowMultiRowEdit="true") without requiring a per-row or even grid-specific update button.  All of the examples seem to be pulling necessary objects from the eventArgs.  Is there a grid example that allows me to process the grid changes from a separate toolbar button?

protected void LUOGrid_PreRender(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
        foreach (GridItem item in LUOGrid.MasterTableView.Items)
        {
            if (item is GridEditableItem)
            {
                GridEditableItem editableItem = item as GridDataItem;
                editableItem.Edit = true;
            }
        }
        LUOGrid.Rebind();
    }
}
Princy
Top achievements
Rank 2
 answered on 02 Aug 2010
1 answer
376 views
I have a RadComboBox inside a GridTemplateColumn:

                        <telerik:RadGrid ID="rgrdTest" runat="server" Skin="Vista" Height="290px">
                            <MasterTableView AutoGenerateColumns="false">
                                <Columns>
                                    <telerik:GridTemplateColumn HeaderText="Action" UniqueName="Action">
                                        <ItemTemplate>
                                            <telerik:RadComboBox ID="rcbx" runat="server" Width="200px"
                                                DropDownWidth="300px" Skin="Vista" Height="100px">
                                            </telerik:RadComboBox>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                </Columns>
                            </MasterTableView>
                            <ClientSettings>
                                <Scrolling AllowScroll="true" />
                                <Selecting AllowRowSelect="true" />
                            </ClientSettings>
                        </telerik:RadGrid>

Can somebody show me how to select the Grid's row of the selected combobox when it takes focus via client-side? Preferably if this can be done using the OnClientFocus event of the combobox? So whenever someone clicks any of the combobox per row , the whole grid item row is selected. Thanks!

Princy
Top achievements
Rank 2
 answered on 02 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?