Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
140 views
What does the error "Panic - Tree has lost its integrity" mean?  We are using version 2012.1.411.40 and loading tree view data on demand but we get this crash:

Panic - tree has lost its integrity at tc4

Ⴃ.ႭႣႠႷ.ႨႷ(ႭႣႨႳ )

 

at tc4Ⴃ.ႭႨႰႼ.ႥႳ(Stream , String , Stream , ႭႨႣႭ )

 

at tc4Ⴃ.ႭႨႰႼ.ႥႭ(Stream , Stream , ႭႨႣႭ )

 

at tc4Ⴃ.ႭႣႨႥ.ႰႨ(Stream , String , ႭႨႣႭ , Boolean )

at tc4

Ⴃ.ႤႰႨ.ႰႠ(Stream , String , Boolean )


Akash
Top achievements
Rank 1
 answered on 16 May 2017
1 answer
122 views
I'm creating a grid programatically based on the "table" a user selects from a dropdown box. I don't have the grid defined in the aspx, just a placehold for it. I want the user to be able to add a row (using the add record button) and update values (using the "edit" column). I can't find how to "wire up" getting the RadGrid1_InsertCommand and RadGrid1_UpdateCommand to be called. AllowAutomaticUpdates and AllowAutomaticInserts are false. IF I had defined the grid in the aspx page I would have included 'OnInsertCommand' and 'OnUpdateCommand', but I can't understand how to do that since I'm doing everything in the code behind. What am I missing? Any help is greatly appreciated.
Marin Bratanov
Telerik team
 answered on 16 May 2017
0 answers
125 views

Hi Telerik Team,

I have encountered a problem while using rad combobox in asp wizard where my combobox could not function, i'm using the 2016 telerik dll.

It can only function when using rendermode= native, is there any other solution beside using rendermode = native?

Before this i'm using older version of telerik dll which does not cause this problem, can you please share with us the solution regarding this?

Your response are highly appreciated. 

chee
Top achievements
Rank 1
 asked on 16 May 2017
0 answers
101 views

I am new to Telerik controls. I am using the Telerik RadGrid control, using another page in a project as reference/template.

 

I am able to assign a data source to the radgrid, but when the page is rendered nothing else is displayed.

 

Here is my grid definition

<div>
    <asp:HiddenField runat="server" ID="hfEventID" />
    <asp:HiddenField runat="server" ID="hfCompanyID" />
    <asp:HiddenField runat="server" ID="hfBoothNumber" />
    <telerik:RadGrid runat="server" ID="HelpRequestsGrid" OnNeedDataSource="HelpRequestsGrid_NeedDataSource" AutoGenerateColumns="true"
        AllowSorting="true" AllowPaging="true" PageSize="25" ShowHeader="true">
        <ClientSettings EnablePostBackOnRowClick="false" Resizing-AllowColumnResize="true" Resizing-AllowResizeToFit="true" Resizing-ShowRowIndicatorColumn="true">
            <Selecting AllowRowSelect="true" EnableDragToSelectRows="true" />
            <Scrolling AllowScroll="True" UseStaticHeaders="true" />
        </ClientSettings>
        <PagerStyle Mode="NumericPages"></PagerStyle>
        <ClientSettings>
            <Resizing AllowColumnResize="true" AllowResizeToFit="true" AllowRowResize="true" ResizeGridOnColumnResize="true"/>
        </ClientSettings>          
        <MasterTableView Width="100%" ClientDataKeyNames="Id" DataKeyNames="Id" AllowMultiColumnSorting="True" 
            ShowHeadersWhenNoRecords="true" Name="Master" NoMasterRecordsText="No help requests found.">
            <NoRecordsTemplate>
                No help requests found.
            </NoRecordsTemplate>
        </MasterTableView>
    </telerik:RadGrid>
</div>

 

And in my codebehind here is where I set the data source

        protected void HelpRequestsGrid_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
        {
            if (CompanyID > 0 && EventID > 0)
            {
                HelpRequestsGrid.DataSource = Service.GetHelpRequest(EventID, CompanyID);
            }
        }

 

When I step through the code the data source gets set but come render nothing is displayed. What am I missing?

Andrew
Top achievements
Rank 1
 asked on 16 May 2017
0 answers
79 views

I've got a radgrid with a column containing a checkbox. when i check the checkbox, I want to select a given item in a drop down list. below is what I've figured out thus far but can't quite figure out how to check the checkbox inside the grid.


<telerik:RadGrid ID="rgClientSites" runat="server" AutoGenerateColumns="False"  AllowMultiRowEdit="true" GridLines="None" Skin="Windows7">
        <MasterTableView>
            <Columns>
            </Columns>
        </MasterTableView>
        <ClientSettings>
            <ClientEvents OnUserAction="onClick"/>
        </ClientSettings>
</telerik:RadGrid>


function onClick(sender, eventArgs) {
        var grid = $find("<%= rgClientSites.ClientID %>");
        var masterTable = grid.get_masterTableView();
        var gridCheckItemLCRA = masterTable.get_dataItems()[0].findElement("2"); //contains a checkbox

var dropdownlist = $find("<%= ddlD.ClientID %>");
        var item = dropdownlist.findItemByValue("3");

        if (gridCheckItemLCRA.checked) {
   item.select();
        }
        else {
   item.unselect();
        }
    }

 

