Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
456 views

Hello,

I have a usercontrol with a single select DropDownTree where I need to display slightly different text than what is show as the node text.  This text is basically a more user readable form of the full path.  Currently I am storing that alternate text as node attributes attached server side:

    Dim newNodeL3 As New RadTreeNode(tr_row.BodyPartL3Text, tr_Body.BodyPartID)

newNodeL3.Attributes("FullText") =  row_Body.BodyPartFullText

Ivan Danchev
Telerik team
 answered on 12 Jan 2017
3 answers
94 views

Hello Team,

I have implement RadEditor (version : 2016.3.1027.45) its work fine on chrome /mozila  browser.
But on IE and Safari  All dialog (Image/ Video/document ) are broken  the UI. i have attached the screen-sort.

Also we have add the setting in  web.config file

<httpHandlers>

<add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />

<add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />

</httpHandlers>

<handlers>

<add name="Telerik.Web.UI.DialogHandler" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" />

<add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode" />

</handlers>

Please review and provide the solution

 

Rumen
Telerik team
 answered on 12 Jan 2017
3 answers
250 views

Hi 

I am trying to reterive a value of hidden column (OrderDate) in details table from back end and the value I am getting is &nbsp;

Please note that I am using Telerik version 2016.1.225.45 and the below code is in my web.config

<add key="BindGridInvisibleColumns" value="true"/>

 

ASPX Code:

<telerik:RadGrid Skin="Office2007" ID="RadGrid1" runat="server" ShowStatusBar="true" AutoGenerateColumns="False"
                           PageSize="7" AllowSorting="True" AllowMultiRowSelection="False" AllowPaging="True" CellPadding="1"
                           OnDetailTableDataBind="RadGrid1_DetailTableDataBind" OnNeedDataSource="RadGrid1_NeedDataSource" OnItemCommand="RadGrid1_ItemCommand"
                           OnPreRender="RadGrid1_PreRender" Style="padding: 3px; margin: 3px;">
                           <HeaderStyle CssClass="RadGridHeader" />                  
                           <MasterTableView Name="master" DataKeyNames="CustomerID" AutoGenerateColumns="false" NoMasterRecordsText="No records meet the search criteria.">
                               <DetailTables>
                                   <telerik:GridTableView AllowPaging="false" DataMember="OrderDrillDown" DataKeyNames="OrderID,CustomerID" runat="server"
                                       Name="Orders" Width="100%" AllowMultiRowSelection="false" CommandItemDisplay="Top" NoDetailRecordsText="No Exclusions.">
                                       <Columns>
                                           <telerik:GridBoundColumn SortExpression="OrderID" HeaderText="OrderID" HeaderButtonType="TextButton"
                                               DataField="OrderID">
                                           </telerik:GridBoundColumn>
                                           <telerik:GridBoundColumn SortExpression="OrderDate" HeaderText="Date Ordered" HeaderButtonType="TextButton"
                                               DataField="OrderDate" UniqueName="OrderDate" DataFormatString="{0:D}" Visible="false">
                                           </telerik:GridBoundColumn>
                                           <telerik:GridBoundColumn SortExpression="Freight" HeaderText="Freight" HeaderButtonType="TextButton"
                                               DataField="Freight" UniqueName="Freight">
                                           </telerik:GridBoundColumn>
 
                                           <telerik:GridButtonColumn ButtonType="LinkButton" UniqueName="Delete" Text="Delete"
                                               CommandName="Delete">
                                               <ItemStyle HorizontalAlign="Center" Width="10%" />
                                           </telerik:GridButtonColumn>
 
                                       </Columns>
                                   </telerik:GridTableView>
                               </DetailTables>
                               <Columns>
                                   <telerik:GridBoundColumn SortExpression="CustomerID" HeaderText="CustomerID" HeaderButtonType="TextButton"
                                       DataField="CustomerID">
                                   </telerik:GridBoundColumn>
                                   <telerik:GridBoundColumn SortExpression="ContactName" HeaderText="Contact Name" HeaderButtonType="TextButton"
                                       DataField="ContactName" Visible="false">
                                   </telerik:GridBoundColumn>
                                   <telerik:GridBoundColumn SortExpression="CompanyName" HeaderText="Company" HeaderButtonType="TextButton"
                                       DataField="CompanyName">
                                   </telerik:GridBoundColumn>
 
                                   <telerik:GridButtonColumn ButtonType="LinkButton" UniqueName="DeleteHac" Text="Delete"
                                       CommandName="DeleteHac">
                                       <ItemStyle HorizontalAlign="Center" Width="10%" />
                                   </telerik:GridButtonColumn>
                               </Columns>
                           </MasterTableView>
                           <PagerStyle Mode="NextPrevAndNumeric" />
                           <ClientSettings EnableRowHoverStyle="True" EnablePostBackOnRowClick="false">
                               <Selecting AllowRowSelect="false" />
 
                           </ClientSettings>
                       </telerik:RadGrid>

 

 

