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

Hi,

I have a treeview that is built manually (no data-bind) using the metro theme. I'd like to set some node colours to red but neither of the two options below seem to have any effect?

ret.CssClass = "red";
 
ret.BackColor = Color.Red;
Al
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 14 Nov 2016
3 answers
103 views

 var node = new RadTreeNode(valuedata, textdata);
                                       
node.Checked = true;                      
                   
rddtboxBuisness.EmbeddedTree.Nodes.Add(node);

 

When adding nodes to the control I cant default the checkbox to true...

am I doing anything wrong ?

Ivan Danchev
Telerik team
 answered on 14 Nov 2016
2 answers
144 views

I'm trying to add data/item to a listbox with custom ClientItemTemplate where I'm not using Text or Value but using other variables.

<telerik:RadListBox ID="AlarmListBox" runat="server" Height="100%" Width="100%" RenderMode="Lightweight" ClientDataSourceID="AlarmClientDataSource" OnClientSelectedIndexChanged="OnListItemSelected">   
    <EmptyMessageTemplate>
        <asp:Label runat="server" Text="No Alerts"></asp:Label>
    </EmptyMessageTemplate>
     <ClientItemTemplate>
          <div class="alarm">
            <div class="alarm-wrapper">
                <img src="#: src #" class="img-responsive alarm-list-image" style="float: left" ;/>
                <dl class="alarm-list-details">
                    <dt class="name">#= type #</dt>
                </dl>
                <div style="clear: left" />
                </div>
            </div>
    </ClientItemTemplate>
</telerik:RadListBox>

At first, I was using the listbox without a data source and I was able to add to the data by setting the attributes of a new listboxitem from the client-side.

Then I wanted to use a dummy REST service to test populating results.

I was able to populate the listbox using the clientdatasource using "select" only.

Now I want to be able to use both functionality, to populate the listbox from the REST service and manually. I tried to add directly to the listbox but it failed because their is no attributes and when I added items to clientdatasource using add() method but the new item did not appear in listbox.

Which method of adding an item is correct bearing in mind that I want to update the results to the REST service eventually and how can it be done.

Omar
Top achievements
Rank 1
 answered on 14 Nov 2016
2 answers
113 views

I was trying to use a listbox with clientdatasource. But since the listbox cannot be rebinded yet, I decided to switch either grid or listview.

I was having some trouble selecting an item from listview so I'm using a grid with clientitemtemplate to fit by data into a single column.

What I want is to apply the ripple effect available when selecting an item in listbox to the grid,

so when I select a cell from the column it will have the ripple effect. 

if you can please provide me with a solution.

Omar
Top achievements
Rank 1
 answered on 14 Nov 2016
2 answers
98 views
hiii,
I want to show checkboxes only for child nodes of a radtreeview that is I want to hide checkboxes for parent nodes,how i can do that?


regards
Sri
Top achievements
Rank 1
 answered on 14 Nov 2016
1 answer
116 views

Hi,

I have a RadGrid with EditFormType="WebUserControl". In my usercontrol I have a custom validator to check the value and allow to update or not.

My problem is that  _dataItem is null on the CustomValidator_ServerValidate event.
I try this code :

public object DataItem
{
    get
    {
        return (object)ViewState["DataItem"];
    }
    set
    {
        ViewState["DataItem"] = value;
    }
}

But even with ViewState DataItem is always null (in CustomValidator_ServerValidate event).

Have you a solution ?

Eyup
Telerik team
 answered on 14 Nov 2016
3 answers
267 views
I am not able to change the height for rwzContent

<div class="rwzContent" style="height: 267px;"> 

Please suggest how to change the height of the rwzContent, and is it possible to get vertical scrollbar?

Thanks 
Ivan Danchev
Telerik team
 answered on 14 Nov 2016
2 answers
162 views
I am working on RadGrid. Somehow not able to find a css to distinguish sortable and non-sortable column. I need this because I wanted to underline only sortable columns.
Ravishankar
Top achievements
Rank 1
Iron
 answered on 11 Nov 2016
4 answers
408 views

I'm having an issue with date formats on the grid. I've read through lot's of related threads, but they don't seem to be correcting my situation. The date is display as: 11/03/2016T00:00:00

