Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
192 views
I am using Version 2013  of telerik webUI and the frame work for my web application is .Net framework 3.5. Issue is when im opening the particular .aspx form in internet explorer it is appearing proper, but in firefox and chrome it appears weird. FYR screenshot is attached.

Magdalena
Telerik team
 answered on 01 Sep 2015
0 answers
60 views
i need to insert new dataitem to the existing kendo gantt data source. but i cant able to do. i have used javascript splice method also, but not working

$("#gantt").data("kendoGantt").dataSource.fetch(function () {
    //newJsonData contains the objects for insertion
    $.each(newJsonData, function (i, row) {
       //insert data to gantt data source
       this._data.pop(newJsonData[i]);
   });
});
Azeem
Top achievements
Rank 1
 asked on 01 Sep 2015
0 answers
78 views
 

i need to insert new dataitem to the existing kendo gantt data source. but i cant able to do. i have used javascript splice method also, but not working

$("#gantt").data("kendoGantt").dataSource.fetch(function () {
    //newJsonData contains the objects for insertion
    $.each(newJsonData, function (i, row) {
       //insert data to gantt data source
       this._data.pop(newJsonData[i]);
   });
});

i need to insert new dataitem to the existing kendo gantt data source. but i cant able to do. i have used javascript splice method also, but not working

$("#gantt").data("kendoGantt").dataSource.fetch(function () {
    //newJsonData contains the objects for insertion
    $.each(newJsonData, function (i, row) {
       //insert data to gantt data source
       this._data.pop(newJsonData[i]);
   });
});

i need to insert new dataitem to the existing kendo gantt data source. but i cant able to do. i have used javascript splice method also, but not working

$("#gantt").data("kendoGantt").dataSource.fetch(function () {
    //newJsonData contains the objects for insertion
    $.each(newJsonData, function (i, row) {
       //insert data to gantt data source
       this._data.pop(newJsonData[i]);
   });
});

i need to insert new dataitem to the existing kendo gantt data source. but i cant able to do. i have used javascript splice method also, but not working

$("#gantt").data("kendoGantt").dataSource.fetch(function () {
    //newJsonData contains the objects for insertion
    $.each(newJsonData, function (i, row) {
       //insert data to gantt data source
       this._data.pop(newJsonData[i]);
   });
});

i need to insert new dataitem to the existing kendo gantt data source. but i cant able to do. i have used javascript splice method also, but not working

$("#gantt").data("kendoGantt").dataSource.fetch(function () {
    //newJsonData contains the objects for insertion
    $.each(newJsonData, function (i, row) {
       //insert data to gantt data source
       this._data.pop(newJsonData[i]);
   });
});

i need to insert new dataitem to the existing kendo gantt data source. but i cant able to do. i have used javascript splice method also, but not working

$("#gantt").data("kendoGantt").dataSource.fetch(function () {
    //newJsonData contains the objects for insertion
    $.each(newJsonData, function (i, row) {
       //insert data to gantt data source
       this._data.pop(newJsonData[i]);
   });
});

i need to insert new dataitem to the existing kendo gantt data source. but i cant able to do. i have used javascript splice method also, but not working

$("#gantt").data("kendoGantt").dataSource.fetch(function () {
    //newJsonData contains the objects for insertion
    $.each(newJsonData, function (i, row) {
       //insert data to gantt data source
       this._data.pop(newJsonData[i]);
   });
});
Azeem
Top achievements
Rank 1
 asked on 01 Sep 2015
2 answers
110 views

Hi,

I use the 2015.1.401.40 version of your ASP.NET for AJAX controls.

If it matters, I'm currently binding it to a SQLDataSource.

From what I see, the entire PivotGrid does a PostBack when you:

- click a filter to display the Filter Popup

- expand or collapse a row or column field to show or hide detail

Why does it postback???  When I expand a row to show detail, and then collapse it, there is no reason to post back.  I'm not even rebinding on postback.  Why doesn't the control just use javascript to hide the detail.

The same with the filter popup... when you click the filter icon, why not just display a div that you could have put in the page when the control was initially bound?  Why do a postback to then just display the filters in a popup?

Am I missing something or doing something wrong?  Most of you other controls (hierarchical grid or grid with grouping​), they are able to hide / show children or grouped rows on the client.  Why doesn't the pivot grid?

Thanks,

Brent

Eyup
Telerik team
 answered on 01 Sep 2015
4 answers
138 views

Hi,

Recently I upgraded to Version 2015.1.401.45.  After this upgrade, a column with name 'IsNew'  that should be hidden. was displayed, although in the version before it is not displayed.

When debugging, I found out, that this column is renamed automatically to IsNew1. There is no other column with the same name in my datasource.

So I suppose, that with the new version IsNew is recognized to be a keyword??

 This is the method for hiding columns:

