Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
169 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
159 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
163 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
178 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
176 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
3 answers
255 views
Hi friends, I am trying to add a target url for the icon image, being used for child nodes.

I want something like this :

<Parent Node name and hyperLink>
|
|
|--<icon imageUrl hyperLink or TargetUrl> <childNode value caption/text/label>
|--<icon imageUrl hyperLink or TargetUrl> <childNode value caption/text/label>
|--<icon imageUrl hyperLink or TargetUrl> <childNode value caption/text/label>

I tried embed CSS, Javascript / jQuery but could not get it.

Thanks in advance for your help :-)
Princy
Top achievements
Rank 2
 answered on 20 Jul 2012
15 answers
489 views
Hi,

I am using RadGrid to display records, RadContextMenu is associated with it, the application is developed in ASP.NET.
Which event shouid i use to get the griddataitem object or how can i get the rowindex/coulumn name or cell which is clicked.

I tried using the GetClickedElement but it does not support asp.net i guess. Please help.

Thanks in advance.
Yogesh
Top achievements
Rank 1
 answered on 20 Jul 2012
2 answers
149 views
Hi,
Im using Telerik version Q2 2010.
In my application I want to add RadRating control within repeater. following is my code

<

 

 

asp:repeater ID="rptAssetList" runat="server">

 

<HeaderTemplate>

 

<ul>

 

</HeaderTemplate>

 

<ItemTemplate>

 

<li class='<%# Eval("AssetClass") %> clear-both'>

 

<p class="asset-name" title='<%# Eval("AssetToolTip") %>'>

 

<a href="javascript: {};" onclick='javascript:GetResource(<%# Eval("AssetDownloadID") %>)'><%# Eval("AssetName") %></a>

 

<img id="imgPrivate" src="../../../Common/Images/lock-icon.gif" width="10" height="10" runat="server" visible='<%# Eval("ImageVisibility") %>' meta:resourcekey="imgPrivate" />

 

</p>

 

</li>

 

<rad:radrating id="rdrRating" autopostback="true" runat="server" orientation ="Horizontal" itemcount="5" selectionmode ="Continuous" value =5></rad:radrating>

 

</ItemTemplate>

 

<FooterTemplate>

 

</ul>

 

</FooterTemplate>

</

 

 

asp:repeater>

It displays ating as in attached image. (like numbers vertically  (1. 2. 3...)

If anyone have idea about this issue please let me know asap.

Thanks in Advance

AKJ

Aruni
Top achievements
Rank 1
 answered on 20 Jul 2012
0 answers
152 views
Hi Guys,

Here i am getting the following error:

Field record in a database as DateTime field 2012-07-03 00:00:00.000


Value of '3/07/2012 12:00:00 AM' is not valid for 'SelectedDate'. 'SelectedDate' should be between 'MinDate' and 'MaxDate'. Parameter name: SelectedDate. 

The weird thing is it work the first time and the second or it randomly failed sometime in the second or third attempt.



<telerik:RadDatePicker ID="dtParticipationEnd" runat="server" AutoPostBack="true"
Skin="Office2007" DateInput-DateFormat="dd MMM yyyy"
DateInput-Width="20px" DateInput-CssClass="controlText" DateInput-Enabled="true"
MinDate="01/01/1000" MaxDate="01/01/3000">
</telerik:RadDatePicker>

None the following which i have tried worked. 
 if (this.participationEntity.ParticipationEnd != null)
 {
                    string participationEnd = ((DateTime)this.participationEntity.ParticipationEnd).ToShortDateString();
                    dtParticipationEnd.DbSelectedDate = participationEnd;
 }
 else
 {
                    dtParticipationEnd.DbSelectedDate = null;
  }

Second option i tried:
if (this.participationEntity.ParticipationEnd != null) dtParticipationEnd.DbSelectedDate = this.participationEntity.ParticipationEnd;


Mark de Torres
Top achievements
Rank 1
 asked on 20 Jul 2012
2 answers
165 views
Hi ,
I have an old version (2.7.2.0) of telerik combo box dll. This DLL works well with .Net framework 2.0. But When i am using with .Net 4.0 it gives javascript error.

function

RadComboBox(_11,_12,_13){

var

_14=window[_12];

if

(_14!=null&&!_14.tagName){

 

_14.Dispose();

}

I am getting error on _14.Dispose() method. "Microsoft JScript runtime error: Object doesn't support this property or method". Please let me know why this error i am getting with .net framework 4.0 and how i can fix it.

Thanks in advance. 

Xafir
Top achievements
Rank 2
 answered on 19 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?