The page has the column defined as:

<telerik:GridDateTimeColumn UniqueName="RECORDSTARTDATE" HeaderText="Record Start Date" DataField="RECORDSTARTDATE" ShowFilterIcon="false"
    DataFormatString="{0:dd MMM yyyy}" DataType="System.DateTime" HtmlEncode="false" ItemStyle-CssClass="center"
    CurrentFilterFunction="GreaterThanOrEqualTo" HeaderStyle-Width="120px" />

 

The DataFormatString is defined as ="{0:dd MMM yyyy}" so my dates not coming out even close.

Any help would be appreciated.

 

 

 

 

 

 

Eyup
Telerik team
 answered on 11 Nov 2016
1 answer
132 views

I have two radlistbox inside of a radgrid, I want to use the transfer between this two radlistbox, but only works the first transfer, later if I want to transfer again it doesn't work in any direction. What am I missing?

Thanks!

 

<telerik:GridTemplateColumn HeaderText="Plants" UniqueName="Plants" Visible="false">
                        <EditItemTemplate>
                            <telerik:RadListBox Width="200px" RenderMode="Lightweight" runat="server" DataKeyField="PlantId"
                                ID="rdlPlants" EnableDragAndDrop="True" Skin="Bootstrap" SelectionMode="Multiple" AutoPostBackOnTransfer="true"
                                Height="200px" AllowTransfer="true" TransferToID="rdlSelectedPlants" OnItemDataBound="rdlPlants_ItemDataBound"
                                OnTransferred="rdlPlants_Transferred">
                                <ButtonSettings ShowTransferAll="false" ShowReorder="false"></ButtonSettings>
                                <ItemTemplate>
                                    <%# Eval("Pint").ToString() + " - "  + (Eval("Name1") != null ? Eval("Name1").ToString() : string.Empty) %>
                                </ItemTemplate>
                            </telerik:RadListBox>
                            <telerik:RadListBox RenderMode="Lightweight" Width="200px" ID="rdlSelectedPlants" runat="server"
                                DataKeyField="PlantId" Height="200px" Skin="Bootstrap" OnItemDataBound="rdlPlants_ItemDataBound">
                                <ButtonSettings ShowTransfer="false" ShowTransferAll="false"></ButtonSettings>
                                <ItemTemplate>
                                    <%# Eval("Pint").ToString() + " - "  + (Eval("Name1") != null ? Eval("Name1").ToString() : string.Empty) %>
                                </ItemTemplate>
                            </telerik:RadListBox>
                        </EditItemTemplate>
                        <InsertItemTemplate>
                            <telerik:RadListBox Width="200px" RenderMode="Lightweight" runat="server" DataKeyField="PlantId"
                                ID="rdlPlants" EnableDragAndDrop="True" Skin="Bootstrap" SelectionMode="Multiple"  AutoPostBackOnTransfer="true"
                                Height="200px" AllowTransfer="true" TransferToID="rdlSelectedPlants" OnItemDataBound="rdlPlants_ItemDataBound"
                                OnTransferred="rdlPlants_Transferred">
                                <ButtonSettings ShowTransferAll="false" ShowReorder="false"></ButtonSettings>
                                <ItemTemplate>
                                    <%# Eval("Pint").ToString() + " - "  + (Eval("Name1") != null ? Eval("Name1").ToString() : string.Empty) %>
                                </ItemTemplate>
                            </telerik:RadListBox>
                            <telerik:RadListBox RenderMode="Lightweight" Width="200px" ID="rdlSelectedPlants" runat="server"
                                DataKeyField="PlantId" Height="200px" Skin="Bootstrap" OnItemDataBound="rdlPlants_ItemDataBound">
                                <ButtonSettings ShowTransfer="false" ShowTransferAll="false"></ButtonSettings>
                                <ItemTemplate>
                                    <%# Eval("Pint").ToString() + " - "  + (Eval("Name1") != null ? Eval("Name1").ToString() : string.Empty) %>
                                </ItemTemplate>
                            </telerik:RadListBox>
                        </InsertItemTemplate>
                    </telerik:GridTemplateColumn>
Eyup
Telerik team
 answered on 11 Nov 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?