Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
246 views

I have a batch edit grid, using 'cell' edit mode.  I have subscribed to the 'batchEditCellValueChanged' client side event.  I'm having extreme difficulty in finding out how to get the cell values from other cells in the same row.  The example is I have an 'amount' column where I want to add/subtract the entered amount into a selective total field outside the grid based on the ddl value from another cell in that same row.

 

One major issue I came across is that adding new rows to the grid causes the index number obtained from 'args.get_row().rowIndex' does not then match up with the order of rows listed from the 'grid.get_masterTableView().get_dataItems()' method call... this issue having already been pointed out in another post, the result of which was the information passed on to Telerik dev team.

 

Based on this information, how do I get other cell values from the same row during the 'batchEditCellValueChanged' event?

Konstantin Dikov
Telerik team
 answered on 21 May 2015
1 answer
99 views
I installed the Telerik Data Access msi (version=2014 Q1 SP1). I have VS2010 and VS2013 already installed in the system. After installation and re-starting system a couple of times, VS2010 displays the Telerik items when I go to New Projects -> Visual C# -> Telerik...(4 menu items) as suggested in the install manual. But VS2013 is not showing any integration of Telerik and no menu items show up. I confirmed that the install of Telerik recognized VS2010 and VS2013 and after the install, the actual folder of Telerik (C:\Program Files(x86)\Telerik\Data Access\) contains both dsl2010 and dsl2013 with all the associated dll's. But for some reason, VS2013 does not show any Telerik menu items in New projects, Tools, etc. of VS2013.
Yana
Telerik team
 answered on 21 May 2015
1 answer
122 views

Hi,

After the Upgrade of Internet explorer 9 to 11 edge, the toolbox is not visible in my application & enter button is not working. I checked for the solution in telerik blog & added .Browser file inside APP_Browser in Application. After that tool box are working fine, but yet the enter button is not working. But  these are working well in other browsers like chrome.Please help .. Thanks in advance.

my RadEditor code:

<telerik:RadEditor ID="Rad_Editor" runat="server" ToolsFile="~/Include/BasicTools.XML"
   Height="220px" Width="1050px" EditModes="Design" ContentFilters="MakeUrlsAbsolute,FixEnclosingP"
  StripFormattingOptions="None" ImageManager-ViewPaths="~/common/images/" ContentAreaMode="Div">
                    <Content>
                    </Content>
                </telerik:RadEditor>

 regards 

Siva

Siva
Top achievements
Rank 1
 answered on 21 May 2015
