Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
104 views
Hello,

Currently I'm facing a small problem with the RadInputManager. Somehow when I call clientside an onSubmit on the RadInputManager my inputsettings are not validated / are not triggered. I'm still unable to find the problem what is causing this. Maybe there is a slight chance that you can provide me with an answer?

Environment: Visual Studio 2010
.NET Framework: 3.5
Version: 2012.1.411.35

Declaration of the radinputmanager:

<telerik:RadInputManager ID="InputManager" runat="server" EnableEmbeddedScripts="false" EnableEmbeddedBaseStylesheet="false" EnableEmbeddedSkins="false" RegisterWithScriptManager="false">
    <telerik:RegExpTextBoxSetting Validation-IsRequired="false" InitializeOnClient="true" ValidationExpression="^[0-9]+$"> 
    </telerik:RegExpTextBoxSetting>
    <telerik:TextBoxSetting Validation-IsRequired="true" InitializeOnClient="true">
    </telerik:TextBoxSetting>
    <telerik:TextBoxSetting Validation-IsRequired="true" InitializeOnClient="true">
         <Validation IsRequired="true" ValidateOnEvent="All"/>
    </telerik:TextBoxSetting>
    <telerik:TextBoxSetting Validation-IsRequired="true" InitializeOnClient="true">
         <Validation IsRequired="true" ValidateOnEvent="All"/>
    </telerik:TextBoxSetting>
</telerik:RadInputManager>

Declaration in javascript:
    // Validates the object data
    // @return void
    this.validate = function () {
        var result = true;

        // Get the input manager
        var inputManager = $find("<%=InputManager.ClientID%>");

        // Do already a submit to make sure that all validations are triggered
        inputManager._onSubmit();

        // Get the current settings of the input manager
        var settings = inputManager._getSettings();

        // Start validating all settings
        for (var setting in settings) {
            if (!this.validateInputField($find(setting))) {
                result = false;
                break;
            }
        }

        return result;
    };

    // Validates a input field
    // @param setting: The setting to validate
    // @return bool: True when the setting was valided successfully
    this.validateInputField = function (setting) {
        var result = true;

        for (var input in setting._inputs) {
            result = !setting._inputs[input]._invalid;

            if (!result) {
                break;
            }
        }

        return result;
    };

What am I doing wrong? :)
Michiel
Top achievements
Rank 1
 answered on 20 Jul 2012
6 answers
207 views
Hi I need a hand in setting up a timeline view.
Basically what I need is a full week displayed, at hourly intervals.  I have this setup correctly and is displaying fine, but what I want to do is limit the slots for each day, to display from 8am to 6pm for each day.  If I put in starttime as 8:00 then the first day starts at 8:00, but day 2 starts at 00:00.

I have attached a screen shot of what I mean, can someone guide me on this.
Many thanks


Ivana
Telerik team
 answered on 20 Jul 2012
5 answers
193 views
I have a RadTreeView which is defined thus:

<telerik:RadTreeView ID="radTreeView" runat="server" Width="100%" EnableDragAndDrop="true" EnableDragAndDropBetweenNodes="true"

OnNodeClick="radTreeView_OnNodeClick" OnClientNodeCollapsing="OnClientNodeCollapsing"

OnNodeDrop="radTreeView_OnNodeDrop">

 

<WebServiceSettings Path="BuildTrgMP.aspx" Method="GetChildNodes" />

 

</telerik:RadTreeView>

I have a web service method which populates the tree when nodes are clicked.
The page in question accepts an id in the query string and the id represents the Value of a node in the tree which can be any node in the tree.
The idea is that when the page starts, the user is placed in the tree with the tree expanded and the node with the parameter id selected.
The problem is that there seems to be a conflict between nodes loaded client side by the webservice and nodes loaded server side in page load ie doing expands and searches for nodes server side doesn't find anything because they haven't been loaded client side.
If I code to populate the heirarchy server side in Page_Load, when the page appears, no nodes are expanded, although if I expand them, I come to my selected node. It almost as if having webservice loading conflicts with server side loading.

So to get back to the requirements:
- I have a tree which loads branches using the webservice 
- When the page loads, in Page_Load I want to be able to set a currently selected node (which can be anywhere in the tree and at any level) and I want the tree hierarchy to it to be expanded (all other paths can be collapsed)

How do I do it please ?

Thanks + regards

Graham Plowman

Plamen
Telerik team
 answered on 20 Jul 2012
3 answers
123 views
Hi
I am currently using the scheduler to display a list of users and their weekly activities, this works fine, however, ideally I would like to set a start and end time for each day ie. from 07:00 to 19:00 for each day of the week, if I set a start time of 07:00 it appears for the first day only.
Is it possible to achieve this?

Thanks for your help.

Karl.
Ivana
Telerik team
 answered on 20 Jul 2012
3 answers
111 views
I am having issue with mouse over image when using Office2007 skin.

Height of the image is not proper as height of the item.

Please find attached screenshot for the same.
Kate
Telerik team
 answered on 20 Jul 2012
4 answers
122 views
I have a problem that I am having trouble finding a solution for:

I have a web app using Windows Authentication and one of the forms has a RadComboBox control for which I want to populate by means of a WCF service call.

