Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
167 views
I don't see any events, particularly client side events, associated with the new Search Context object.

What I would like to do is clear any typed text when the user chooses another item in the context list as I think this is more intuitive. 

Is there any way to detect a change of the Search Context selected item using script?
Plamen
Telerik team
 answered on 28 Dec 2015
2 answers
286 views

I have some of my own JavaScript that I call from the onChange event in a Telerik DateInput. When the user enters a date with the native DateInput entry shortcut ("1/1" and then tab which fills in the year), my JavaScript does not execute properly. If the user types in the entire date manually and then tabs off of the DateInput, then my JavaScript will execute properly. I have in cluded my code and markup. I also tried moving the placement of my JS include to the end of the <body> but that causes different problems.

 <td>
      <telerik:RadDateInput ID="BillStartDt" runat="server" Skin="Default" Width="90px" TabIndex="10" onChange="calcNumberOfDays();">
      </telerik:RadDateInput>
 </td>
 <td>End Date</td>
 <td style="width: 170px">
      <telerik:RadDateInput ID="BillEndDt" runat="server" Skin="Default" Width="90px" TabIndex="11" onChange="calcNumberOfDays();" >
      </telerik:RadDateInput>
     <asp:Label ID="lblDateError" runat="server" Font-Size="9px"></asp:Label>
 </td>

 

function calcNumberOfDays() {
    //uses moment.js library for date calculations
    //http://momentjs.com/docs/#/displaying/difference/

    var startDateBox = document.getElementById("BillStartDt").value
    var endDateBox = document.getElementById("BillEndDt").value
    if ((!(startDateBox == "" || startDateBox.length == 0 || startDateBox == null) && (!(endDateBox == "" || endDateBox.length == 0 || endDateBox == null)))) {
        var StartDate = moment(document.getElementById("BillStartDt").value); //Convert.ToDateTime(BillStartDt.SelectedDate);
        var EndDate = moment(document.getElementById("BillEndDt").value); //Convert.ToDateTime(BillEndDt.SelectedDate);
        var NumberOfDays = EndDate.diff(StartDate, 'days');;

        document.getElementById("lblDateError").innerText = NumberOfDays;//lblDateError.Text = NumberOfDays.ToString() + " Days";
        if ((NumberOfDays > 60) || (NumberOfDays < 0)) {
            document.getElementById("lblDateError").style.color = 'red';
        }
        else {
            document.getElementById("lblDateError").style.color = 'green';
        }
    }
}

Thomas
Top achievements
Rank 1
 answered on 26 Dec 2015
5 answers
709 views

Wizard Steps should have a "Value" or other similar property so that they can be located server and client side by something other than title and/or index using a FindByValue method. Wizard Step titles and indices can be easily changed as the Wizard is modified, thus breaking any code that makes use of title or indices to get a reference to a step.

Also, and it has been repeated elsewhere, users need to be able to access the Wizard navigation buttons server-side in order to manipulate them (text, enabled/disabled, visibility, etc.). I'm not really sure why such basic functionality wasn't part of the initial release of the control. I mean, why would you release a control that provides a number of features which improve on the existing ASP.NET Wizard control, and yet is missing a bunch of important features that the ASP.NET Wizard control has. It just puts developers in a bind, having to decide whether or not to invest the time and energy of figuring out how to implement your control, only to find that they can't do some basic thing after investing that time.

Hristo Valyavicharski
Telerik team
 answered on 25 Dec 2015
7 answers
226 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
884 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
166 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
356 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
110 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
201 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
286 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?