Code behind:

protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
       {
           GridDataItem selectedItem = (GridDataItem)e.Item;
 
           if (e.CommandName == "Delete")
           {
               var check = selectedItem["OrderDate"].Text;
           }
           else if (e.CommandName == "DeleteHac")
           {
                var check1 = selectedItem["ContactName"].Text;
           }
       }

 

When trying to get OrderDate value I am getting &nbsp; as value but I am getting the same value when the columns visiblity is set to true. 

I can confirm this was working fine when the Telerik UI version was 2015.1.401.45

Also, I found a workaround for this by using Display instead of Visible, but do you think that is the only workaround or is this a known bug?

Thanks

Hazersha

Konstantin Dikov
Telerik team
 answered on 12 Jan 2017
3 answers
344 views
Hi,
I have to hide a refresh button on the top of Radwindow. How can I do that?
Marin Bratanov
Telerik team
 answered on 12 Jan 2017
1 answer
151 views

Hi Team,

I can bind data to radgrid in page load. My grid having filters, if i enter text in filter it is working fine without RadAjaxLoadingPanel. If i use RadAjaxLoadingPanel with RadAjaxManager, Lodingpanel is going to display but data is is not going to populate based on filter textbox text.

In my case, Radgrid control is in this order :: RadSplitter-->RadPane-->RadTabStrip-->RadMultiPage-->Radgid.

Please find the attached screen shot.

 

 

Thank you in advance.

Konstantin Dikov
Telerik team
 answered on 12 Jan 2017
1 answer
94 views

Hi, I would like to develop a staff rota system, where the staff member would copy all appointments from a "Master Rota" which they would have previously created onto the current month.

E.G the master rota would contain 4 weeks of appointments, which they can then copy each time on to the current month.  They can then do this each month to avoid having to create the appointments each time.  I know that you could set a recurring appointment but we would like to have a fixed 4 week rota which can copied onto a month just by clicking a button which would copy all appointments across from this "master rota" onto the Live rota.

 

Would this be possible?

Nencho
Telerik team
 answered on 12 Jan 2017
34 answers
473 views
Is there a way to make is so that when I have a group of items and I click to collapse the group, it collapses ALL of the items in the group - not just the visible items.

For example, say you have 2 groups. The first group has 150 items, the second has 25. My page size is 20. When I collapse group 1 (150 items), I want to immediately see group 2 and it's first 20 items show in the grid. Instead you just get a collapsed group and no items below it.

Thanks!
Konstantin Dikov
Telerik team
 answered on 12 Jan 2017
1 answer
176 views

Hello Everyone ,

In SQL Database i have 3 tables ( articles , category , tbl_article_category ),

and some articles are in 2 or more category , so i want to show this Rad Grid like below :

     ID             Title                 Category

      1           article1            home , news     

any Idea?

Konstantin Dikov
Telerik team
 answered on 12 Jan 2017
12 answers
244 views
Hello

I have a RadGrid with one Group. The data is seperated by the groups in a proper way.
So from this point everything is ok.

Data should be added by an edit form (modal popup).
Now I try to display the edit form, but it's just appearing if I press "Add new record".
Pressing "Edit" in a row does not show the edit form.

If remove the grouping of the RadGrid, the edit form appears as expected!

What's the reason for this behaviour?

