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

Hi,

i m new in using the telerik control. i have done a lot of RND on the control but i have got stuck on desinging the control.

i have attacht the image of my requeriment.

so far i have added the Button for "Add New Record".

Angel Petrov
Telerik team
 answered on 29 May 2015
5 answers
101 views

In my project i have installed the Controls 2013 Q3, ASPX.NET AJAX version 2013.3.1015.35.

My problem occurs when the controls have like 4 minutes of inactivity; the RadWindows are closing without any click event or similar, context menus don't fire events, the comboboxes sometimes can be opened; and i have to refresh the page to get the controls's events.

If is important, the site's session state in those moment was alive.

I have been searching about this issue in a lot of forums, but the issues that the people wrote about it.

Regards

Andres Quesada
Top achievements
Rank 1
 answered on 28 May 2015
10 answers
568 views
Hi,

My requirement is as follows:

I want to attach radgrid data to mail and send it across

Ho can I achieve this?

Thanks,
BoddaGetta
Top achievements
Rank 1
 answered on 28 May 2015
2 answers
126 views

I have troubles with RadEditor. Everything works fine without validators.

When I add validator on page Editor starts behave weird. I can not paste text into editor. I can not insert image with Image manager and etc.

I have no idea what I am doing wrong.

This is my code:

01.<div class="formRow">
02.    <div class="formColumn one">
03.        <asp:Label ID="LabelFooterTitle" runat="server" AssociatedControlID="RadTextBoxFooterTitle">
04.            <asp:Literal ID="LiteralFooterTitle" runat="server" Text="<%$ Resources:Texts, title %>" />
05.        </asp:Label>
06.        <telerik:RadTextBox ID="RadTextBoxFooterTitle" runat="server" TextMode="SingleLine" EnableEmbeddedBaseStylesheet="false" EnableEmbeddedSkins="false"
07.            Skin="Youbeee" Width="100%" EmptyMessage="<%$ Resources:Texts, title %>"></telerik:RadTextBox>
08.        <asp:RequiredFieldValidator ID="TitleValidator" runat="server" ControlToValidate="RadTextBoxFooterTitle" Display="Dynamic" ErrorMessage="Title is required!"
09.            ValidationGroup="formGroup">*</asp:RequiredFieldValidator>
10.    </div>
11.</div>
12.<div class="formRow">
13.    <div class="formColumn one">
14.        <asp:Label ID="LabelFooterContent" runat="server" AssociatedControlID="RadEditorFooterContent">
15.            <asp:Literal ID="LiteralFooterContent" runat="server" Text="<%$ Resources:Texts, content %>" />
16.        </asp:Label>
17.        <telerik:RadEditor ID="RadEditorFooterContent" runat="server" NewLineMode="Br" Skin="Silk" Width="100%">
18.            <ImageManager ViewPaths="~/Images/UsersImg" UploadPaths="~/Images/UsersImg" DeletePaths="~/Images/UsersImg" EnableAsyncUpload="true" />
19.        </telerik:RadEditor>
20.    </div>
21.</div>
22.<div class="buttons">
23.    <telerik:RadButton ID="RadButtonSave" runat="server" Text="<%$ Resources:Texts, save %>" OnClick="RadButtonSave_Click"
24.        CausesValidation="true" Visible="true" EnableEmbeddedSkins="false" AutoPostBack="true" Skin="Youbeee" ValidationGroup="formGroup" />
25.</div>

Jiri
Top achievements
Rank 1
 answered on 28 May 2015