Nothing happens when I check the checkbox - how do I attach an event to an item in a cell?

 

wmj
Top achievements
Rank 1
 asked on 15 May 2017
1 answer
85 views

Hi,
is there a way to fire the FileUploaded server-side event after using drag and drop?

I have to save the file to a given folder and I would like to use the SaveAs.

Thaks!

Rumen
Telerik team
 answered on 15 May 2017
2 answers
215 views

Hello,

I've been using client-side binding for several radgrids on my page. I have a need to clear all of their datasources simultaneously at some points. I want to be elegant and loop through all the grids instead of explicitly clearing them line by line.

I want to do something like this:

var grid = document.getElementsByClassName('SubRadGrid');
$('.SubRadGrid').each(function(){
              
})

 And not like this:

var empty = [];
var grid1 = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
grid1 .set_dataSource(empty);
grid1 .dataBind();
var grid2 = $find("<%= RadGrid2.ClientID %>").get_masterTableView();
grid2 .set_dataSource(empty);
grid2 .dataBind();
var grid3 = $find("<%= RadGrid3.ClientID %>").get_masterTableView();
 grid3 .set_dataSource(empty);
grid3 .dataBind();
Is this possible? Thanks!
Turner
Top achievements
Rank 1
 answered on 15 May 2017
1 answer
99 views
On multiple selection with checkboxes, the DropDownTree's selected text can become very long when many entries are checked - too long for the available space.
 Is it possible to replace the selected text with a message like "3 items checked" (as the ComboBox does it automatically)?
Marin Bratanov
Telerik team
 answered on 15 May 2017
4 answers
256 views

I have a grid that I open up with all lines editable.  I am trying to strip the first 10 characters off of the text in the ItemDataBound event. I have version 2016.3.1027.40. 

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
{
    if (e.Item is GridEditableItem)
{
GridEditableItem editableItem = e.Item as GridEditableItem;
//string s = "This Works and is longer than 10 characters";
//if (s.Length > 10)
//{
// s = s.Substring(10);
//}
//editableItem["MasterLineItem"].Text = s;

if (editableItem["MasterLineItem"].Text.Length > 10)
{
editableItem["MasterLineItem"].ToolTip = (editableItem["MasterLineItem"].Text).Substring(10);  //THIS DOES NOT WORK
                }
}
}

 

Thanks

Vessy
Telerik team
 answered on 15 May 2017
1 answer
279 views

I have added some client script to a dropdown that automatically highlights and checks an item when pressing enter and also appends a comma after the text. The problem is that when I press enter the dropdown still remains filtered. How can I reset the dropdown to show all the items.

Here is the problem as a gif:

Error

When I press enter Argentina gets selected, the comma is appended but the dropdown list isn't reset to show all the items. How do I do this? Any other suggestions to how can I append the comma automatically without using any hacks are also welcome.

 

Code:

 

<telerik:RadComboBox ID="rcbCountries" runat="server" Width="287px" CheckBoxes="true"  EnableCheckAllItemsCheckBox="true"
    CheckedItemsTexts="DisplayAllInInput" AllowCustomText="true" EnableLoadOnDemand="false" MaxHeight="400px" Height="400px"
    NoWrap="true" AutoPostBack="false" EmptyMessage="Partner's country" MarkFirstMatch="true" AutoCompleteSeparator=", "
    Filter="Contains"
    OnClientBlur="rcbCountries_Blur" OnClientFocus="otherCB_Focus" OnClientItemChecked="rcbCheckboxChecked"
    OnClientKeyPressing="rcbCheckboxKeyPressed" OnClientDropDownClosing="rcbDropdownClosing"
     
    EnableTextSelection="False">
</telerik:RadComboBox>

 

function rcbCheckboxKeyPressed(sender, args) {
    if (args.get_domEvent().keyCode == 13) {
        var highlighted = sender.get_highlightedItem();
        if (!highlighted)
            sender.highlightMatches();
        var highlighted = sender.get_highlightedItem();
 
        if (highlighted) {
            highlighted.check();
            rcbCheckboxChecked(sender, args);
 
            $(sender.get_element()).data('keep-dropdown-open', true);
        }
    }
}
 
function rcbCheckboxChecked(sender, eventArgs) {
    //hack: There is no event to handle that allows us to add a comma at the end
    setTimeout(function () {
        appendComma(sender);
    }, 0);
}
 
function rcbDropdownClosing(sender, args) {
    if ($(sender.get_element()).data('keep-dropdown-open') === true)
        args.set_cancel(true);
}
 
function appendComma(sender) {
    if (sender.get_checkedItems().length == 0) return;
 
    var text = $.trim(sender.get_text());
    if (text.length > 0 && !text.match(/,\s*$/)) {
        sender.set_text(text + ", ");
    }
}

 

 

 

 

Csaba Gyozo
Top achievements
Rank 1
 answered on 15 May 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?