Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
992 views
I have the user sending my page a querystring called price. It can be set to
either Yes, No, or Readonly.

How can I use this query string to conditionally show a price column
if the query string is yes, and to make it read only in the edit form if it
is readonly?

Thanks,
Laura
Tsvetomir
Telerik team
 answered on 19 Oct 2018
3 answers
278 views

I am having to expand repeating events so I would like to remove the End: Never option and change the default.  The problem I have run into is that the code appears to be injected when the repeat option changes.

 

TIA

Peter Milchev
Telerik team
 answered on 19 Oct 2018
1 answer
102 views

Hi,

for this demo:

https://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/batch-editing/defaultcs.aspx

How can I make the buttons ("add new record" + "save changes" + "cancel changes") move from left side to right side of the table, and the start position of the focus (when the table have many cells so it get scrolled to one side at page load) to be on right side of the table instead of left side?

 

I tried several things that I saw in forums, but it didn't help:

1. adding:  Dir="RTL"  to MasterTableView properties, and to all the <div> i have on the page (also added a div like this right before  the "telerik:RadAjaxLoadingPanel" and before the "telerik:RadListBox").

2. adding to the css file:

.RadMenu_Context_rtl {
    direction: rtl !important;
}

3. adding rtl to the body tag:

<body dir="rtl">

4. I also didnt use any other css or other stuff, only the demo itself, so I can isolate the problem.

Tsvetomir
Telerik team
 answered on 18 Oct 2018
1 answer
198 views

I'm experiencing an issue that was that is similar to the issue found at https://www.telerik.com/forums/client-side-service-binding-11-empty-rows. I have a radgrid that I'm binding to JSON results on the client-side. Regardless of the number of records, the record count always reads 11 items in 2 pages.

I've followed all of the recommendations in the previous issue, but I don't think there was ever any actual resolution to that problem.

Here's what I have, and a screenshot to show the symptoms:

Markup:

<div class="tab-pane row in active" id="selected">
  <div class="col-md-12">
    <telerik:RadAjaxLoadingPanel runat="server" Skin="Default" ID="loadPanel" />
    <sg:IPGrid runat="server" ID="rgSelected">
      <MasterTableView CommandItemDisplay="Top" AutoGenerateColumns="false"  AllowPaging="True">
        <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="True" Position="Bottom" />
        <Columns>
          <telerik:GridTemplateColumn HeaderStyle-Width="50px">
            <ItemTemplate>
              <asp:Button runat="server" ID="Button1" Text="Add" CssClass="btn btn-sm" />
            </ItemTemplate>
          </telerik:GridTemplateColumn>
          <telerik:GridBoundColumn DataField="Title" HeaderText="Title" HeaderStyle-Width="450px" />
          <telerik:GridBoundColumn DataField="AssignedTo" HeaderText="Assigned To" />
          <telerik:GridBoundColumn DataField="HotfixOwner" HeaderText ="Hotfix Owner" />
          <telerik:GridBoundColumn DataField="Target Release" HeaderText="Target Release" />
          <telerik:GridBoundColumn DataField="Target Date" HeaderText="Target Date" DataFormatString="{0:yyyy-MM-dd}" />
        </Columns>
      </MasterTableView>
      <ClientSettings>
        <ClientEvents OnCommand="function() {}" OnGridCreated="OnGridCreated" OnDataBound="OnDataBound" />
      </ClientSettings>
    </sg:IPGrid>
  </div>
</div>

 

Javascript:

function OnGridCreated(sender, args) {
  $find('<%= loadPanel.ClientID%>').show('selected');
}
function OnDataBound(sender, args) {
  $find('<%= loadPanel.ClientID%>').hide('selected');
}
$(function () {
  $.ajax({
    type: "POST",
    url: "/pageinformation/styleguide.api/internaldocgeneratorws.asmx/getworkitemcollection",
    data: '{ workItems: ' + JSON.stringify(deployment.WorkItems) + ' }',
    contentType: "application/json; charset=utf-8",
    dataType: "json",
    cache: true
  }).done(function (data) {
    var tableView = $find('<%= rgSelected.ClientID %>').get_masterTableView();
    tableView.set_dataSource(JSON.parse(data.d));
    tableView.dataBind();
  }).fail(function (jqXHR, textStatus) {
    // If there is no communication between the server, show an error
    $find('<%= MessageBox.ClientID %>').addError(jqXHR.responseJSON.Message, false);
  });
});
Marin Bratanov
Telerik team
 answered on 18 Oct 2018
1 answer
84 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.2K+ 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
135 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
293 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
574 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
140 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
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
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?