Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
734 views
Hello all,
I have spent a couple hours to find out how to hide the item label, but I am keeping fail. I think this is a simple property but I dun know which belongs to. So does anyone know?

thx
Evgenia
Telerik team
 answered on 01 Jul 2011
1 answer
64 views
protected void RadGrid1_PreRender(object sender, EventArgs e)
        {
            RadGrid RadGrid1 = (RadGrid)sender;
            if(RadGrid1.Items.Count==0)
            {
                RadGrid1.Visible = false;
            }
}

This is a inner RadGrid. In this, I would like to reach to outer RadGrid column and set that column visible=false. So  my question is how to I reach to parent grid column from inner grid ?

Please help,

Smiely
Princy
Top achievements
Rank 2
 answered on 01 Jul 2011
1 answer
101 views
Hi,

I want to show filter expression show by default on page load.

Title Contains 'IPhone'

How to show this automatically without click Add button?

Regards
Shinu
Top achievements
Rank 2
 answered on 01 Jul 2011
1 answer
89 views
Hi,

How to html code in pdf for radeditor.exporttopd() ?

Thank you.
Dobromir
Telerik team
 answered on 01 Jul 2011
1 answer
50 views

One of the GridTemplateColumn columns in my radgrid isn't populated by a database so its AllowFiltering property is set to false.  However, I want to put a loading gif where <FilterTemplate> puts its markup.

How do I do this?

<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="true"  OnNeedDataSource="RadGrid1_NeedDataSource">
<Columns>
  <telerik:GridTemplateColumn UniqueName="MyCol1" AllowFiltering="false">
     <FilterTemplate>
           <!-- I want to put image here, but it doesn't display if AllowFilter=false -->
          <img src="images/loading.gif" />    
    </FilterTemplate>
     <ItemTemplate>
         <asp:Hyperlink ID="MyLink" runat="server" Text="MyLink"></asp:Hyperlink>
     </ItemTemplate>
  </telerik:GridTemplateColumn>
</Columns>
</telerik:RadGrid>

Any help is appreciated.
Shinu
Top achievements
Rank 2
 answered on 01 Jul 2011
1 answer
66 views
Hello,

Can someone tell  me how to provide a box to provide confirmation before deletion in grid view.

I have this thing in my grid view 

   <ItemTemplate>
<asp:ImageButton ID="ImageButton1" runat="server" AlternateText="Delete Customer"
OnClientClick="javascript:if(!confirm('This action will move the selected employee to his source store . Are you sure?')){return false;}"
CausesValidation="false"

OnClick = "RadGrid1_ItemDeleted1"

CommandName="Delete"
CommandArgument='<%# Eval("EmployeeNumber") %>'
ImageUrl="~/_Layouts/delete/images.jpg" />

</ItemTemplate>
Now in the click event how to I get the row for which the delete was clicked.

Thanks
Shinu
Top achievements
Rank 2
 answered on 01 Jul 2011
3 answers
124 views
Hi Friends,
This is my Grid

<

 

 

telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="true" PageSize="100" OnPageIndexChanged="RadGrid1_PageIndexChanged">

 

<MasterTableView CommandItemDisplay="TopAndBottom" PagerStyle-Position="TopAndBottom"

 

AutoGenerateColumns="true">

 

<ItemStyle Wrap="True" />

 

<HeaderStyle Wrap="False" Width="200px" />

 

<FilterItemStyle Wrap="False" />

 

<PagerStyle Mode="NextPrevAndNumeric" />

 

<CommandItemTemplate>

 

<telerik:RadMenu ID="RadOptionsMenu" runat="server" ClickToOpen="false"

 

EnableRoundedCorners="true" EnableShadows="true"

 

OnItemClick="RadOptionsMenu_Clicked"

 

Skin="Vista">

 

<CollapseAnimation Duration="200" Type="OutQuint" />

 

<Items>

 

<telerik:RadMenuItem AccessKey="x" CssClass="MenuText" Text="Export">

 

<Items>

 

<telerik:RadMenuItem runat="server" Text="Excel">

 

</telerik:RadMenuItem>

 

</Items>

 

</telerik:RadMenuItem>

 

</Items>

 