I've configured everything according to the tutorial instructions, and that works fine. My problem is that I need to pass the user's Windows security credentials to the service call to extract the username of the user.

When I configure the webHttpBinding to use Transport or TransportCredentialsOnly:

<webHttpBinding>
        <binding name="webHttpBindingConfiguration" 
                 maxBufferPoolSize="2147483647" 
                 maxBufferSize="2147483647" 
                 maxReceivedMessageSize="2147483647">
          <readerQuotas maxDepth="2147483647" 
                        maxStringContentLength="2147483647"
                        maxArrayLength="2147483647" 
                        maxBytesPerRead="2147483647" 
                        maxNameTableCharCount="2147483647" />
          <security mode="TransportCredentialOnly">
            <transport clientCredentialType="Windows"></transport>
          </security>
        </binding>
</webHttpBinding>

the service call fails. Fidder2 shows a Interal Server Error (500) and:

"No Proxy-Authorization Header is present."

"No Authorization Header is present."

I cannot find any guidance for using Windows Authentication for these service calls.

If it is not possible to use Windows Authentication with these calls, can I intercept the RadComboBoxContext object and add an entry with the user's username before the call is made, so I might extract it in the service method?

Your assistance is greatly appreciated.

Charlie

Genady Sergeev
Telerik team
 answered on 20 Jul 2012
3 answers
127 views
I´ve got a treelist and added a template column as below

<telerik:TreeListTemplateColumn HeaderStyle-Width="70px" 
                                HeaderText="Usuer" ItemStyle-HorizontalAlign="Center" ReadOnly="True" 
                                SortExpression="User" UniqueName="User">
                                <ItemTemplate>
                                    <asp:ImageButton ID="ImageButton1" runat="server" 
                                        CommandArgument='<%# Eval("IdUser") %>' Height="20" 
                                        ImageUrl="~/Styles/images/user.png" 
                                        OnClick="ImageButton1_Click" Width="20" />
                                </ItemTemplate>
                                <HeaderStyle Width="70px" />
                                <ItemStyle HorizontalAlign="Center" />
                            </telerik:TreeListTemplateColumn>

In the ItemDataBound event (treelist) I add the item to RadToolTipManager

ImageButton item = (ImageButton)((Telerik.Web.UI.TreeListDataItem)e.Item).FindControl("ImageButton1");
//Add the button (target) id to the tooltip manager
this.RadToolTipManager1.TargetControls.Add(item.ClientID, item.CommandArgument.ToString(), true);

MY PROBLEM IS WHEN I EXPAND A ROW TO SHOW THE CHILD ITEMS, THE TOOLTIPS DO NOT UPDATE, AND SHOWS THE INFORMATION OF THE LAST ITEM WHICH WAS IN THAT ROW.

Thanks!.
Andrey
Telerik team
 answered on 20 Jul 2012
1 answer
134 views
I have a situation similar to this.  In my case, I have a DataTable with pairs of companion rows.  When first presented to the user. every second row (the latter of the pair) needs to be hidden.  Then if the user checks a checkbox, its companion row below it will be displayed.

From the Page_PreRender event handler, I call a method that populates the DataTable. Then later in that method it is bound to the RadGrid thusly:

      radGrid.DataSourceID = null;<br>      radGrid.DataSource = dataTable;<br>      radGrid.DataBind();<br>

Also defined is an ItemDataBound event handler.  Here's the beginning of it:

    protected void radGrid_ItemDataBound(object sender, GridItemEventArgs e)<br>    {<br>      if (e.Item is GridDataItem)<br>      {<br>        GridDataItem item = (GridDataItem)e.Item;<br>

I then used assorted logic within the ItemDataBound event handler to determine whether the given row should be hidden.  I do so with this statement:
                                item.Visible = false;

The statement is definitely executed and the visibility of 'item' is definitely set to 'false'.  But yet, when the screen appears, no rows are hidden.

What am I doing wrong?

Robert

P.S. Note: Back in the method called from Page_PreRender, right after radGrid.DataBind() I added this code as a test:

        foreach (GridDataItem item in radGrid.Items)<br>        {<br>          if ((item.ItemIndex % 2) == 1)<br>            item.Visible = false;<br>        } <br>

And lo and behold, it worked!  BUT I sure would love an explanation as to why my original approach did not!





Shinu
Top achievements
Rank 2
 answered on 20 Jul 2012
3 answers
161 views
Welcome all,
I am new here being happy owner of ASP.NET product. First question which helps me start quickly working with telerik. I have in many my asp pages schema: DetailsView to insert records and then GridView to display them. What will be the most efficient telerik replacement for such combo?
Additional question What will be the fastest way to display records from db based on some search criterias.
Thanks for any tip. 
Princy
Top achievements
Rank 2
 answered on 20 Jul 2012
3 answers
143 views
I have a radeditor inside a jquery tab window, the editor is creating duplicate iframes or divs to display the content in - one below the other, but only one set of toolbars are being presented.  The app is bombing out on saving the content to db.  
The browser is IE9.  I'm using Q2 2012 controls.  Has anyone seen and been able to rectify this problem??
thanks.
Morgan
Top achievements
Rank 2
 answered on 20 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?