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

I use exempel "Scheduler - Using RadToolTip"

How can I integrate/use my own database fields for example:

If apt.MyField.ToString() = "Ja" Then.....

 

 

Protected Overrides Sub OnPreRender(e As EventArgs)
    MyBase.OnPreRender(e)
 
    lblStartDate.Text = apt.Owner.UtcToDisplay(apt.Start).ToShortDateString
    lblEndDate.Text = apt.Owner.UtcToDisplay(apt.[End]).ToShortDateString
 
    lblRubrik.Text = apt.Subject.ToString()
    lblBeskrivning.Text = apt.Description.ToString()
 
    If apt.Description.ToString() = "" Then
        hlVisa.NavigateUrl = "appointment.aspx?id=" & apt.ID.ToString()
    End If
End Sub

Dimitar Terziev
Telerik team
 answered on 11 Aug 2015
1 answer
97 views

Hello,

 I have tried to put the radgrid inside the Radcombox and in radlistbox but none of them are working. In code behind file, I am not able to access the radgrid for data bound. Is there any way to achieve this ?

Thanks

 

Eyup
Telerik team
 answered on 11 Aug 2015
1 answer
470 views

Hi,

We have a asp.net project where I put a RadCaptcha on an ASP.NET page (using VS2013).

We have the latest version of ASP.NET tools installed.

When trying to run the application where the web is located, the RadCaptcha image is not showing up.

The web.config has the following items:

Under System.Web

<httpHandlers>
<add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
</httpHandlers>

Under System.WebServer

<handlers>
<remove name="Telerik_Web_UI_WebResource_axd"/>
<add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode"/>
</handlers>

 

Thanks.
Misho
Telerik team
 answered on 11 Aug 2015
3 answers
100 views
Hi. Is there any way to add HyperLink to a Shape or to the text in a Shape? Is it possible to implement this functionality with a customized Shape? If so, how ​can I do it? Thank you so much!
Vessy
Telerik team
 answered on 11 Aug 2015
26 answers
901 views
Documentation
A comprehensive set of documentation articles for all ASP.NET AJAX controls, common framework as well as full API Reference with code snippets. Details for all features, properties, methods and events are provided including a rich set of "how-to" and troubleshooting topics. Check the Online Documentation or download the CHM set.
Danail Vasilev
Telerik team
 answered on 11 Aug 2015
2 answers
72 views

Hi,

I have a page that contains a RadEditor control that shows the XHTML Validator button.  My problem is that the web server the site is running on in prod has blocked outgoing traffic except through a proxy.  Without the proxy details, the connection fails and I get an error page displayed.

How can I specify a proxy url and port to be used by RadEditor or more specifically, the XHTML Validator when performing it's checks?

Thanks

Stanimir
Telerik team
 answered on 11 Aug 2015
3 answers
395 views

I have a page which contains a batch mode grid (created declaratively in the aspx file) and all of the code to support the grid.  This grid page is contained within an IFrame in various pages on the site.  Depending upon which page is hosting the IFrame, we want to override the behavior of the grid so that the columns are read-only.  The default behavior allows the columns to be edited, but when the grid is included within certain pages, we want all of the columns to be read-only. 

Using (column as GridBoundColumn).ReadOnly = true; during the server-side PreRender event can fail if the column type is GridTemplateColumn (with Object reference not set).  That said,  I know I can respond to the BatchEditOpening event and use args.set_cancel(true) to prevent users from editing cells, but was hoping for a simple server-side solution to change the column to read-only. 

For the moment, I am responding to the PreRender event and testing for ColumnType before setting the column to read-only.  That just happens to work for me since the only GridTemplateColumn column is declaratively set to ReadOnly and all of the other column types seem to work.  However, that seems error prone.  Is there a way to easily set every column to read-only in my c# code?

Thanks.

Mike
Top achievements
Rank 1
 answered on 10 Aug 2015
2 answers
126 views

Hi,

 

When I use the bootstrap theme, the columns run over each other as in the screen shot.

The same grid using any other theme looks fine.

Pavlina
Telerik team
 answered on 10 Aug 2015
1 answer
315 views

Hello

I have enabled All in the paging options with the RadGrid using this code: 

<PagerStyle EnableAllOptionInPagerComboBox="true" />

How would I default the paging to "All"? I tried PageSize="All" in the RadGrid tag but it throws an error. 

 

Cannot create an object of type 'System.Int32' from its string representation 'All' for the 'PageSize' property.​

 

Eyup
Telerik team
 answered on 10 Aug 2015
3 answers
352 views
Hi,

Here is the situation: I have a RadComboBox (not LoadOnDeman) which is filled with values when I load the page:

<telerik:RadComboBox ID="drpCollectingScript" runat="server" Height="150px" Width="225px"
DropDownWidth="360px" HighlightTemplatedItems="true" Filter="Contains" AutoPostBack="False"
MarkFirstMatch="true" OnClientKeyPressing="setHighlightedItem"
OnClientBlur="setId" OnClientFocus="toggleRadCombo" ViewStateMode="Enabled">
  <HeaderTemplate>
    <table style="width: 340px" cellspacing="0" cellpadding="0">
      <tr>
        <td style="width: 340px;">
          <asp:Label ID="lblCSCode" runat="server">Code</asp:Label>
        </td>
      </tr>
    </table>
  </HeaderTemplate>
  <ItemTemplate>
    <table style="width: 340px" cellspacing="0" cellpadding="0">
      <tr>
        <td style="width: 340px;">
          <%# DataBinder.Eval(Container, "Attributes['Code']")%>
        </td>
      </tr>
    </table>
  </ItemTemplate>
</telerik:RadComboBox>

CodeBehind:

If Me.IsPostBack = False Then
  Dim scripts = New CatalogService().GetAllScriptTips()
  For i As Integer = 0 To scripts.Count - 1
    Dim item As New RadComboBoxItem()
    item.Text = scripts(i).Code
    item.Value = scripts(i).ScriptTipId
 
    item.Attributes.Add("Code", scripts(i).Code)
    item.Attributes.Add("Script", scripts(i).ContentDesign)
    drpCollectingScript.Items.Add(item)
    item.DataBind()
  Next
End If

The problem is that if I don't make a Postback that refreshes the table element in which the RadComboBox is contained (using RadAjaxManager) within aproximately 2 minutes after loading the page, then the RadComboBox loses all of its items and this problem extends aswell to the asp:DropDownList controls which are contained within the same table element.

So, what's the problem here? What can I do to solve this problem?
Ivan Danchev
Telerik team
 answered on 10 Aug 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?