1 answer
108 views
 <telerik:RadGrid ID="rgUploadedFiles" runat="server" PageSize="10" EnableEmbeddedSkins="false" Skin="MyCustomSkin" OnItemDataBound="rgUploadedFiles_ItemDataBound" AllowPaging="True" AutoGenerateColumns="False" GroupPanelPosition="Top">                <MasterTableView CommandItemDisplay="Bottom" HorizontalAlign="NotSet" EditMode="Batch" AutoGenerateColumns="False">                 <ColumnGroups>                       <telerik:GridColumnGroup HeaderText="Product Details " Name="ProductDetails" HeaderStyle-HorizontalAlign="Center">                        </telerik:GridColumnGroup>                     <telerik:GridColumnGroup HeaderText="Other info" Name="Other" HeaderStyle-HorizontalAlign="Center">                      </telerik:GridColumnGroup>                  </ColumnGroups>                    <CommandItemTemplate>                    </CommandItemTemplate>                   <BatchEditingSettings EditType="Cell" />                    <Columns>                       <telerik:GridBoundColumn DataField="SrNo" HeaderStyle-Width="30px" HeaderText="Sr. No" ReadOnly="true" UniqueName="SrNo">                      </telerik:GridBoundColumn>                       <telerik:GridBoundColumn DataField="ActualFileName" HeaderStyle-Width="210px" HeaderText="Actual File Name" ReadOnly="true" UniqueName="ActualFileName">                     </telerik:GridBoundColumn>                       <telerik:GridBoundColumn DataField="FixedFileName" HeaderStyle-Width="210px" HeaderText="Fixed File Name" ReadOnly="true" UniqueName="FixedFileName" ColumnGroupName="ProductDetails">                      </telerik:GridBoundColumn>                <telerik:GridTemplateColumn HeaderStyle-Width="180px" HeaderText="Variable Name" UniqueName="VariableName" ColumnGroupName="ProductDetails">                           <ItemTemplate>                           <asp:TextBox ID="txtVariableName" runat="server" Text=""></asp:TextBox>                            </ItemTemplate>                       </telerik:GridTemplateColumn>                      <telerik:GridTemplateColumn HeaderStyle-Width="380px" HeaderText="File Title" UniqueName="FilTitle" ColumnGroupName="Other" ItemStyle-VerticalAlign="Middle">                           <ItemTemplate>                           <telerik:RadComboBox ID="rcmbEctdFiletitle" OnClientSelectedIndexChanged="OnClientSelectedIndexChanged" runat="server" Filter="StartsWith" AllowCustomText="true" CloseDropDownOnBlur="true">                           </telerik:RadComboBox>                           </ItemTemplate>                       </telerik:GridTemplateColumn>                   </Columns>               </MasterTableView>        </telerik:RadGrid>

 

 

 

when i hide second column ,"Variable Name" column shown under "ProductDetails" group Header

Konstantin Dikov
Telerik team
 answered on 28 May 2015
1 answer
103 views

Hi,

 I have a grid column declared as follows:

 

<telerik:GridDateTimeColumn CurrentFilterFunction="GreaterThanOrEqualTo" DataField="ClockedInAt" DataType="System.DateTime" EditDataFormatString="dd-MMM-yyyy HH:mm" FilterControlAltText="Filter column column" FilterDateFormat="dd-MMM-yyyy HH:mm" PickerType="DateTimePicker" UniqueName="column">
</telerik:GridDateTimeColumn>

As you can see even though I have set the time to 16:16 I am still getting entries earlier than that, namely 16:15. Can anyone shed any light on how I can fix this?

Konstantin Dikov
Telerik team
 answered on 28 May 2015
4 answers
109 views

I have the following code in my project:

 

protected void radGrid1_OnItemDataBound(object sender, GridItemEventArgs e)
      {
          var rowIndex = -1;
 
          if (e.Item is GridDataItem)
          {
              GridDataItem dataItem = e.Item as GridDataItem;   
 
              if ((dataItem[" "].Text == "<b>Total Capacity</b>") || (dataItem[" "].Text == "<b>Total Requested Capacity</b>")
                  || (dataItem[" "].Text == "<b>Total Remaining Capacity</b>"))
              {
                  rowIndex = dataItem.ItemIndex;
                  dataItem.BackColor = System.Drawing.ColorTranslator.FromHtml("#F7E69E");
 
              }
 
          }
 
      }

I've attached a screen shot. If you look at the column headers the last one is "4/2016". However the data is just gone. That whole column is blank. The colored rows do not extent into that column. If i drag select the columns on the screen it's like that column does not even exist. 

Any idea why a simple change such as this would cause an issue with the columns?

 

Julian
Top achievements
Rank 1
 answered on 28 May 2015
1 answer
181 views

Hi,

Do you have a control that allows users to add items and delete, like the tags selection on forums works (see screenshot)?

Nencho
Telerik team
 answered on 28 May 2015
7 answers
157 views

Hi,

I'm using this project as base for an application.
Each grid item has a className in this format "row1col3". The project has implemented custom navigation with the arrow keys, that uses these names.
My problem is that when I add a RadComboBox it is not named as such. In fact its className is empty this poses problems with the custom navigation and is a huge problem in my application. My implementation of the RCB in the grid is as follows:

