Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
123 views

Hi all,

Wondering if you can help me please.

How can i assign the background image of a radmap.Marker.tooltip from a folder.

It is currently setup to save the user's profile image PATH in the database and then once the marker is created I want to bind the marker tooltipsettings.Background image with the path from the database.

Can you please assist me.

 

Regards,

Barend

Marin Bratanov
Telerik team
 answered on 04 Oct 2016
2 answers
209 views

I have a RadGrid which pops an WebUserControl to allow the user to update the data. I want to perform some simple validation on some of the NumericTextBoxes in the control and need to get the values of other controls to do this but my JavaScript returns null values for each of the other controls I need. Unfortunately my knowledge of JavaScript is limited and I really don't know why the $find is returning nulls so and pointers in the right direction much appreciated.

 

My WebUserControl includes the following controls:

<tr>
    <td class="style2">
        <label id="Label2" for="rtbProductGroup">Product Group:</label>
    </td>
    <td class="style1">
        <telerik:RadTextBox ID="rtbProductGroup" runat="server"
            Font-Names="Segoe UI" Resize="None"
            ResolvedRenderMode="Classic" Skin="Metro" AutoPostBack="false"
            Text='<%# DataBinder.Eval(Container, "DataItem.Product_Group") %>'
            TabIndex="2" ReadOnly="True" Width="250px">
        </telerik:RadTextBox>
    </td>
</tr>
<tr>
    <td style="width:10%;">
        <label id="Label64" for="Qty">Qty:</label>
    </td>
    <td style="width:5%;">
        <telerik:RadNumericTextBox ID="ntbQty" runat="server"
            CssClass="rounded" Culture="en-GB" DbValueFactor="1" width="60px"
            ResolvedRenderMode="Classic" Skin="Metro" LabelCssClass=""
            AutoPostBack="false" MaxValue="1000" MinValue="1"
            Text='<%# DataBinder.Eval(Container, "DataItem.Qty") %>'
            TabIndex="6">
            <NegativeStyle Resize="None" />
            <NumberFormat DecimalDigits="0" ZeroPattern="n" />
            <EmptyMessageStyle Resize="None" />
            <ReadOnlyStyle Resize="None" />
            <FocusedStyle Resize="None" />
            <DisabledStyle Resize="None" />
            <InvalidStyle Resize="None" />
            <HoveredStyle Resize="None" />
            <EnabledStyle HorizontalAlign="Right" Resize="None" />
        </telerik:RadNumericTextBox>
    </td>
 
    <td style="width:10%;">Qty (SA): </td>
    <td style="width:5%;">
        <telerik:RadNumericTextBox ID="ntbQtySA" runat="server"
            CssClass="rounded" Width="60px" Culture="en-GB"
            DbValueFactor="1" ResolvedRenderMode="Classic" AutoPostBack="false"
            Text='<%# DataBinder.Eval(Container, "DataItem.Qty_SA") %>'
            TabIndex="7">
            <NegativeStyle Resize="None" />
            <NumberFormat DecimalDigits="0" ZeroPattern="n" />
            <EmptyMessageStyle Resize="None" />
            <ReadOnlyStyle Resize="None" />
            <FocusedStyle Resize="None" />
            <DisabledStyle Resize="None" />
            <InvalidStyle Resize="None" />
            <HoveredStyle Resize="None" />
            <EnabledStyle Resize="None" HorizontalAlign="Right" />
        </telerik:RadNumericTextBox>
    </td>
</tr>

My Validation is triggered by a standard ASP CustomValidator:

<asp:CustomValidator ID="cvNtbQty" runat="server" ForeColor="Red"
                ControlToValidate="ntbQty"
                ClientValidationFunction="ntbQty_FieldValidate"
                ErrorMessage="Number of Licences must be greater than or equal to the number of SA Licences">
</asp:CustomValidator>

The Javascript to perform the validation is in a linked script file within a RadScriptBlock:

<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
 
    <script src="../Scripts/EditValidation.js" type="text/javascript"></script>
 
</telerik:RadScriptBlock>

and which contains this validation function:

