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

  <telerik:RadTreeView ID="RadTreeListUsers" runat="server" CheckBoxes="True" Width="585px" TriStateCheckBoxes="True" CheckChildNodes="True" meta:resourcekey="RadTreeListPermissionsResource1" />

 

var userValues = new HashSet<string>(users.Select(p => NodeValue.FormatTreeLabel(p.DataTypeName, p.ToDataTypeStateAutoId, p.ServiceAreaNum, p.OperationName, p.AttributeName)));

            var userNodes = GetUserNodes(userValues);
            RadTreeListUsers.Nodes.Clear();
            RadTreeListUsers.Nodes.AddRange(UserNodes);  //this line taking lot of time to load and display treeView


Marin Bratanov
Telerik team
 answered on 18 Oct 2018
13 answers
1.3K+ views
Hi,

I have a RadGrid that gets its data from a stored procedure and the data is already ordered in the desired way. The RadGrid's group by automatically re-orders the group by field by alphabetical order. Is there a way to leave the order of the rows in its initial state? For example, if we're grouping on column X, if B appears before A from the data source, in the RadGrid B would be the first grouping section and A the second.

If not, then is there a way I can sort the group by field by a specific field? For example, this is what I would want to do:
<GroupByExpressions>
    <telerik:GridGroupByExpression>
        <SelectFields>
            <telerik:GridGroupByField FieldName="Category" SortField="ColumnXYZ" SortOrder="Ascending" />
        </SelectFields>
        <GroupByFields>
            <telerik:GridGroupByField FieldName="Category" />
        </GroupByFields>
    </telerik:GridGroupByExpression>
</GroupByExpressions>

Thanks in advance!

Eric

Tsvetomir
Telerik team
 answered on 18 Oct 2018
3 answers
142 views

When I create new folder I get an error

Error Message: Object reference not set to an instance of an object.
Stack Trace:
   at Telerik.Web.UI.RadFileExplorer.CreateFolder(String currNodeValue, String newDirName)

This suggests the folder is not created.

However when I got to the server the folder has been created.

It is also there when I log back in.

What can I do to prevent this?

 

 

Suzan
Top achievements
Rank 1
 answered on 18 Oct 2018
3 answers
308 views

We've been asked by our client to hide the workbook tabstrip buttons for adding and removing sheets.

We've searched all over but couldn't find a way to hide these buttons (the "+" and "x" buttons).

Any help would be most appreciated.

 

Vessy
Telerik team
 answered on 18 Oct 2018
17 answers
599 views
Hi

I am using the radeditor and put a background colour on some text. When I export to pdf it doesn't show up? Here is the html it produces:
<span style="background-color: #ffff00;">Hello World</span>
Attila Antal
Telerik team
 answered on 17 Oct 2018
4 answers
150 views

<telerik:RadEditor ID="txtWarning" runat="server" EditModes="Design" ToolbarMode="Default" Width="400px" Height="100px" MaxTextLength="1000" ContentAreaMode="Div" ContentFilters="None" ></telerik:RadEditor>

 

string text = txtWarning.Content

Sampath
Top achievements
Rank 1
 answered on 17 Oct 2018
1 answer
55 views

Hi

i use a kendGrid like this:

It works great, but if i put the src for Chart1 into the "App_Data" folder and change the Session to the App_Data folder
the grid will not long be displayed. But wh? thanks so far

<script id="Chart1" src='<%=Session["LoginAbas2"]%>'></script>                
<div id="example" class="k-content">
    <div id="grid" style="width:50%;"></div>
    <script>
        $(document).ready(function () {
            $("#grid").kendoGrid({
                dataSource: {
                    data: products,
                    schema: {
                        model: {
                            fields: {
                                ProductName: { type: "string" },
                                Bez: { type: "string" },
                                UnitsInStock: { type: "number" },
                                Discontinued: { type: "string" }
                            }
                        }
                    },
                    pageSize: 20
                },
                height: 430,
                scrollable: true,
                sortable: true,
                filterable: true,
                pageable: {
                    input: true,
                    numeric: false
                },
                columns: [
                    "Bez",
                    { field: "ProductName", title: "Artikelnr.", width: "130px" },
                    { field: "UnitsInStock", title: "Menge", width: "130px" },
                    { field: "Discontinued", title: "Einheit", width: "130px" }
                ]
            });
        });
    </script>
ITA
Top achievements
Rank 1
 answered on 17 Oct 2018
1 answer
144 views

I am trying to implement drag and drop functionality using rad list view but getting this error Object doesn't support property or method 'getKendoDraggable' can someone help me how can i resolve this.

Script:

Sys.Application.add_load(enableDraggableShapeBox);
                 function enableDraggableShapeBox() {
                     debugger
                     var draggables = $telerik.$("#<%=listViewDiv.ClientID%>")
                     if (draggables.getKendoDraggable()) return;
                     draggables.kendoDraggable({
                         filter: "div.ListViewStyle",
                         hint: function (draggable) {
                             var hint = draggable.clone(true);
                             return hint;
                         }
                     });
                 }

 

