Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
82 views
Hi , I'm using RadOrgChart along with RadToolTipManager.
Tooltip is working fine for all expanding and minimizing. But when I do drilldown of a OrgChart, its not adding the references to the targetcontrol. So tooltip is not working when I hover over the name. I added RadAjaxManager also. 
I didn't see any where people using RadOrgChart  DrillDown and RadToolTipManager at same time. I saw some tooltip reference updates, but nothing helped.
Can some one help me, how I can make it work.

Siddhartha
Top achievements
Rank 1
 answered on 22 Oct 2013
5 answers
64 views
Hi!

We are using a Telerik grid from RadGrid.Net2 and we have the following bug: when a filter returns no record, then the columns are hidden and only one column is visible.
I mention that:
- We want scroll bars and relative dimensions, I saw that the bug is only with TableLayout="Auto" and scroll bars. But if we change to Fixed, then it does not work well with Width="100%"
- We don't want du buy the latest version, because I tried the trial and it contains only Telerik.Web.UI, and not RadGrid.Net. Even our old Telerik.Web.UI controls don't work with their newest version!
 
<radG:RadGrid ID="grdOthers" runat="server" DataSourceID="odsOthers" AutoGenerateColumns="false" EnableAJAX="false"
            Width="99%" Height="20%" Skin="WebBlue"
            AllowPaging="false" AllowSorting="true" AllowAutomaticDeletes="true" AllowAutomaticUpdates="false"
            OnItemCommand="grdOthers_Item" OnItemCreated="grdOthers_ItemCreated" OnItemDataBound="grdOthers_ItemDataBound">
    <ClientSettings AllowColumnHide="true" AllowColumnsReorder="true">
        <Scrolling AllowScroll="true" ScrollHeight="100" UseStaticHeaders="true" />
    </ClientSettings>
    <MasterTableView DataSourceID="odsOthers" DataKeyNames="id_autres_activites" AllowFilteringByColumn="true" Width="100%" CommandItemDisplay="None" TableLayout="Fixed">
        <ExpandCollapseColumn Visible="False" />
        <RowIndicatorColumn Visible="False" />
        <NoRecordsTemplate>Aucune donnée à afficher</NoRecordsTemplate>
        <Columns>
            <radG:GridBoundColumn HeaderText="AQR" UniqueName="CodUtilColumn" DataField="txt_codUtil" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" HeaderStyle-Width="5%" />
            <radG:GridBoundColumn HeaderText="Etablissement-Ville" UniqueName="EtablissementColumn" DataField="txt_etab" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" HeaderStyle-Width="25%" />
            <radG:GridBoundColumn HeaderText="Code DQI" DataField="txt_codDqi" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" HeaderStyle-Width="5%" />
            <radG:GridBoundColumn HeaderText="Nb jours" DataField="num_Nb_Jours" CurrentFilterFunction="EqualTo" AutoPostBackOnFilter="true" HeaderStyle-Width="5%" />
            <radG:GridBoundColumn HeaderText="Produit" DataField="txt_codCertif" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" HeaderStyle-Width="5%" />
            <radG:GridBoundColumn HeaderText="Activité" DataField="txt_typActiv" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" HeaderStyle-Width="5%" />
            <radG:GridBoundColumn HeaderText="Remarque" DataField="txt_remarque" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" HeaderStyle-Width="48%" />
            <radG:GridBoundColumn UniqueName="AffectEtabXans" DataField="AffectEtabXans" Display="false" HeaderStyle-Width="0%" />
            <radG:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn" HeaderStyle-Width="1%" />
            <radG:GridButtonColumn ButtonType="ImageButton" UniqueName="DeleteColumn" CommandName="Delete" ConfirmText="Etes-vous surs?" Text="Supprimer" HeaderStyle-Width="1%" />
        </Columns>
    </MasterTableView>
</radG:RadGrid>

Thanks.
Viktor Tachev
Telerik team
 answered on 22 Oct 2013