</telerik:RadMenu>

 

<table width="100%">

 

<tr>

 

<td style="height: 10px;">

 

&nbsp;

 

</td>

 

</tr>

 

</table>

 

</CommandItemTemplate>

 

</MasterTableView>

 

<ClientSettings>

 

</ClientSettings>

 

</telerik:RadGrid>


The  menu item "Excel" is not showing up after the grid page index is changed. Its working fine in Load. I am using

RadAjaxPanel also.


Please help me.
Thanks
Ratheesh

 

Ratheesh
Top achievements
Rank 1
 answered on 30 Jun 2011
13 answers
197 views
I am having a issue displaying data from a dataset to a Hierarchical RadGrid. I have created a small solution that will display the issue, but I have no way of posting it. the solution is a n-teir solution and a website that is built to use user controls to build and display the data. I am defining the hierarchical datagrid in a .cs class in my controls folder of the website.

Data: I have 3 rows of data in the Parent and each row has child records.
  • Row 1 displays properly
  • Row 2 displays properly
  • Row 3 does not display any data until you move to page 2 on the pager control. Incidentally the record ID's for the child records in row 3 begin at 12 and the page size is set for 10 records to be displayed per page.

I am wondering if there is a problem with my Grid definition class. The Sample DataSet in the DAL appears to be correctly set up but I feel I have overlooked something.

Let me know how I can upload the solution.

Edit:
I did some additional checking and it seems that the grid is loading the data based on the ID of the record rather than the row number.
On Row 2 the child table ID's are 5 - 11. I have 10 records being displayed per page. Records 5-10 display on the first page. If I change the Page size to 5 then 1 record displays, the record with the ID 5. I am assuming I have missed some setting on the grid definition else this is a really bad defect.
Tim
Top achievements
Rank 2
 answered on 30 Jun 2011
3 answers
206 views
Can you please tell me if it's possible to fire the ToolTip when the appointment is clicked in a RadScheduler rather than have it fire every time someone mouses over an appointment?

Thanks in advance,
David
Pradeep
Top achievements
Rank 1
 answered on 30 Jun 2011
1 answer
106 views
See attached image. I would like to set the labels under each of the bars in my bar chart. They are currently just 1, 2, and 3. How would I could about manually setting them?

Here is my code for building that chart:

protected void makeStockChart()
        {
            RadChart stockChart = new RadChart();
            stockChart.ChartTitle.Visible = false;
            stockChart.Appearance.Border.Visible = false;
            stockChart.Legend.Appearance.Visible = false;
            stockChart.PlotArea.YAxis.Appearance.Visible = Telerik.Charting.Styles.ChartAxisVisibility.False;
            stockChart.PlotArea.Appearance.FillStyle.MainColor = System.Drawing.Color.White;
            stockChart.PlotArea.Appearance.FillStyle.SecondColor = System.Drawing.Color.White;
            stockChart.PlotArea.Appearance.Border.Color = System.Drawing.Color.White;
 
            // Create a ChartSeries and assign its name and chart type
            ChartSeries chartSeries = new ChartSeries();
            chartSeries.Name = "Count";
            chartSeries.Type = ChartSeriesType.Bar;
 
            // Open SQL Connection
            SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString);
            connection.Open();
            SqlCommand command = new SqlCommand("GetStockData", connection);
            command.CommandType = CommandType.StoredProcedure;
            SqlDataReader reader = command.ExecuteReader();
 
            while (reader.Read())
            {
                // Pretty up the value
                string value = string.Format("{0:d}", (reader.GetValue(1)));
                
                // Set value and value text
                ChartSeriesItem chartSeriesItem = new ChartSeriesItem(Convert.ToDouble(reader.GetValue(1)), value);
                chartSeriesItem.Name = reader.GetValue(0).ToString();
                 
                chartSeries.AddItem(chartSeriesItem);
                 
            }
             
            // Close SQL Connection
            connection.Close();
 
            // add the series to the RadChart Series collection
            stockChart.Series.Add(chartSeries);
            // add the RadChart to the page.
            this.stockChart.Controls.Add(stockChart);
             
        }
William
Top achievements
Rank 1
 answered on 30 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?