<telerik:GridTemplateColumn runat="server" UniqueName="time_code_id" HeaderText="Time Code" SortExpression="time_code" DataField="time_code_id">
                        <FooterTemplate>Footer Template</FooterTemplate>
                        <FooterStyle VerticalAlign="Middle" HorizontalAlign="Center"></FooterStyle>
                        <ItemTemplate>
                            <%#DataBinder.Eval(Container.DataItem,"time_code_id") %>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <telerik:RadComboBox runat="server" ID="cellCombo" DataValueField="time_code_id"
                                DataTextField="description"
                                HighlightTemplatedItems="True" Height="140" Width="220" DropDownWidth="420"
                                DataSourceID="SqlDataSource5" SelectedValue='<%#Bind("time_code_id") %>' ShowDropDownOnTextboxClick="True" EnableLoadOnDemand="True" Filter="Contains" OnClientDropDownOpening="Opening">
                                <HeaderTemplate>
                                    <label>Time Code</label>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <%#DataBinder.Eval(Container,"Text") %>
                                </ItemTemplate>
                            </telerik:RadComboBox>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>

I hope you are able to point me in the right direction

 

Regards

Casper Andersen

Casper
Top achievements
Rank 1
 answered on 28 May 2015
6 answers
587 views
I am using inplace editing on a RadGrid that is built using a class file. Everything is working well except I am having an issue the SelectedIndexChanged event not firing when the grid is in edit mode. Any thoughts?

Column Definition:
GridDropDownColumn _ID = new GridDropDownColumn
                         {
                             DataField = "ID",
                             HeaderText = "ID",
                             UniqueName = "ID",
                             ListTextField = "ID",
                             ListValueField = "ID",
                             ListDataMember = "ID",
                             DropDownControlType = GridDropDownColumnControlType.RadComboBox,
                             HeaderStyle = { Width = Unit.Pixel(140) },
                             ItemStyle = { Width = Unit.Pixel(140) },
                             ReadOnly = false,
                             Display = true,
                         };
_reinsurerRadGrid.MasterTableView.Columns.Add(_ID);

UserControl Code:
private void RadGrid_ItemCreated(object sender, GridItemEventArgs e)
{
    if (e.Item is GridEditableItem && e.Item.IsInEditMode)
    {
        try
        {
            if ((e.Item as GridDataItem) == null) { return; }
            ((RadNumericTextBox) (e.Item as GridDataItem)["Percentage"].Controls[0]).Width = Unit.Pixel(75);
            ((TextBox) (e.Item as GridDataItem)["Code"].Controls[0]).Width = Unit.Pixel(75);
 
            RadComboBox _participantList = (e.Item as GridEditableItem)["ID"].Controls[0] as RadComboBox;
            if (null == _participantList) { return; }
 
            _participantList.Width = Unit.Pixel(120);
            _participantList.DataValueField = "ID";
            _participantList.DataTextField = "ID";
            _participantList.AutoPostBack = true;
            _participantList.DataSource = MAASBaseInterface.ParticipantAPI.GetParticipants();
            _participantList.DataBind();
            _participantList.SelectedIndexChanged += new RadComboBoxSelectedIndexChangedEventHandler(_participantList_SelectedIndexChanged);
 
            if (!(e.Item.DataItem is GridInsertionObject))
                _participantList.SelectedValue = ((Participant) (e.Item.DataItem)).ID.ToString();
            if (e.Item.DataItem is GridInsertionObject)
                _participantList.EmptyMessage = "-- Select --";
        }
        catch (Exception ex)
        {
 
            string _ex = ex.Message;
        }
    }
}
 
void _participantList_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
    //first reference the edited grid item through the NamingContainer attribute
    GridEditableItem editedItem = (sender as RadComboBox).NamingContainer as GridEditableItem;
    int _selectedValue = Convert.ToInt32((editedItem["ID"].Controls[0] as RadComboBox).SelectedValue);
    ParticipantList _participants = MAASBaseInterface.ParticipantAPI.GetParticipants();
    Participant _participant = _participants.Where(a => a.ID == _selectedValue) as Participant;
    RadTextBox _code = editedItem["Code"].Controls[0] as RadTextBox;
    _code.ReadOnly = false;
    _code.Text = _participant.Code;
}

Jaspal
Top achievements
Rank 1
 answered on 28 May 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?