Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
71 views
Hi,

I got a rad grid and a column which tried using the filter textbox. When I typed in the name and selected the "Contains" filter, an exception is thrown and it breaks at the following telerik code. Please help. I am not sure why it is bombing.

Telerik.Web.UI.GridFilterFunction.parse=

 

function(b,a){return(typeof b=="number")?b:Sys$Enum$parse.call(this,b,!!a);

 

};



Unhandled exception at line 3193, column 55 in http://localhost:19090/ScriptResource.axd?d=k62TwA9lIVL1DYh1_yahdvGdpToXcfYK8FuLsmPfwI_xLuse-EL6cMNkqgLdBIsX0-NS-Yr6mZXhBS4-c1db0SyByg9DvHR-9hEtEbmq1yoeOwgWF_v9aCiAL0gbx6bhyPmuGQAmBlm_IbfyURt9HQ2&t=6f22ca9b

0x800a1391 - Microsoft JScript runtime error: 'Sys$Enum$parse' is undefined

Kostadin
Telerik team
 answered on 21 Dec 2012
5 answers
127 views
Hi there, we have a weird behavior of the RadSplitter when the page is displayed in an iPad.
Basically, the page width keeps growing a couple of pixels per second (or so), thus overflowing on the right side.
Is this a known behavior (I hope so, we have this in two different applications)? Is there a workaround?
Thanks
Vessy
Telerik team
 answered on 21 Dec 2012
1 answer
96 views
We recently updated our Telerik controls, and in that, we lost the ability to select multiple items in the FileExplorer. We've tried these 4 settings, to no avail:

FileExplorer.Grid.AllowMultiRowSelection = true;
FileExplorer.Grid.AllowMultiRowEdit = true;
FileExplorer.FileList.AllowMultipleItemSelect = true;
FileExplorer.ListView.AllowMultiItemSelection = true;

Is there any other settings we need to set to re-enable multiselect in the FileExplorer?
Vessy
Telerik team
 answered on 21 Dec 2012
3 answers
160 views
Hello Team,

I have RAD Menu and i have set its flow="vertical" . The submenus are binded through sitemap datasource.

i menu appears vertical and collapsed. I need the sub-menu items should be expanded always under root menu.

Please help me in resolve this.

Css below is for settign root menu style

.RadMenu_Default

 

.rmItem

 

{

 

padding: 1px 0 3px 56px;display: block;border-bottom: 1px solid #cacaca;color: #193444;text-decoration:none; background: #d6dfc8 url(../ImagesNew/blue_arrow.gif) no-repeat 15px 4px;

 

}

.RadMenu_Default

 

.rmRootLink

 

{

 

background: url(../ImagesNew/toptitle.gif) repeat-x; width:100%;

 

}



Thanks
Boyan Dimitrov
Telerik team
 answered on 21 Dec 2012
2 answers
64 views
Hi,

I have an issue to work with RadTreeList OnItemDragging Client Event. The event does not fire when I dragging the tree item. I have tried to find the reason and got that it is because, I have added AjaxControlToolkit in my web application. If I remove the reference of AjaxControlToolkit then event works well, but I need it for other functionality so can not remove ajaxcontroltoolkit from my web application. 

Please, help me to work with RadTreeList OnItemDragging client event without remove ajaxcontroltoolkit.

Thanks.
Dipali
Top achievements
Rank 1
 answered on 21 Dec 2012
1 answer
53 views
The filter is very, very slow for everyday use against a radgrid. 

It seems that a postback is created whenever an expression is added, when a field is selected and again when the operator is selected.  To do a simple filter for a last name "containing" it goes through 3 post backs.  Is there a way to speed this up?  Am I missing something?

Thanks!

Rob
Daniel
Telerik team
 answered on 21 Dec 2012
10 answers
1.1K+ views
Hi there,

i encountered a (hopefully) small problem when using the radgrid control to display hierarchical self-referencing data.

I have an XML-Datasource that  contains around 1000 items. Each item has 30 attributes. There are 4 levels of hierarchy in the data.
e.g.

Item 1 (ID = 0, PARENT_ID = null)
---> Item 2(ID = 1, PARENT_ID = 0)
--------> Item 3 (ID = 2, PARENT_ID = 1)
...

The RadGrid is configured to use Databinding by the NeedDataSource event and self-referencing (id and id_parent). Where the datasource  property is set to the aforementioned XML-Datasource. As Soon as the XML contains 800 lines or more an InvalidOperationException is thrown:

Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.


I have already set the <jsonSerialization maxJsonLength="2147483644" /> value to the maximum and I am pretty sure that the data payload should not reach that value (2 Gb??). Also when I manually instance a System.Web.Script.Serialization.JavaScriptSerializer() it tells me the MaxJsonLength is only 2 MB but as far as I can tell that is by design.

