Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
317 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
1 answer
144 views

If you look at the first bullet point on this page http://docs.telerik.com/devtools/aspnet-ajax/visual-stylebuilder/overview it seems to indicate that it should be very easy to change the primary color scheme used in a theme, which to me sounds as though it should apply to all controls in that theme.  If this is the case can you explain to me how this would work?

 

Thanks.

Ivan Zhekov
Telerik team
 answered on 10 Aug 2015
2 answers
107 views

Hi,

 

In my app, I use all of the telerik themes (app lets user select which theme to use.) and I use RadWindows quite heavily.

And in all the other themes, the radwindow shows scrollbars vertically and horizontally correctly when needed.

In bootstrap theme, when I first open the window, there are never scrollbars, but if I maximize the window then restore size of window, the scrollbars are there.

Also, if there are no scrollbars and I do something that causes the page inside the window to postback, the scrollbars will come up.

 What's the deal?  I need those scrollbars on first load!

 

Thanks!

Misho
Telerik team
 answered on 10 Aug 2015
1 answer
51 views

Hi Team,

We are using Telerik 2014.2.724.40, while opening RadWindow using radopen method from client side, it is not opening properly. The window controls buttons are out of the window and getting vertical scroll bar.

 Can you please suggest if there is any fix or workaround for this.

 

Thanks,

Suresh.

 

Danail Vasilev
Telerik team
 answered on 10 Aug 2015
2 answers
168 views

Hello,

 

I am using a telerik scatter chart like this one my page http://demos.telerik.com/aspnet-ajax/htmlchart/examples/charttypes/scatterchart/defaultcs.aspx

I need to change the background to a gradient like this http://www.strangeplanet.fr/work/gradient-generator/?c=9:FF0000:FFEE00:00FC15

Is this possible? I currently have it hacked where I set the background property to transparent and put a gradient "image" in the back. 

Is there a way to use CSS, HTML, or server side script to change the gradient? I also need it to be diagonal.

 

Please help.

 

Max

Danail Vasilev
Telerik team
 answered on 10 Aug 2015
1 answer
117 views

I want to delete the selected uploaded file from the list on some condition.

Actually I want to allow only PDF files to be uploaded. As soon as I upload I am able to track the file extension and I am able to popup a message that this file is not valid but that file is uploaded and shows RED marked in the uploaded file list on top. I want that file should be removed from the list at that time itself.

Please help me out.

 

Ivan Danchev
Telerik team
 answered on 10 Aug 2015
5 answers
183 views
In the final example showing the use of custom ranges, ExtraLarge is defined twice. Shouldn't one of those lines be defining Large instead?
Dimitar
Telerik team
 answered on 10 Aug 2015
3 answers
174 views

Hello,

 

If you have a span tag at line 1 and press enter to create a new line it adds a span tag to a new line. See the video for details:

http://screencast.com/t/nseFoTTl

Is there a way to prevent this?

Elena
Top achievements
Rank 1
 answered on 10 Aug 2015
3 answers
141 views

To put it bluntly, is this possible? When I try and do it in design mode in Vis it simply crashes Vis. When you do it in source view and load the resulting page, when you click on a item in the second wizard it changes the first wizard.

 

I simply wanted to use it because the wizard is so much better than the tabs and multiview

Matthew Bishop
Top achievements
Rank 1
 answered on 10 Aug 2015
1 answer
202 views

We have a TreeView control that needs to load a lot of data, so we use on-demand mode.  We also require each node have a checkbox and save what the user checked in a database.  We can load the TreeView just fine.  The problem comes when saving.  Sometimes, not all the values from all the nodes are saved.  After doing some experimenting, I came determined the cause but cannot think of a simple solution.

 Here's the scenario to illustrate:

You come to a page with the TreeView control for the first time, expand a tree branch, say branch called "website1" and check the nodes under website1 that say "Homepage" and "Contact Us".  Then you click save and leave the page.  The database saves "Homepage" and "Contact Us" as expected.  Now you come back to the page, expand the node "website2" and check something there and click save.  The problem is the "Homepage" and "Contact Us" you selected from website1 the first time are no longer saved in the database as you did not expand the website1 branch.

When saving, we delete all previous values selected in the database and loop through the CheckedNodes collection to determine which nodes the user checked.  However, because you did not expand the website1 branch the second time, the TreeView will not have the 2 nodes checked due to on-demand mode.

 Does anyone have any ideas on what to do?

Plamen
Telerik team
 answered on 10 Aug 2015
Narrow your results
Selected tags
Tags
+124 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?