Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
82 views
Hi all :)


I have a grid that contain date, time, user ID and other columns 

I don't want to update date, time, ID manually, can I make the system using some code inter the system date and time ?

and take the ID from a session ?

please help me with this 



thank you all :)
Hamza
Top achievements
Rank 1
 answered on 16 Sep 2011
2 answers
555 views
Hi all,

I'm trying to set both the background color and image of a TreeView node by binding to fields that are returned in my datasource.

In the sample code beneath, the CssClass is correctly bound and my background color is set as required. However, the treenode image is NOT correctly displayed.

<telerik:RadTreeView ID="RadTreeView3" runat="server" DataSourceID="dsTreeSQL" DataFieldID="UniqueId"
    DataFieldParentID="parentid" DataTextField="NodeText" >
    <ContextMenus>
    </ContextMenus>                   
    <DataBindings>                       
        <telerik:RadTreeNodeBinding CssClassField="CssClass" />
        <telerik:RadTreeNodeBinding ImageUrlField="ImageURL" />
    </DataBindings>
</telerik:RadTreeView>

If I reverse the data bindings so that they look like this, the treenode image is correctly applied but the CSS class is not applied.

<DataBindings>                       
    <telerik:RadTreeNodeBinding ImageUrlField="ImageURL" />
    <telerik:RadTreeNodeBinding CssClassField="CssClass" />
</DataBindings>

Is there anything that I can do to apply both a treenode image and CSS class?

The important thing for me is to be able to apply a treenode *background color* and image so any suggestions of how to work around this (perhaps by not using a CSS class) would be appreciated.

Many thanks,
Tim
Tim
Top achievements
Rank 1
 answered on 16 Sep 2011
7 answers
185 views
Hello,

When user right click on RadTree node this node is highlighted.
When then user move mouse pointer to context menu the node is not highlighted.
After clicking to any context menu option there is no selected node.
In a code there still possible to find which one node triggered event and work with it.
Here is solution to fix lost node:
ASP.NET:
<telerik:RadTreeView OnContextMenuItemClick="nodeContextServerItemClicked"
 ID="treeView1" Runat="server" ></telerik:RadTreeView>
C#:
protected void nodeContextServerItemClicked(object sender, Telerik.Web.UI.RadTreeViewContextMenuEventArgs e)
{
 if(treeView1.SelectedNodes.Count < 1) e.Node.Selected = true;
}

It needs to check if the number of selected nodes less than 1 because if user selected at least one node then need really lose right clicked node.
This looks like a bug that need to be fixed from Telerik.

Sincerelly,
Ildar Sadykov
Plamen
Telerik team
 answered on 16 Sep 2011
1 answer
192 views
That's right, an ASP.NET Ajax control in MVC. I know I know, there are Telerik MVC controls but the Telerik MVC grid doesn't have everything I need so I'm dead set on using the ASP.NET Ajax control.

Anyways, I have the RadGrid up and running great. The problem occurs when I enable all the bells and whistles such as paging, sorting, filtering etc. It looks like it puts the group by/filter/sort data in an eventargument post variable:

__EVENTARGUMENT  FireCommand:2$RadGrid1$ctl00;GroupByColumn;Dialog

In my case, when the page reloads, nothing changes. Is there something I should enable for this to work in MVC? I have followed the instructions at http://www.telerik.com/help/aspnet-ajax/mvc-getting-started.html but this doesn't come up. The example in the previous url doesn't have all the bells and whistles, so I'm assuming there are additional steps I need to take to get this to work.

Thanks!
Levi
Top achievements
Rank 1
 answered on 16 Sep 2011
5 answers
70 views
Hello,
In template column InstantiateIn method I add some control and assign a handler for its DataBinding event. Next, I fire grid edit and update commands from client side. On server side, when ItemCommand event fires, I try to set e.Canceled to false depending on some conditions. But right after that all editor controls become empty. Their DataBind event never fired. What can I do about that?
Thank you.
Dmitry
Top achievements
Rank 1
 answered on 16 Sep 2011