2 answers
73 views
Is it possible to have custom actions with a RadContextMenu?  I am using a RadTreeView and if the user were to right click to get the RadContextMenu, it would allow them to add that selected item to their "favorites" (a value that we would store in the database?  This way when they load the application again it would have already loaded their favorites.
Kurt Kluth
Top achievements
Rank 1
 answered on 22 Oct 2013
1 answer
66 views
Greetings and salutations to you, RadEditor experts. Can anyone please help with the following problem?

  1. Open the RadEditor AJAX demo page with default settings.
  2. Clear the initial content (click in editor, Ctrl-A, delete).
  3. Enter at least two lines of text (type some letters, press Enter; repeat until satisfied)
  4. Select one line of text with the mouse (or several contiguous lines, but not all lines)
  5. Click the Indent button.
  6. In latest Firefox, all lines are now indented (incorrect), instead of only the selected line (correct). Same problem in Internet Explorer 8, 10.

Viewing the HTML source, we see a series of lines ending with <br /> tags. It appears that the indent function, not finding an immediate container tag for the selected lines (e.g. <p>), broadens its scope until the entire document is selected. Changing the newline mode from "Breaks" to "Paragraphs" does help, but that's not a great solution for clients who have come to expect the default behavior, or clients who are editing documents already edited in "Breaks" mode. We could write a custom indent function, but it would be nice not to have to reimplement this basic feature. Any ideas for low-impact workarounds, or perhaps intimations of a bugfix in an upcoming release?

THANK YOU for your valuable time (which I hope not to have wasted through ineptitude) and any advice that you might kindly provide.
Marin Bratanov
Telerik team
 answered on 22 Oct 2013
1 answer
59 views
Hi,
Is there any control in telerik that supports the following features for asp.net visualstudio 2010

-          Gantt view display of dynamic data
-          Drag and drop support
-          Plot nodes in the Gantt view in different colors.
-          Connecting nodes in the Gantt view

also req to know whether any demo version and user manual available for that ?

Marin Bratanov
Telerik team
 answered on 22 Oct 2013
2 answers
279 views
There's a nice demo that shows how to prevent the user from submitting dates when they are invalid AND required.  What is the suggested method of preventing the user from submitting (clicking save) when the field is not required, but must be valid if it is filled in?

I have seen some discussion but most are quite old and don't seem like very elegant solutions.
Gaurab
Top achievements
Rank 1
 answered on 22 Oct 2013
3 answers
50 views
I have implemented an OnClientSplitButtonClicking event handler on the client side, usign this i can call set_cancel(true) which prevents the button click event being fired.

However, it is still selecting the button as the selected button in the ribbonbar - i.e. it still updates the selected index of the split button itself.

Any ideas on how can i prevent this ?

I have tried adding client side handlers for OnClientButtonClicking, OnClientButtonToggling and OnClientSplitButtonClicking - but nothing else seems to allow me to cancel this.

Currently, i am having to reset the selection manually:

function OnSplitButtonClicking(sender, args) {
     args.set_cancel(true);
 
     var splitButton = findSplitButton("spbActions");
 
     if (splitButton != null)
       setTimeout(function () { splitButton.set_selectedButtonIndex(0); }, 0);
 
}
Kate
Telerik team
 answered on 22 Oct 2013
1 answer
68 views
I'm binding a RadGrid using a custom LINQ query in the NeedDataSource method in the .cs file.  However, there are two columns that I don't want to bind from that datasource, but instead from another List<int> of values called MemberIDs.

The MemberID would affect the left-most column, which either contains a link button that says "Match", or, different link button that would say "Expand".  The "Match" link button should only be displayed if there does not exist a corresponding value in the List<int> MemberIDs for that row's databound record's own MemberID field, otherwise it should display the "Expand" link button which when clicked would open a child RadGrid.

I would like to either be able to raise an event upon the cell creation of that column for that row, and set the appropriate link button in that event's method, or do it in the NeedDataSource event of the RadGrid.  I'm not sure which would work or be better.  Is it possible to have such an event upon cell creation, and be able to check that row's databound record's MemberID keyfield from that event?  If so, what's the name for such an event?

The second thing I need to figure out is that in the expand/collapse column of the RadGrid, I want the angle bracket '<' for expanding a child RadGrid to appear and be clickable, only when the condition for displaying the "Expand" link button (described above) is matched, but if the condition for the "Match" link button is met, then I either don't want to display the angle bracket '<' or make it not be clickable.

Is there a good way to set this up?

Also, is it possible for the "Expand" link button to raise the same event as the angle bracket '>' expand button, i.e., 'e.CommandName == "ExpandCollapse"'?

Thanks for any help possible!
Angel Petrov
Telerik team
 answered on 22 Oct 2013
14 answers
812 views
Hello. I need to "expand" the default choices of "10/20/50" for page size to "10/20/50/100/200../1000" and I need to re-bind the grid as soon as the user selects the desired page size.

I implemented the following code:

  protected void rgURL_Load(object sender, EventArgs e)
  {
    GridItem[] pagers = rgURL.MasterTableView.GetItems(GridItemType.Pager);

    foreach (GridItem pager in pagers)
    {
      RadComboBox comboBox = (RadComboBox)pager.FindControl("PageSizeComboBox");

      comboBox.SelectedIndexChanged += delegate(object _source, RadComboBoxSelectedIndexChangedEventArgs _e)
      {
        rgURL.MasterTableView.PageSize = Convert.ToInt32(_e.Value);
        rgURL.Rebind();

        //does not help
        //pager.Visible = true;
      };
    }
  }
  protected void rgURL_PreRender(object sender, EventArgs e)
  {
    GridItem[] pagers = rgURL.MasterTableView.GetItems(GridItemType.Pager);

    foreach (GridItem pager in pagers)
    {
      RadComboBox comboBox = (RadComboBox)pager.FindControl("PageSizeComboBox");

      comboBox.Items.Clear();

      comboBox.Items.Add(new RadComboBoxItem("10", "10"));
      comboBox.Items.Add(new RadComboBoxItem("20", "20"));
      comboBox.Items.Add(new RadComboBoxItem("50", "50"));
      comboBox.Items.Add(new RadComboBoxItem("100", "100"));
      comboBox.Items.Add(new RadComboBoxItem("200", "200"));
      comboBox.Items.Add(new RadComboBoxItem("300", "300"));
      comboBox.Items.Add(new RadComboBoxItem("400", "400"));
      comboBox.Items.Add(new RadComboBoxItem("500", "500"));
      comboBox.Items.Add(new RadComboBoxItem("1000", "1000"));

      comboBox.Items.FindItemByValue(URLGridPageSize.ToString()).Selected = true;

      comboBox.DropDownWidth = Unit.Pixel(60);
      comboBox.AutoPostBack = true;

        //does not help
        //pager.Visible = true;
    }
  }


This works fine until the newly selected page size is greater than the number of rows in the grid. At that point the pager disappears and I cannot make it appear again. I mean, if the grid contains 70 items and page size is 20 - i would see the pager that says I have 4 pages (20 + 20 + 20 + 10). If I then select "100" as a new page size - the grid will show all 70 items on the same page and the pager at this point will disappear.

What do I need to prevent it from disappearing? I'm using Q1 2009 version of controls.

P.S. I was trying to put the code in _ItemDataBound event (as were suggested in the other code) but in than case "SelectedIndexChanged" event would not fire.

Thanks,
Dmitry
Álvaro
Top achievements
Rank 1
 answered on 22 Oct 2013
1 answer
34 views
Hi,
Is there any control in telerik that supports the following features for asp.net visualstudio 2010

-          Gantt view display of dynamic data
-          Drag and drop support
-          Plot nodes in the Gantt view in different colors.
-          Connecting nodes in the Gantt view

also req to know whether any demo version and user manual available for that ?

Ivan Zhekov
Telerik team
 answered on 22 Oct 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?