Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
135 views
Hi!

I'm using a RadGrid with a manual code behind handler to save (update and insert) the data from the Grid Command.  However, I've been asked to additionally create a button at the bottom of the form which will duplicate (not replace) these functions as well to give users more confidence.  Doing it on the Command eventhandler is very easy, however I'm not sure how to perform the same functions outside of the handler.  Could you give me some advice/direction on this?

Thanks!
-P
Jayesh Goyani
Top achievements
Rank 2
 answered on 22 Apr 2011
2 answers
185 views
Hello,
In the Edit form, is there a way to change whether an item is visible in the edit form through code.  I know that you can set the property of the column to read only, but how would you do that in default.aspx.cs

Thank you.
Nguyen
Top achievements
Rank 1
 answered on 22 Apr 2011
1 answer
62 views
Hey,

I am reusing the exact example in the following telerik demo RadGrid with UC.
The one and only change I made is that I reload my Combobox from a database. Everything works fine when Editing an existing row, but when I hit the "Add new Record", the RadComboBox gets the same values twice. I tracked this in the debug mode, and the RadComboBox shows the correct items count, but when rendered in the page, it is X2.

here is the only code I changed from the above example, I am using 2010 Q3.

Private Sub Page_DataBinding(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.DataBinding
 
      Me.CmDealer.Items.Clear()
      Me.CmDealer.AppendDataBoundItems = True
      Me.CmDealer.Items.Add(New ListItem("", "0"))
 
      Me.CmDealer.DataValueField = "ID"
      Me.CmDealer.DataTextField = "Name"
      Me.CmDealer.DataSource = DataManager.GetDealers()
      Me.CmDealer.DataBind()
 
      Dim dealer As Object = DataBinder.Eval(DataItem, "IDDEALER")
 
      If dealer.Equals(DBNull.Value) Then
          CmDealer.SelectedValue = 0
          Return
      End If
 
      CmDealer.SelectedValue = CInt(dealer)
      CmDealer.DataSource = Nothing
 
      ''''''''''''''''''''''
 
      Me.CmManager.Items.Clear()
      Me.CmManager.AppendDataBoundItems = True
      Me.CmManager.Items.Add(New ListItem("", "0"))
 
      Me.CmManager.DataValueField = "ID"
      Me.CmManager.DataTextField = "Name"
      Me.CmManager.DataSource = DataManager.GetManagers()
      Me.CmManager.DataBind()
 
      Dim manager As Object = DataBinder.Eval(DataItem, "IDMANAGER")
 
      If manager.Equals(DBNull.Value) Then
          CmManager.SelectedValue = 0
          Return
      End If
 
      CmManager.SelectedValue = CInt(manager)
      CmManager.DataSource = Nothing
 
  End Sub


What is wrong with my code?

Thanks in advance!
-Mahmoud
Mahmoud
Top achievements
Rank 1
 answered on 22 Apr 2011
2 answers
78 views
HI,
I have a RadComboBox as an EditItemTemplate field within FormView. That FormView is decorated using FormDecorator. That combobox is rendered totally weird (IE, Firefox) when DecoratedControls is set to GridFormDetailsViews. But, if FormView is not decorated it renders, of course, as it should. Any help?
asimptota
Top achievements
Rank 1
 answered on 21 Apr 2011
1 answer
352 views
Greetings,

We are dynamically creating a Menu using RadTreeView control and each node is binded with .aspx page. When a node is clicked, the whole page postbacks and redirects to the assigned .aspx page and the RadTreeView control(Menu) will be recreated. As the page postbacks, the selected node losts its focus and all the nodes are getting collapsed.

As per our requirement, We need to set the focus on the selected node and its parent node to be expanded, even if the page postbacks. Please help us on this.

We tried getting the selected node value on RadTreeView_NodeClick event and this event is not firing consistantly.

FYI, we are binding the RadTreeView control using LINQ on Page_Load event and below is the code for the same.
=======================

rtvMenu.Nodes.Clear();

rtvMenu.DataTextField =

 

"MENU_NAME";

 

 

rtvMenu.DataValueField =

 

"MENU_ID";

 

 

rtvMenu.DataFieldID =

 

"MENU_ID";

 

 

rtvMenu.DataFieldParentID =

 

"PARENT_MENU_ID";

 

 

rtvMenu.DataNavigateUrlField =

 

"LANDING_PAGE";

 

 

rtvMenu.DataSource = v_Menu;

 

rtvMenu.DataBind();

=======================

Nikolay Tsenkov
Telerik team
 answered on 21 Apr 2011
1 answer
54 views
Dear Sir/Madam,

I have to add new appointment for event for all day in java script. Please provide me client side api's. Also please provide me some examples. We are using ASP.NET 3.5 framework.
Please find the attachment for reference.
Nikolay Tsenkov
Telerik team
 answered on 21 Apr 2011
2 answers
134 views
Hello,

My RadSiteMap control is in a DIV and I would like to align it to the right of the DIV:

<div id="col3" style="Width:40%">
 <telerik:RadSiteMap ID="SiteMap1" runat="server" DataTextField="Text" DataNavigateUrlField="NavigateUrl">
 <DefaultLevelSettings ListLayout-RepeatDirection="Horizontal" SeparatorText=">" Layout="Flow" />
</telerik:RadSiteMap>
</div>

So, I have tried many overrides without success:

#SiteMap1 .Header, .rsmLevel, .rsmItem, .ContentHolder, .rsmTemplate, .rsmList, .rsmFlow etc
{
    text-align: right;
}
 
So, is there a way to override text-align ?

Thanks in advance.

Pierrick
Pierick Mellerin
Top achievements
Rank 1
 answered on 21 Apr 2011
8 answers
611 views
 Hi,

I am using the timeline view for RadScheduler. By default the scheduler has a fixed height and resource headers height is the total height divided by number of resources(see screen shoots). Is it possible to have the height of the scheduler to auto increase when new resources are added, so that the resources always has a fixed height? And if so how can I accomplish that?



Thank you,
Anders
Anders
Top achievements
Rank 1
 answered on 21 Apr 2011
6 answers
113 views
Surprised i've only just noticed this. But in my master page, i have a conditional CSS statement that loads a different stylesheet if the user is using ie7 or below.

I've noticed that when a postback occurs, this stylesheet is always being loaded. For example, as far as i know ie7 & below don't support things like inline-block, so in my ie7 stylesheet i have all elements taht would be inline-block as inline. I'm doing this in firefox too, yet my ie7 stylesheet is loaded after a postback.

    <!--[if lte IE 7]><link href="stylesheet-ie7.css" rel="stylesheet" type="text/css" /><![endif]-->

Thats my conditional statement.

Very odd behaviour.

Alan T
Top achievements
Rank 1
 answered on 21 Apr 2011
1 answer
94 views
Hi,
I'm using radrotator. I have a image gallery and i want to show these images when user clicked them. I can do it but when images slides the clicked one not be shown. It waits for sliding stop.
Niko
Telerik team
 answered on 21 Apr 2011
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?