3 answers
118 views
Dear Sir,

i have taken a Rad DatetimePicker Control. When i set a date client side using javascript, it does not give error but selected date is not showing in control. I have used update panels.
javascript code is as follows:

$find(

'<%= rdCallbackDate.ClientID %>').set_minDate(callbackDate);

 

 

$find('<%= rdCallbackDate.ClientID %>').set_selectedDate(callbackDate);

 

$find(

'<%= rdCallbackDate.ClientID %>').get_dateInput()._initialValue = callbackDate;

and control markup is as follows:

 

<

asp:UpdatePanel ID="up" runat="server">

 

 

<ContentTemplate>

 

<telerik:RadDateTimePicker ID="rdCallbackDate" runat="server" Skin="Hay" DateInput-DateFormat="dd MMM yyyy HH:mm"

 

 

 

 

Width="220px" AutoPostBackControl="Calendar">

 

 

 

 

</telerik:RadDateTimePicker>

 

 

 

 

 

</ContentTemplate>

 

</

asp:UpdatePanel>

 

 

Kindly resolve my problem..

Thanks & regards
Briendra Pandey    

Daniel
Telerik team
 answered on 16 Sep 2011
3 answers
59 views
Dear Telerik Team,

we would like to ask you for the difference by these two known approaches: (in order to append nested items)

Code Snippet #1:

<telerik:RadPanelBar runat="server" ID="RadPanelBar1" Width="100%">

    <Items>

        <telerik:RadPanelItem Expanded="True" Text="Example1" Selected="true">

            <Items>

                <telerik:RadPanelItem Value="" runat="server">

                    <ItemTemplate>


Code Snippet #2:

<telerik:RadPanelBar runat="server" ID="RadPanelBar1" Width="100%" Height="100%">

<Items>

                  <telerik:RadPanelItem Text=" Example2">

                  <ContentTemplate>


Both of mentioned constructions work fine, and their final visual results seem be the same and desired, as well. We've determined that construction shown on the first code snippet is mostly used on your official telerik examples websites. However, we found the second approach in addition.

Can you provide us some advice or evaluation about advantages/disadvantages of mentioned approaches (which of them is better and why),   please?
Thank you in advance.

Regards,
SCT

SCT
Top achievements
Rank 1
 answered on 16 Sep 2011
1 answer
124 views
Hi,

I am trying to use the controls on a touchscreen page.

I would like to be able to change the width of the scrollbar for the radcombobox. It appears to be a DIV (rendered), but how do I access the properties to amend the width, is it possible?

Cheers

Tox
Kalina
Telerik team
 answered on 16 Sep 2011
4 answers
250 views
We have a grid with keyboard navigation turned on and a GridClientSelectcolumn with a check box for selecting. When we use keyboard navigation the focus of the checkbox does not move with the selected row. Therefore when I press the space bar the row that has the checkbox with the focus is selected and the grid scrolls back to that row. Is this expected behavior. I would think the focus would be cleared or at the very least move with the selected row.

Don
Pavlina
Telerik team
 answered on 16 Sep 2011
7 answers
239 views
Hi,

I'm trying to customize a rad grid and everything is going fine expected that I can't apply styles to alternate row for hover or selected.
I'm using a hover row style and a selected row style and they both work until you hover over the alt row or try to selected the alt row,
nothing happens. I attached a sample image to give you an example.
.rgRow,.rgRow td
      {
          height:25px;
      }
      .rgAltRow,.rgAltRow td
      {
          height:25px !important ;
          background-color: #F0F6FD;
          border:none!important;
          background-image : none!important;
      }
      .rgSelectedRow,.rgSelectedRowtd
      {
          background-color: yellow !important;
          background-image : none!important;
          color:Black !important;
      }
      .rgHoveredRow
      {
          background-color: red !important;
           background-image : none!important;
      }
Thanks,
Princy
Top achievements
Rank 2
 answered on 16 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?