I hope you can provide with some hints on how to proceed in this matter (Switching to a HierarchyLoadMode othern than Client, is unfortunately not an option.

Thank you for you support.

Regards.

---
Edit: Added the hint that I am using self referencing which was previously only contained in the title of the post.
Radoslav
Telerik team
 answered on 21 Dec 2012
2 answers
192 views
Hello,
I have a hierarchic grid. Something like that (I tried to keep only the interesting lines).
                        
<telerik:RadGrid ID="RadGrid1" runat="server">
 
               <MasterTableView AutoGenerateColumns="False"
                                     Name="LEVEL1"
                                     DataKeyNames="SourceID"
                                     CommandItemDisplay="Top"
                                     EditMode="EditForms"
                                     DataSourceID="ObjectDataSource1" >
 
                   <Columns>
                       <telerik:GridBoundColumn UniqueName="SourceID"
                                                       DataField="SourceID"
             ReadOnly="true" />
                   </Columns>
                    
                   <DetailTables>
                       <telerik:GridTableView AutoGenerateColumns="False"
                                                      Name="LEVEL2"
                                                      DataKeyNames="SourceID" 
                                                                                                            runat="server"
                                                      CommandItemDisplay="Top"
                                                      DataSourceID="ObjectDataSource4" >
 
                           <ParentTableRelation>
                               <telerik:GridRelationFields DetailKeyField="SourceID"
                                                                     MasterKeyField="SourceID" />
                           </ParentTableRelation>
 
                           <Columns>
                                   <telerik:GridBoundColumn UniqueName="SourceID"
                                                                       DataField="SourceID"
                                                                       ReadOnly="true" />
                                   <telerik:GridDropDownColumn UniqueName="ElementShortNameID"
                                                                          DataField="ElementID"
                                                                          HeaderText="Element Short Name ID"
                                                                          ReadOnly="false"
                                                                          DropDownControlType="RadComboBox"
                                                                          DataSourceID="ObjectDataSource5"
                                                                          ListTextField="ElementShortNameID"
                                                                          ListValueField="ElementID" />
                           </Columns>
 
                       </telerik:GridTableView>
                   </DetailTables>
 
                   </MasterTableView>
           </telerik:RadGrid>

At first level (MasterTableView), the records have a "data key name" (sourceID)
At second level, the records have also the same data key name (So I have a "grid relation fileds" between the two identifers)
At second level, there is another field (element) with a value provided by a radcombobox.
I want that, in edit mode, the available element values in the radcombobox depend on the sourceID.
See the following object data source:

<asp:ObjectDataSource ID="ObjectDataSource5" runat="server" TypeName="DataAccessLayer.DataSource.ElementDataSource" SelectMethod="GetElementsListBySource" >
                <SelectParameters>
                    <asp:Parameter Name="SourceID" Type="String"></asp:Parameter>
                </SelectParameters>
            </asp:ObjectDataSource>


It works correctly when I am in Edit mode in order to UPDATE a record. The sourceID used seems to be the one of the record.

But, when I enter in edit mode in order to INSERT a new record (via the "Add a record button"), the sourceID parameter, received by the objectdatasource method (GetElementsListBySource) is null. As the record still not exists, no sourceID can't be used.

My question is: How could a get the parent record sourceID to pass it to the objectdatasource method providing my elements ?
I would like, if possible, make that declaratively in the aspx file to keep the same usage of objectdatasource.

Thanks by advance.
Damien



Damien
Top achievements
Rank 1
 answered on 21 Dec 2012
3 answers
127 views
Is it possible to use a UserControl edit form that does an autopostback with a radgrid configured as an update control in the ajax manager? Has anyone done this? I have a sample that works but when the combobox does the autopostback the page does a full postback.
Tsvetoslav
Telerik team
 answered on 21 Dec 2012
1 answer
156 views
Hi,

I have a radgrid as defined below. There is a refresh button in the grid. How to hide the refresh button?

<telerik:RadGrid ID="radgrid1" runat="server" ShowStatusBar="True" ShowFooter="True"
               OnItemCommand="radgrid1_ItemCommand" OnDeleteCommand="radgrid1_DeleteCommand"
               OnInsertCommand="radgrid1_InsertCommand" OnUpdateCommand="radgrid1_UpdateCommand"
               OnNeedDataSource="radgrid1_NeedDataSource" OnItemDataBound="radgrid1_ItemDataBound"                                  OnPreRender="radgrid1_PreRender"   CellSpacing="0" GridLines="None"
    
              <MasterTableView DataKeyNames="ProductNumber" AutoGenerateColumns="false" EditMode="InPlace"
                   CommandItemDisplay="TopAndBottom" CommandItemSettings-AddNewRecordText="Add New Item">

Thanks

jayanthi
Top achievements
Rank 1
 answered on 21 Dec 2012
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?