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

plz help me

 How do I find the lbljson in a nested grid?

findcontrol

<telerik:RadGrid ID="RadGrid3" runat="server" ShowStatusBar="True" AutoGenerateColumns="False"
           PageSize="7" AllowSorting="True" AllowPaging="True"
           OnDetailTableDataBind="RadGrid3_DetailTableDataBin  d" OnNeedDataSource="RadGrid3_NeedDataSource"
           OnPreRender="RadGrid3_PreRender" Skin="Bootstrap" AllowFilteringByColumn="True" GroupPanelPosition="Top" ShowGroupPanel="True" OnItemDataBound="RadGrid3_ItemDataBound">
           <PagerStyle Mode="NumericPages"></PagerStyle>
           <ClientSettings AllowDragToGroup="True">
           </ClientSettings>
           <MasterTableView DataKeyNames="ID" AllowMultiColumnSorting="True">
               <DetailTables>
                   <telerik:GridTableView DataKeyNames="ID" Name="Short" Width="100%">
                       <DetailTables>
                           <telerik:GridTableView DataKeyNames="ShortUrlID" Name="report" Width="100%">
                               <Columns>
                                   <telerik:GridBoundColumn SortExpression="Domain" HeaderText="Domain"
                                       DataField="Domain">
                                             
                                   </telerik:GridBoundColumn>
                                      <telerik:GridBoundColumn SortExpression="JsonStringReport" HeaderText="JsonStringReport"
                                       DataField="JsonStringReport">
                                             
                                   </telerik:GridBoundColumn>
                                   <telerik:GridTemplateColumn HeaderText="IP">
                                       <ItemTemplate>
                                           <asp:Label ID="Label4" runat="server" Visible="False" Text='<%# Eval("ID") %>'></asp:Label>
                                           <asp:Label ID="lbldomain" runat="server" Visible="False" Text='<%# Eval("Domain") %>'></asp:Label>
  
  
                                           <asp:Label ID="lbljson" runat="server" Text='<%# Eval("JsonStringReport") %>' Visible="False"></asp:Label>
                                           <asp:Label ID="lblIP" runat="server" Text=""></asp:Label>
                                       </ItemTemplate>
                                   </telerik:GridTemplateColumn>
                                   <telerik:GridTemplateColumn HeaderText="DateTimeClick">
                                       <ItemTemplate>
                                           <asp:Label ID="lblClickDate" runat="server" Text=""></asp:Label>
                                       </ItemTemplate>
                                   </telerik:GridTemplateColumn>
                                        <telerik:GridTemplateColumn AllowFiltering="False">
                       <ItemTemplate>
                           <a href="#" data-featherlight="#fl<%# Eval("ID") %>"><em class="icon-eye"></em></a>
                           <div class="lightbox" id='fl<%# Eval("ID") %>'>
                               <div class="col-lg-12">
                                   <!-- START panel-->
                                   <div class="panel panel-default">
                                       <div class="panel-heading">Target Information</div>
                                       <div class="panel-body">
                                           <!-- START table-responsive-->
                                           <div class="table-responsive"> </div>
                       </ItemTemplate>
                   </telerik:GridTemplateColumn>
                               </Columns>
                           </telerik:GridTableView>
                       </DetailTables>
                       <Columns>
                           <telerik:GridBoundColumn SortExpression="ShortLinkID" HeaderText="ShortURL ID"
                               DataField="ShortLinkID">
                           </telerik:GridBoundColumn>
                           <telerik:GridBoundColumn SortExpression="Domain" HeaderText="Domain"
                               DataField="Domain">
                           </telerik:GridBoundColumn>
                           <telerik:GridBoundColumn SortExpression="Count" HeaderText="Count"
                               DataField="Count">
                           </telerik:GridBoundColumn>
                           <telerik:GridBoundColumn SortExpression="Status" HeaderText="Status"
                               DataField="Status">
                           </telerik:GridBoundColumn>
  
  
                           <telerik:GridBoundColumn SortExpression="DateTime" HeaderText="DateTime"
                               DataField="DateTime">
                           </telerik:GridBoundColumn>
                       </Columns>
                   </telerik:GridTableView>
               </DetailTables>
               <Columns>
  
  
                   <telerik:GridBoundColumn SortExpression="TargetName" HeaderText="TargetName"
                       DataField="TargetName">
                   </telerik:GridBoundColumn>
                   <telerik:GridBoundColumn SortExpression="TargetDesc" HeaderText="TargetDesc"
                       DataField="TargetDesc">
                   </telerik:GridBoundColumn>
                   <telerik:GridBoundColumn SortExpression="Name" HeaderText="Creator" DataType="System.string"
                       DataField="Name">
                   </telerik:GridBoundColumn>
                   <telerik:GridBoundColumn SortExpression="DateTime" HeaderText="DateTime"
                       DataField="DateTime">
                   </telerik:GridBoundColumn>
                   <telerik:GridBoundColumn SortExpression="Status" HeaderText="Status"
                       DataField="Status">
                   </telerik:GridBoundColumn>
               </Columns>
           </MasterTableView>
       </telerik:RadGrid>

Konstantin Dikov
Telerik team
 answered on 29 May 2015
1 answer
290 views

Good day,

 we have implemented a flex layout to accommodate our typical site page setup with a formview on top and one or more radgrids at the bottom.

The flex based design uses a non stretching top space dedicated to the formview, and a stretching inferior part dedicated to the grids.

We would like to implement a dynamic pagesize solution to take advantage of our site's fluid design. We've already solved all containment challenges so the radgrid's container implements auto scroll, but because of the grids' pagesizes, the grids remain limited in vertical size and never benefit from a taller display than the 'design' one.

We would like to know how to implement a dynamic pagesize based on the grid's container height, or any equivalent paging solution that would allow our grids to resize vertically automatically and take advantage of dynamic vertical space.

Konstantin Dikov
Telerik team
 answered on 29 May 2015
2 answers
146 views
Is it possible to show the XAxis on the bottom edge of the chart, regardless of the values on the YAxis? It defaults to being drawn at zero, and I've not found a way to change that yet. I've included screenshots to help visualize what I want. The first is how the chart currently renders, the second is how I'd like it to render.
Danail Vasilev
Telerik team
 answered on 29 May 2015
1 answer
162 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
88 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
547 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
116 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
99 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
98 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
101 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?