function ntbQty_FieldValidate(sender, args) {
    var ntbQtySA = $find("<%= ntbQtySA.ClientID %>");
    var rtbProductGroup = $find("<%= rtbProductGroup.ClientID %>");
 
    if (rtbProductGroup.get_value().toUpperCase() != "CONSULTANCY") {
        if (sender.get_value() < ntbQtySA.get_value()) {
            args.isValid = false;
    }
}

 

I have a break a the 'if' statement in FireBug and this is hit so I know the script is being executed but when I look at the 2 vars 'ntnQtySA' and 'rtbProductGroup' both are null.

 

There's probably a simple solution bu as I said, my JavaScript is very basic currently.

Thanks,

Kyle

CP
Top achievements
Rank 1
Iron
 answered on 04 Oct 2016
3 answers
218 views
Hi,

I don't believe the equation editor is included within the RadEditor for MOSS.

Will it be a new add-on feature in the future?

thanks,
Vincent
Sneha
Top achievements
Rank 1
 answered on 04 Oct 2016
2 answers
98 views

Hi,

I have a grid with column freeze, and auto generate columns false. After I change one column order I am trying to rebind the grid to another datasource that doesn't contains that column and I have an error: "Cannot find a column with UniqueName 'MyColumn'". If I don't do reorder columns everything works fine.

Tiberiu
Top achievements
Rank 1
 answered on 04 Oct 2016
6 answers
138 views
Dear Telerik

What a great new update! Thanks. Just a short question about the rating ctrl:

What I would like to have is that an user selects a whole item (e.g. 3 stars, 4 stars ,...),
but the initial value is a precise interpretation of the average of the ratings.

e.g.
2 polls, rating precision set to "whole item":
person a: 4 stars
person b: 5 stars
--> the average of 4.5 will be displayed as 5 stars (always rounds)
--> I'd favor it would show exact as 4.5 stars

Can I somehow code that the rater selects whole items, the result is displayed exact?

Regards,
phil
Marin Bratanov
Telerik team
 answered on 04 Oct 2016
3 answers
139 views

Hi,

Please can you advise me on how to add an image to a task bar?

The idea is that each task may have some notes associated with it. These notes will provide instructions to the user on how to perform the task.

If the task does have notes associated with it, I would like to show an icon in the task bar The user will click the icon and a dialog containing notes will appear.

There is a sample that does have images in the RadGannt, however, the source is not complete. The RadGant mark-up makes reference to two GanntCustomFields called "Color" and "Manager".

Hopefully this is a simple requirement.

I have attached a mock-up that illustrates my requirement.

Kind regards

Rob

Ivan Danchev
Telerik team
 answered on 04 Oct 2016
1 answer
218 views

I am trying to highlight text in radgrid batch edit cell using javascript, but i have set focus for the cell and i am unable to highlight the text .

Please give me some suggestion.

Eyup
Telerik team
 answered on 04 Oct 2016
1 answer
122 views

Hi Telerik..

I have a RadWindow dynamically loaded from code behind and on OnClientShow method I am adding a custom button, which opens another .aspx page in new modal window...

This works fine in Chrome and Firefox but It is not working in Internet Explorer..  I can't even click on the button in I.E. Double clicking this button maximize the window  (only in I.E.)

This is really really urgent .. please advise....

Regards,

Nick..

Nick
Top achievements
Rank 1
 answered on 03 Oct 2016
3 answers
133 views
I using Editor upload Image, Document but it not working, how to check error detail and fix it. Thanks
Rumen
Telerik team
 answered on 03 Oct 2016
6 answers
616 views

Hi All,

Here's my issue, I have a parent form that has a bounded radcombobox, a grid that get bind from the radcombobox and a button that open a radwindow.

The radwindow contains only one textbox with a save button.

The scenario should be as follow once you open the radwindow, enter a new value in the textbox and save. the popup should be close then do a postback and rebind the radcombobox that is in the parent form so that the new values are available.

Can somebody help me.

Thanks in advance.

 

Pabitra
Top achievements
Rank 1
 answered on 03 Oct 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?