private void HideColumns()
        {
 
            //set the visibility of columns defined in HiddenColumns to false
            if (CGGrid.MasterTableView.Items.Count >= 0)
            {
 
                foreach (var item in HiddenColumns.Where(item => !String.IsNullOrEmpty(item)))
                {
                    try
                    {
                        var column = CGGrid.MasterTableView.GetColumn(item);
                        if (column != null) column.Visible = false;

                    }
                    catch (Exception e)
                    {
                        LOGGER.Error(e);
                    }
                }
            }
        }

Jason M
Top achievements
Rank 1
 answered on 31 Aug 2015
2 answers
70 views

I have on treview, i select one node to drag to asp text box but dosent work on firefox, in IE and Crome works fine.

can any one suggest me something?

 

thanks in advance.

Hector Hernandez
Top achievements
Rank 2
 answered on 31 Aug 2015
1 answer
835 views

hiii,
i am using treelist and treeview both.
and i am having checkbox inside it.
i am fetching checked items database.
i have binded it correctly but not able to display count of checked node at parentnode.
i want to display the count of checked item count at parent level in treelist

parent1 (1)

--Child1(1)

------checked childchild(1)

------notchecked childchild

like this

Plz help me.

Ivan Danchev
Telerik team
 answered on 31 Aug 2015
1 answer
120 views

hiii,
i am using treelist and treeview both.
and i am having checkbox inside it.
i am fetching checked items from database and binding it to treelist or treeview.

it is binding correctly but not able to display the count at parent level
i want to display the count of checked item count at parent level in treelist

Plz help me.

Viktor Tachev
Telerik team
 answered on 31 Aug 2015
6 answers
103 views
Exception type: TargetInvocationException 
    Exception message: Exception has been thrown by the target of an invocation.
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
   at System.Web.Script.Serialization.JavaScriptSerializer.SerializeCustomObject(Object o, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat serializationFormat)
   at System.Web.Script.Serialization.JavaScriptSerializer.SerializeValueInternal(Object o, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat serializationFormat, MemberInfo currentMember)
   at System.Web.Script.Serialization.JavaScriptSerializer.SerializeValue(Object o, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat serializationFormat, MemberInfo currentMember)
   at System.Web.Script.Serialization.JavaScriptSerializer.Serialize(Object obj, StringBuilder output, SerializationFormat serializationFormat)
   at System.Web.Script.Serialization.JavaScriptSerializer.Serialize(Object obj, SerializationFormat serializationFormat)
   at Telerik.Web.UI.RadComboBox.DescribeComponent(IScriptDescriptor descriptor)
   at Telerik.Web.UI.ScriptRegistrar.GetScriptDescriptors(Control control)
   at Telerik.Web.UI.RadDataBoundControl.GetScriptDescriptors()
   at System.Web.UI.ScriptControlManager.RegisterScriptDescriptors(IScriptControl scriptControl)
   at Telerik.Web.UI.RadDataBoundControl.Render(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer)
   at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Value cannot be null.
Parameter name: registration
Krishnat
Top achievements
Rank 1
 answered on 31 Aug 2015
1 answer
197 views

Hi,

 I have a RadWindow which opens up on the click event of a rad button present in each row of a RadGrid.

The RadWindow doesn't open on the single click for the first time (it takes double click for the first time) and opens in single click the next time.

Please see the code below and not sure if I am missing some thing.

Thanks!

ASPX:

<telerik:GridTemplateColumn HeaderText="Order Now" AllowFiltering="false" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="10%" ItemStyle-Width="10%">
                            <ItemTemplate>
                                <asp:LinkButton ID="gvlnkbtnViewMenu" runat="server" Text="View" CommandName="VIEW" CausesValidation="false" ToolTip="Open PDF" ForeColor="#B72B3C" Font-Bold="false" Font-Underline="true"></asp:LinkButton>
                            </ItemTemplate>

</telerik:GridTemplateColumn>​

  <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
            <Windows>
               <telerik:RadWindow ID="UserListDialog" runat="server" Modal="true" OnClientShow="setWindowsize" VisibleStatusbar="false" Title="" >
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>

 function ShowEditForm(id, rowIndex) {
                var grid = $find("<%= radGridPrintStatus.ClientID %>");
                    var rowControl = grid.get_masterTableView().get_dataItems()[rowIndex].get_element();
                    grid.get_masterTableView().selectItem(rowControl, true);
                    window.radopen("Viewer.aspx?ID=" + id, "UserListDialog");
                    return false;
             }

ASPX.CS :

 protected void radGridPrintStatus_ItemCommand(object sender, GridCommandEventArgs e)
        {
            if (e.CommandName.ToUpper().Equals("VIEW"))
            {
                GridDataItem item = (GridDataItem)e.Item;
                string rowId = item["MenuId"].Text;
                LinkButton editLink = (LinkButton)item.FindControl("gvlnkbtnViewMenu");
                editLink.Attributes["href"] = "javascript:void(0);";
                editLink.Attributes["onclick"] = String.Format("return ShowEditForm('{0}','{1}');", rowId, e.Item.ItemIndex);              
            }

Danail Vasilev
Telerik team
 answered on 31 Aug 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?