Here is my code:

    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">  
    </asp:ScriptManagerProxy> 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="gridMain">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="gridMain" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                    <telerik:AjaxUpdatedControl ControlID="imgSearch" /> 
 
               </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="imgSearch">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="gridMain" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" BackgroundPosition="Center" 
        Skin="Vista" /> 
 <telerik:RadGrid runat="server" ID="gridMain" Width="50%" Style="margin-left: auto;  
            margin-right: auto; margin-top: 5px"> 
            <ClientSettings> 
                <Scrolling AllowScroll="true" UseStaticHeaders="true" /> 
            </ClientSettings> 
            <GroupingSettings /> 
            <MasterTableView AutoGenerateColumns="false" CommandItemDisplay="Top" AllowPaging="true" 
                DataKeyNames="BMID" GroupsDefaultExpanded="false" PageSize="100" EditMode="PopUp" GroupLoadMode="Server">  
                <GroupByExpressions> 
                    <telerik:GridGroupByExpression> 
                        <GroupByFields> 
                            <telerik:GridGroupByField FieldName="BMITEM" FieldAlias="Item" /> 
                        </GroupByFields> 
                        <SelectFields> 
                            <telerik:GridGroupByField FieldName="BMITEM" FieldAlias="Item" /> 
                        </SelectFields> 
                    </telerik:GridGroupByExpression> 
                </GroupByExpressions> 
                  
                <Columns> 
                    <telerik:GridEditCommandColumn> 
                    </telerik:GridEditCommandColumn> 
                    <telerik:GridBoundColumn HeaderText="Status" DataField="BMSTAT">  
                        <HeaderStyle Width="25px" /> 
                        <ItemStyle Width="25px" /> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn HeaderText="Seq." DataField="BMSEQN">  
                        <HeaderStyle Width="25px" /> 
                        <ItemStyle Width="25px" /> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn HeaderText="Child item" DataField="BMCHLD">  
                        <HeaderStyle Width="150px" /> 
                        <ItemStyle Width="150px" /> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn HeaderText="Description">  
                        <HeaderStyle Width="150px" /> 
                        <ItemStyle Width="150px" /> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn HeaderText="Quantity" DataField="BMQTY">  
                        <HeaderStyle Width="25px" /> 
                        <ItemStyle Width="25px" /> 
                    </telerik:GridBoundColumn> 
                </Columns> 
                <EditFormSettings EditFormType="Template" InsertCaption="Add new BOM entry" CaptionFormatString="Edit item {0}" 
                    CaptionDataField="BMID">  
                    <PopUpSettings Modal="true" /> 
                    <FormTemplate> 
                        <table> 
                            <tr> 
                                <td> 
                                    Status  
                                </td> 
                                <td class="cellWithTextBox">  
                                    <asp:DropDownList ID="ddlStatus" runat="server">  
                                        <asp:ListItem Value="A">Active</asp:ListItem> 
                                        <asp:ListItem Value="D">Disabled</asp:ListItem> 
                                        <asp:ListItem Value="Z">Deleted</asp:ListItem> 
                                    </asp:DropDownList> 
                                </td> 
                            </tr> 
                            <tr> 
                                <td align="center" colspan="4">  
                                    <asp:Button ID="btnUpdate" Text='<%# (Container as GridItem).OwnerTableView.IsItemInserted ? "Insert" : "Update" %>' 
                                        runat="server" CommandName='<%# (Container as GridItem).OwnerTableView.IsItemInserted ? "PerformInsert" : "Update" %>'>  
                                    </asp:Button>&nbsp;  
                                    <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False" 
                                        CommandName="Cancel" /> 
                                </td> 
                            </tr> 
                        </table> 
                    </FormTemplate> 
                </EditFormSettings> 
            </MasterTableView> 
        </telerik:RadGrid> 
   
 
 

        protected void gridMain_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)  
        {  
            LJITDataContext db = new LJITDataContext();  
            IQueryable<LJT_BOM> parts;  
              
            var conditions = PredicateBuilder.True<LJT_BOM>();  
 
            int startRowIndex = this.gridMain.CurrentPageIndex * this.gridMain.PageSize;  
            int maximumRows = this.gridMain.PageSize;  
            conditions = conditions.And(p => p.BMITEM.Contains(this.txtFindName.Text));  
            conditions = conditions.And(p => p.BMCHLD.Contains(this.txtFindChild.Text.Trim()));  
            parts = db.BOM.Where(conditions).OrderBy(o => o.BMITEM).ThenBy(o => o.BMSEQN);  
 
            this.gridMain.VirtualItemCount = parts.Count();  
            var alles = parts.Skip(startRowIndex).Take(maximumRows);  
            this.gridMain.DataSource = parts;  
Frank
Top achievements
Rank 1
 answered on 11 Jan 2017
3 answers
217 views
Hi,

I have to create some RadTreeNodes programatically and I was wondering if the nodes have some sort of "tag" property ( like the tag property that controls in windows forms used to have ) ....

foreach(Student in students)
{
RadTreeNode treeNode = new RadTreeNode() { Text = Student.Name, Tag = Student.Id  ??? }
}

Thanks.


Seabus

Ivan Danchev
Telerik team
 answered on 11 Jan 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?