Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
115 views

Hello

The click event seems to not be as useful as it could be because it does not allow for a "hidden data field".  For example, suppose I have a bar chart showing billionaires by net worth.  Name on the axis, the bar value is net worth.  If I do an Ajax callback or a popup window to another URL in the click event, I need to lookup the billionaire based on their name on the server- which could be tricky if there are billionaires with the same name, so perhaps I then lookup on a combination of net worth and name, which is still an imprecise solution.   Think of the imprecision of passing javascript numbers and persons/family names  (containing spaces, periods or ampersands) as URL parameters to do a lookup.  I would much prefer to have a hidden bound field say HiddenDataField="BillionaireID" in the BarSeries element that I can access in the javascript arguments.  Then I can lookup the correct individual precisely

i.e.

<telerik:BarSeries DataField="NetWorth" HiddenDataField="BillionaireID"/>
<XAxis DataLabelsField="FullName" >

a simple redirect based on the click would roughly be

 

function RadHtmlChart1_SeriesClicked(sender,args)

{
    window.location="billionaire.aspx?id=" + args._hidden;

}


Please let me know if I am missing something that would make the above easier to implement
Plamen
Telerik team
 answered on 25 Dec 2015
4 answers
845 views
Hi,

In the RadChart there is a server side click event which does a postback can we achieve the same with the HtmlChart?

In my scenario I need to do a postback when a slice on a pie chart or a bar on a bar chart is clicked. After the post back I load some data in a RadGrid and display it which relates to the series/slice/bar clicked.

Can this sort of functionality be achieved using the HtmlChart?
Plamen
Telerik team
 answered on 25 Dec 2015
5 answers
150 views
Hi all,

I have following scenario: Splitter with top pane, left pane and right pane (context pane). From right pane I open window using windowManager from main page to make the window modal all over the splitter panes.

1/
I noticed that when I drag the window and move or resize it hides its content. Probably this is correct behaviour but problem is that at the same time it hides content of right pane as well. So every time I try to move or resize window it blanks right pane content. When release the window the content is back.
I tried to open modal window from right pane and it work fine as I expect but window is not modal all over the splitter panes. Can any one help with this?

2/ Another issue probably related to above one: In same scenario when I try to resize window, content of the window is not resized until I click inside the window. I noticed the this happens when window is only above right pane area. Once the window reaches left pane or top pane it works fine. Can you please also try to help with this problem.

Thanks a lot
Regards
Slavo
Plamen
Telerik team
 answered on 25 Dec 2015
1 answer
319 views

I see attributes HeaderStyle-xxxxx and ItemStyle-xxxxx in the grid column tag and I see a nested elements <HeaderStyle /> (in which I can also specify the column width) and <ItemStyle />. 

I used the column attribute mechanism to set width and wrap; later I find that the attribute specific width has been supplemented by <HeaderStyle Width="..." /> nested elements; I see the same for ItemStyle-Wrap="false" generating nested <ItemStyle Wrap="False" />.

When I change value in the column tag attribute and the nested tag is present, it's setting takes precedence.

So, a few questions:

- What is generating the nested tags?

- Is one or the other markup mechanism preferred?  (Given the very long list of column attributes, I can see for readability the nested tags might be preferable. However, when both exist, it's too easy to edit the attribute value in the column tag instead of the nested header or item style element which has final determination of the setting.

- If using the column tag attributes method is equivalent, is there a way to disable the self-generation of the nested tags?  (Or for auto-removing the redundant attribute from the column element tag.)

Thanks,

Rick Palazola

The Jackson Laboratory

Eyup
Telerik team
 answered on 25 Dec 2015
3 answers
92 views

I have a grid with a that I dynamically created a checkbox on the Group Header. I am trying to toggle the checkboxes in the data item to check or uncheck the group checkbox. The code below is selecting the Header checkbox and not the group checkbox. How can I acheive this?

protected void ToggleRowSelection(object sender, EventArgs e)
        {
            ((sender as CheckBox).NamingContainer as GridItem).Selected = (sender as CheckBox).Checked;
            bool checkHeader = true;
                foreach (GridDataItem dataItem in rgvFunctions.MasterTableView.Items)
                {
                    if (!(dataItem.FindControl("isFunction") as CheckBox).Checked)
                    {
                        checkHeader = false;
                        break;
                    }
                }
               
       
            GridHeaderItem headerItem = rgvFunctions.MasterTableView.GetItems(GridItemType.Header)[0] as GridHeaderItem;
            (headerItem.FindControl("CheckAll") as CheckBox).Checked = checkHeader;
           
        }

Eyup
Telerik team
 answered on 25 Dec 2015
3 answers
171 views
Hi,

If I create a new website and drag/drop a BinaryImageControl to the default.aspx, I get following error:

Unknown server tag 'telerik:BinaryImageControl'.

I've tried repair and reinstall "RadControls for ASP.NET AJAX Q2 2009" without any luck.

I can use the new Capatcha and ListBox fine.

Any idea?

Thanks
Morten
Eyup
Telerik team
 answered on 25 Dec 2015
1 answer
254 views

Dears , 

kindly i have a database table Images include image id , image , userid 

i need to insert or update and retrieve image after update and insert

can u help please 

Viktor Tachev
Telerik team
 answered on 25 Dec 2015
3 answers
248 views

Hi,

 I could not find a way to apply css on dropdown and search button.

 May you guide what css key to apply certain item in dropdown and search button.

 Cheers,

 Duy

Ivan Danchev
Telerik team
 answered on 25 Dec 2015
8 answers
148 views
Hi
We need to drag from radscheduler and drop it in radgrid.
Please share any useful information (links or sample project) ASAP.
Thanks in advance.
Plamen
Telerik team
 answered on 25 Dec 2015
7 answers
879 views
I'm using a skin for the tabstrip I published the site on iis to see how the site was only when I click on the area of the form where the tabstrip it gives this error Message:


Telerik.Web.UI.RadTabStrip with ID='RadTabStrip1' was unable to find embedded skin with name 'Black'. Please, make sure that you spelled the skin name correctly, or if you want to use a custom skin, set EnableEmbeddedSkins=false.

 



Exception Details: System.InvalidOperationException: Telerik.Web.UI.RadTabStrip with ID='RadTabStrip1' was unable to find embedded skin with name 'Black'. Please, make sure that you spelled the skin name correctly, or if you want to use a custom skin, set EnableEmbeddedSkins=false.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Ivan Danchev
Telerik team
 answered on 25 Dec 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?