Listview:

<div id="listViewDiv" runat="server" clientidmode="Static" style="overflow:auto">
          <telerik:RadListView ID="RadListView1" runat="server" RenderMode="Lightweight">
              <LayoutTemplate>
                   
                  <div style="padding:10px 0 0 10px">
                  <telerik:RadLabel Text="RadLabel1" ID="rlb1" runat="server" RenderMode="Lightweight" CssClass="listViewStyles">
                  </telerik:RadLabel>
                  <br />
                  </div>
 
                  <div style="padding:10px 0 0 10px">
                  <telerik:RadTextBox ID="RadTextBox1" runat="server" RenderMode="Lightweight">
                  </telerik:RadTextBox>
                  </div>
 
                  <div style="padding:10px 0 0 10px">
                  <telerik:RadTimePicker ID="RadTimePicker1" runat="server" RenderMode="Lightweight">
                  </telerik:RadTimePicker>
                  </div>
 
                  <div style="padding:10px 0 0 10px">
                  <telerik:RadDatePicker ID="RadDatePicker1" runat="server" RenderMode="Lightweight">
                  </telerik:RadDatePicker>
                  </div>
 
                  <div style="padding:10px 0 0 10px">
                  <telerik:RadDateTimePicker ID="RadDateTimePicker1" runat="server" RenderMode="Lightweight">
                  </telerik:RadDateTimePicker>
                  </div>
 
                  
                  <div style="padding:10px 0 0 10px">
                      <telerik:RadComboBox ID="RadComboBox1" runat="server" RenderMode="Lightweight">
                          <Items>
                              <telerik:RadComboBoxItem Text="2" Selected="true" />
                              <telerik:RadComboBoxItem Text="4" />
                              <telerik:RadComboBoxItem Text="6" />
                              <telerik:RadComboBoxItem Text="8" />
                              <telerik:RadComboBoxItem Text="10" />
                          </Items>
                      </telerik:RadComboBox>
                  </div>
                   
                  <div style="padding:10px 0 0 10px" >
                      <telerik:RadDropDownList ID="RadDropDownList" runat="server" RenderMode="Lightweight">
                          <Items>
                              <telerik:DropDownListItem text="textdata" />
                              <telerik:DropDownListItem text="textdata" />
                              <telerik:DropDownListItem text="textdata" />
                              <telerik:DropDownListItem text="textdata" />
                              <telerik:DropDownListItem text="textdata" />
                          </Items>
                      </telerik:RadDropDownList>
                  </div>
                   
                  <div style="padding:10px 0 0 10px">
                      <telerik:RadBinaryImage ID="RadBinaryImage1" runat="server" />
                  </div>
 
              </LayoutTemplate>
              <ClientSettings AllowItemsDragDrop="true">
                  <ClientEvents />
                  <DataBinding ItemPlaceHolderID="itemContainer">
                      <ItemTemplate>
                          <div id="#= ItemHeader #" class="ListViewStyle">
                              <div style="vertical-align: top; width: 100%">
                                  <table id="ListviewTable">
                                      <tr>
                                          <td colspan="2">
                                              <span id="ItemHeader" class="ItemHeaderStyle"><b>#= ItemHeader #</b></span>
                                          </td>
                                      </tr>
                                      </div>
                      </ItemTemplate>
                  </DataBinding>
              </ClientSettings>
          </telerik:RadListView>
      </div>

 

Attila Antal
Telerik team
 answered on 17 Oct 2018
11 answers
600 views
Hello,
First I tried to access button by its index, i.e. toolbar.getAllItems()[3]. That worked for some time. But when 1st button is not a button but a dropdown with more buttons in it, that method returns wrong button. Next I tried to access buttons by value. That also worked for some time. But on buttons which may contain child items, like RadToolBarDropDown, that method won't work. Now what do I have to do? Search button by text? My buttons don't have a text at all. So what now?

PLEASE tell me is that a so HUGE problem do add a simple ID property to each button and implement FindButtonByID method? Is that a feature which requires a deep planning? You are developing this control so long and you can't implement this simplest feature? I can't believe that.
Tom
Top achievements
Rank 1
 answered on 16 Oct 2018
3 answers
798 views
In a vb.net 2010 web form application that I support, the application uses the Telerik Radeditor to edit letters sent to parents of students.
After the application runs, the html is stored in a SQL Server 2016 field called stringtemplate where the value is declared as varchar(max).
My question is I am trying to change the font size and color of the letters that are generated. When I look at the html that is stored in the stringtemplete field,
I do not see the html changes that I made.
Thus I am wondering if there is some part of the radeditor that I need to set so the font size and colors of parts of the letter can change. If so,
would you show me what I need to change?
Rumen
Telerik team
 answered on 16 Oct 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?