1 answer
255 views
aspx file 
<telerik:RadGrid runat="server" ID="RadGrid1" AutoGenerateColumns="False" AllowPaging="True"
                            CellSpacing="-1" GridLines="Both" GroupPanelPosition="Top" OnItemDataBound="RadGrid1_ItemDataBound" OnItemCommand="RadGrid1_ItemCommand" OnInsertCommand="RadGrid1_InsertCommand">
                            <MasterTableView DataKeyNames="COA_ACCOUNT_ID" CommandItemDisplay="Top" InsertItemPageIndexAction="ShowItemOnCurrentPage" EditMode="EditForms">
                                <RowIndicatorColumn Visible="False">
                                </RowIndicatorColumn>
                                <ExpandCollapseColumn Created="True">
                                </ExpandCollapseColumn>
                                <Columns>
                                    <telerik:GridEditCommandColumn ButtonType="ImageButton"/>
                                    <telerik:GridBoundColumn DataField="ACCOUNT_CODE" HeaderText="ACCOUNT CODE" />
                                    <telerik:GridBoundColumn DataField="ACCOUNT_DESCRIPTION" HeaderText="DESCRIPTION" />
                                    <telerik:GridBoundColumn DataField="ACCOUNT_TYPE" HeaderText="TYPE" />
                                    <telerik:GridBoundColumn DataField="ACCOUNT PAYABLE" HeaderText="PAYABLE" />
                                    <telerik:GridBoundColumn DataField="STATUS" HeaderText="STATUS" />
                                    <telerik:GridButtonColumn ConfirmText="Delete this product?" ConfirmDialogType="RadWindow"
                                        ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" />
                                </Columns>
                                <EditFormSettings EditFormType="Template">
                                    <EditColumn ButtonType="ImageButton" />
                                    <FormTemplate>
                                        <table id="Table3" width="450px" border="0" class="module">
                                            <tr>
                                                <td>Account Code:
                                                </td>
                                                <td>
                                                    <%--<telerik:RadTextBox ID="RadtxtAccountCode" runat="server" Text='<%# Bind("ACCOUNT_CODE") %>'>
                                                    </telerik:RadTextBox>--%>
                                                    <asp:TextBox ID="RadtxtAccountCode" runat="server" Text='<%# Bind("ACCOUNT_CODE") %>'>
                                                    </asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>Account Description:
                                                </td>
                                                <td>
                                                    <telerik:RadTextBox ID="RadtxtAccountDescription" runat="server" Text='<%# Bind("ACCOUNT_DESCRIPTION") %>'>
                                                    </telerik:RadTextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>Account Type:
                                                </td>
                                                <td>
                                                    <telerik:RadDropDownList ID="RadddlAccountType" runat="server">
                                                    </telerik:RadDropDownList>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>Account Payable:
                                                </td>
                                                <td>
                                                    <telerik:RadDropDownList ID="RadddlAccountPayable" runat="server">
                                                        <Items>
                                                            <telerik:DropDownListItem Text ="Debit" Value ="0" />
                                                            <telerik:DropDownListItem Text ="Credit" Value ="1" />
                                                            <telerik:DropDownListItem Text ="Dr./Cr." Value = "2" Selected ="true"/>
                                                        </Items>
                                                    </telerik:RadDropDownList>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="left" colspan="2">
                                                    <telerik:RadButton ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
                                                        runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'></telerik:RadButton
                                                    <telerik:RadButton ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel"></telerik:RadButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </FormTemplate>
                                </EditFormSettings>
                            </MasterTableView>
                            <PagerStyle Mode="NextPrevAndNumeric" />
                            <ClientSettings>
                                <ClientEvents OnRowDblClick="rowDblClick" />
                            </ClientSettings>
                        </telerik:RadGrid>

 

cs File

protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
        {
            if (e.CommandName == RadGrid.PerformInsertCommandName && e.Item is GridEditFormInsertItem)
            {
                //GridEditableItem editedItem = e.Item as GridEditableItem;
                GridEditFormItem item = (GridEditFormItem)e.Item;
                TextBox tfff = (TextBox)item.FindControl("RadtxtAccountCode");
                RadDropDownList radddlAccountType = item.FindControl("RadddlAccountType") as RadDropDownList;
                RadTextBox RadtxtAccountDescription = item.FindControl("RadtxtAccountDescription") as RadTextBox;
                //GridEditFormItem item = (GridEditFormItem)e.Item.OwnerTableView.GetInsertItem();
                //GridDataInsertItem item = (GridDataInsertItem)RadGrid1.MasterTableView.GetInsertItem();
                //var item = e.Item as GridEditFormItem ?? ((GridDataItem)(e.Item)).EditFormItem;
                if (item == null)
                    throw new Exception("griddataitem is null");
                var RadtxtAccountCode1 = item.FindControl("RadtxtAccountCode") as TextBox;
 
                RadTextBox RadtxtAccountCode = (RadTextBox)item.FindControl("RadtxtAccountCode");
                //RadTextBox RadtxtAccountDescription = item.FindControl("RadtxtAccountDescription") as RadTextBox;
                RadDropDownList RadddlAccountType = item.FindControl("RadddlAccountType") as RadDropDownList;
                RadDropDownList RadddlAccountPayable = item.FindControl("RadddlAccountPayable") as RadDropDownList;
                objAccountInsert.iCatalog_id = 1;
                objAccountInsert.iAccount_type_id = 1;
                objAccountInsert.iCode = Convert.ToInt16(RadtxtAccountCode1.Text);
                objAccountInsert.strDesignation_native = RadtxtAccountDescription.Text;
                objAccountInsert.strDesignation_other = RadtxtAccountDescription.Text;
                objAccountInsert.iAccount_type_id =Convert.ToInt16(RadddlAccountType.SelectedValue);
                objAccountInsert.iPayable = Convert.ToInt16(RadddlAccountPayable.SelectedValue);
                objAccountInsert.bActive = true;
                objAccountInsert.iCreated_user_id = 1;
                objAccountInsert.iUpdated_user_id = 1;
 
                int i = new Account_BL().LegalAccountInsert(objAccountInsert);
            }

when I try to get value from From Template control (RadtxtAccountCode, RadtxtAccountDescription) its show null value. please help me. I want to get value from those control entered by the user.
Konstantin Dikov
Telerik team
 answered on 21 May 2015
2 answers
114 views

I'm trying to modify the CSS for the MetroTouch menu and can't figure out where that vertical/separator bar is set, seen in light blue in my attached screenshot.  I want to set it to the same color as the rest of the menu.  Any ideas?  Thanks!

I've tried setting values for rmSeparator and that doesn't work.

Below are my test CSS changes so far to do what I need:

<style type="text/css">
    .RadMenu_MetroTouch .rmRootGroup {
        padding: 1px !important;
        background: #18323f;
    }
 
    .RadMenu_MetroTouch .rmRootLink {
        padding: 0 15px;
        border: 1px solid #18323f;
        color: #ffffff;
        text-decoration: none;
    }
 
</style>

Adrian Barnes
Top achievements
Rank 1
 answered on 21 May 2015
1 answer
91 views

Hi,

I'm new to RadPivotGrid. I have a few questions:

 1. Why is the PivotGridRowField showing Total columns under it? (e.g Tim Ho Wan Total). How to remove that?

2. How to show values in Data Area without usingPivotGridAggregateField? like my attached file (table with data area.jpg)

 

Please get back to me soon

 

Thanks

 

Maria Ilieva
Telerik team
 answered on 21 May 2015
2 answers
100 views

Hello, I'm on a telerik trial.

I need to get the RadDataPicker working in a custom control that is placed in a repeater in a content page.

So far what I get is a textbox for the date and the date "button" is a text link: "Open the Calendar Popup".  Clicking the link does nothing.  Click in the date box also does nothing (no calendar-date-picker pops up).

Right now all I care about is getting the minimal default behavior for this control within this context.  I'm assuming I do not quite have correct usage of RadScriptManager (&ScriptManagerProxy) and/or RadAjaxManager (&RadAjaxManagerProxy) and/or some other missing element along those lines.

I would be very happy to know the absolute minimum that would normally be needed to get a basic RadDatePicker control working in this context, assuming there are no mystery conflicts to be dealt with.

Put _____??_______ in the master page (if anything)?

Put _____??_______ in the content page (if anything)?

Put _____??_______ in the repeater item template (if anything)?

Put _____??_______ in the customer control.?

Maria Ilieva
Telerik team
 answered on 21 May 2015
1 answer
125 views

In my application i have one grid with following itemtemplate column

  <telerik:RadGrid ID="gvContainerDetail" runat="server" AllowPaging="True" CellSpacing="0"
                                            GridLines="None" AutoGenerateColumns="false" OnItemCommand="gvContainerDetail_ItemCommand"
                                            OnItemDataBound="gvContainerDetail_ItemDataBound">
                                            <FilterMenu EnableImageSprites="False">
                                            </FilterMenu>
                                            <ClientSettings>
                                                <Selecting CellSelectionMode="None" AllowRowSelect="True" />
                                            </ClientSettings>
                                            <MasterTableView>
                                                <Columns>
                                                    <telerik:GridTemplateColumn HeaderText="Container Type" DataField="ContainerType"
                                                        HeaderStyle-HorizontalAlign="Center">
                                                        <ItemTemplate>
                                                            <telerik:RadComboBox ID="cbContainerType" Height="100px" Width="200px" runat="server"
                                                                ItemsPerRequest="10" ShowMoreResultsBox="true" EnableVirtualScrolling="true"
                                                                EnableAutomaticLoadOnDemand="False" AccessKey="T" MarkFirstMatch="true" EmptyMessage="Select"
                                                                HighlightTemplatedItems="true">
                                                            </telerik:RadComboBox>
                                                            <asp:Label ID="lblContainrtTypeId" runat="server" Text='<%#Eval("nContainerId") %>'></asp:Label>
                                                            <asp:RequiredFieldValidator ID="rfvcbContainerType" runat="server" ControlToValidate="cbContainerType"
                                                                ForeColor="Red" ValidationGroup="vgBooking" Display="none" EnableClientScript="true">
                                                            </asp:RequiredFieldValidator>
                                                        </ItemTemplate>
                                                    </telerik:GridTemplateColumn>
                                                    <telerik:GridTemplateColumn HeaderText="No Of Container" UniqueName="Container" DataField="ContainerNo">
                                                        <ItemTemplate>
                                                            <telerik:RadNumericTextBox ID="txtContainer" Text='<%#Eval("NoOfContainer") %>' Width="200px"
                                                                runat="server" MaxLength="10" MinValue="1" MaxValue="2147483647">
                                                                <NumberFormat GroupSeparator="" DecimalDigits="0" />
                                                            </telerik:RadNumericTextBox>
                                                            <span style="color: Red; font-weight: normal; font-size: 20px; vertical-align: middle;">
                                                                *</span>
                                                            <asp:RequiredFieldValidator ID="rfvtxtContainer" runat="server" ControlToValidate="txtContainer"
                                                                ForeColor="Red" ValidationGroup="vgBooking" Display="none" EnableClientScript="true">
                                                            </asp:RequiredFieldValidator>
                                                        </ItemTemplate>
                                                    </telerik:GridTemplateColumn>
                                                    <telerik:GridTemplateColumn UniqueName="Container" HeaderStyle-HorizontalAlign="Center">
                                                        <ItemTemplate>
                                                            <telerik:RadButton ID="btnAddContainer" Width="100px"
                                                                runat="server" Text="+" Font-Bold="True" OnClick="btnAddContainer_Click">
                                                            </telerik:RadButton>
                                                        </ItemTemplate>
                                                    </telerik:GridTemplateColumn>
                                                </Columns>
                                            </MasterTableView>
                                        </telerik:RadGrid>

and one submit button

 <telerik:RadButton ID="btnsubmit " Width="100px" runat="server" Text="Submit"
                                                        Font-Bold="True" OnClick="btnsubmit _Click" ValidationGroup="vgBooking">
                                                    </telerik:RadButton>

 and ajax manager is

 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

<AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="btnAddContainer">
                <UpdatedControls>
                   <telerik:AjaxUpdatedControl ControlID="gvContainerDetail" > </telerik:AjaxUpdatedControl>
                    </telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

 

after clicking on submit button first time validation works properly and if i click on '+' button in grid one row is added in grid the ajax is works correctly but problem is that if i am clicked on again submit button the client side validation in grid is not working the page is post back

Maria Ilieva
Telerik team
 answered on 21 May 2015
11 answers
236 views
I am trying to set the combo box to index 0 but nothing happens.   What is wrong?

<head runat="server">
  <title></title>
</head>
<body>
  <form id="form1" runat="server">
  <div>
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
      <script type="text/javascript">
  
  
        function ResetScreen() {
  
          var oCbo = $find("<%=cboTransferMethod.ClientID %>");
          oCbo.set_selectedIndex(0);
        }
  
      </script>
    </telerik:RadCodeBlock>
    <telerik:RadComboBox ID="cboTransferMethod" runat="server" Skin="Simple" TabIndex="1"
      ToolTip="Transfer Method">
      <Items>
        <telerik:RadComboBoxItem runat="server" Text="Email" Value="E" />
        <telerik:RadComboBoxItem runat="server" Text="FTP" Value="F" />
        <telerik:RadComboBoxItem runat="server" Text="Move To Folder" Value="M" />
      </Items>
    </telerik:RadComboBox>
    <asp:Button ID="btnClear" runat="server" OnClientClick="ResetScreen(); return false;"
      TabIndex="1" Text="Clear" ToolTip="Clear" UseSubmitBehavior="false" />
  </div>
  </form>
</body>
</html>
Nencho
Telerik team
 answered on 21 May 2015
1 answer
111 views

How would you go about caching the steps' data so that all steps can be aware of each other?

 

Step 1 has a list of object type Product.

Step 2 details all Procuts in a RadListView.

 

I want Step 2 to bind based on Step 1's user input.

 

 TIA!

Plamen
Telerik team
 answered on 21 May 2015
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?