Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
86 views
Hi,

I am facing an issue when I add a Rad ComboBox to an normal ASP .NET gridview and place the grid in a vertically scrollable div. The div scrolls vertically. This works fine in all browsers except IE7. In IE7 there is additional white space equal to the size of the grid that appears below the page. Though the records are not visible white space appears below the grid. And I have found that the space is because of the RAD ComboBox.

Please help!!

Dimo
Telerik team
 answered on 04 Nov 2009
1 answer
88 views
Will the RadContextMenu ever be able to populate all of its items from a web service? Not just child items?

We use the RadContextMenu in a web application environment where the content of the menu needs to be completely different based on which element of the screen is clicked on. We're currently populating the menu by enclosing it within its own update panel and rebuilding it before each display; however, that is very slow, cumbersome, and has other glitches.

Will you consider allowing all of the menu to be populated from a web service as a future enhancement?


Thank you,
Terry
Yana
Telerik team
 answered on 04 Nov 2009
1 answer
108 views
Hello,

When I have a RadListBox in a RadPanelItem in an MVC view (note: which is also data bound), I get an JS error related to this method in ControlItem client-side class

_initialize: function(json, element)
    {
     
    },

json is null.  Why would that be?  So when it looks for attributes, it is throwing an exception.

Thanks.
Atanas Korchev
Telerik team
 answered on 04 Nov 2009
1 answer
74 views
HI,
I have one doubt w.r.t to sample code specified in Radgrid Grouping. It refers to some header, footer conrols. where can  i find these.

Also, i would like to remove following from display :

1. Field name used for grouping appearing on left top corner.
2. Page Size Change option
3. Go to Page option

Thanks and regards,
Manish Patel
Princy
Top achievements
Rank 2
 answered on 04 Nov 2009
1 answer
379 views
When I set Y axis of Radchart as Secondary Axis

telerikSeries.YAxisType = Telerik.Charting.ChartYAxisType.Secondary;

it hide Y Axis label, why this is happening ? Can anyone guide me to display Y Axis Label

Code: Y Axis as secondary axis
        <telerik:RadChart ID="RadChart1" runat="server" Width="480px" Height="290px">
            <Series>
                <telerik:ChartSeries Name="Series 1" YAxisType="Secondary" >
                    <Items>
                        <telerik:ChartSeriesItem YValue="1" Name="Item 1">
                        </telerik:ChartSeriesItem>
                        <telerik:ChartSeriesItem YValue="2" Name="Item 2">
                        </telerik:ChartSeriesItem>
                        <telerik:ChartSeriesItem YValue="4" Name="Item 3">
                        </telerik:ChartSeriesItem>
                        <telerik:ChartSeriesItem YValue="3" Name="Item 4">
                        </telerik:ChartSeriesItem>
                        <telerik:ChartSeriesItem YValue="5" Name="Item 5">
                        </telerik:ChartSeriesItem>
                    </Items>                    
                </telerik:ChartSeries>
                
            </Series>
        </telerik:RadChart>




Please go through the screenshot of both scenarios ..

1. defaultaxis.jpg - normal behavior of Chart
2. y axis secondaryaxis.jpg - Y axis set as secondary axis

Mahesh Bhor
Top achievements
Rank 1
 answered on 04 Nov 2009
1 answer
268 views

My problem is I want to hide the edit column in my RadGrid and only show the "Delete" column and at the bottom a link to let the user insert or add a new record. If I do not hide the edit column then click my command button to show the insert code it works fine and I see an Insert and Cancel link. However, if I add visible = "false" to the GridEditCommandColumn like this:

<telerik:GridEditCommandColumn Visible="true" />

then all of a sudden my Insert and Cancel buttons disappear when in insert mode yet the form field is still there. I have also tried to hide the column programmatically in PreRender but the same thing happens. Please advise on how to hide the edit column without affecting the insert functionality.

<telerik:RadGrid ID="myGrid" runat="server"   
                    OnInsertCommand="myGrid_OnInsertCommand"                      
                    OnNeedDataSource="myGrid_OnNeedDataSource" 
                    OnDeleteCommand="myGrid_OnDeleteCommand"                      
                    OnColumnCreated="myGrid_OnColumnCreated"   
                    OnPreRender="myGrid_PreRender1" 
                    Width="500px" AutoGenerateDeleteColumn="True" AllowFilteringByColumn="True" AutoGenerateColumns="False" 
                    GridLines="None">  
                  
                    <MasterTableView DataKeyNames="PhoneNumber" EditMode="InPlace" InsertItemDisplay="Bottom" 
                        CommandItemDisplay="Bottom">  
                        <RowIndicatorColumn> 
                            <HeaderStyle Width="20px"></HeaderStyle> 
                        </RowIndicatorColumn> 
                        <ExpandCollapseColumn> 
                            <HeaderStyle Width="20px"></HeaderStyle> 
                        </ExpandCollapseColumn> 
                        <Columns> 
                            <telerik:GridBoundColumn DataField="PhoneNumber" HeaderText="Phone Number" UniqueName="PhoneNumber">  
                            </telerik:GridBoundColumn>                        
                            <telerik:GridEditCommandColumn Visible="false"  />                            
                        </Columns> 
                        <EditFormSettings> 
                            <EditColumn UniqueName="EditCommandColumn1"  > 
                            </EditColumn> 
                        </EditFormSettings> 
                        <CommandItemTemplate> 
                            <div style="padding: 3px;">  
                                <asp:ImageButton ID="addNewPhonelistImg" runat="server" ImageUrl="add.gif" CommandName="InitInsert" /> 
                                <asp:LinkButton CommandName="InitInsert" ID="addNewPhonelist" Text="Insert New Phone Number" 
                                    runat="server" Font-Size="Small" /> 
                            </div> 
                        </CommandItemTemplate> 
                    </MasterTableView> 
                    <FilterMenu> 
              
                    </FilterMenu> 
                </telerik:RadGrid> 
                     

Princy
Top achievements
Rank 2
 answered on 04 Nov 2009
1 answer
94 views
Hello,
I must save all temporary files into C:\temp
It is not virtual directory and i have not permission create this directory as virtual.
I attempt set chart.TempImagesFolder = @"C:\temp"; but an exception occured.
How can i set this folder for temporary files of the Chart control?

Vladimir Milev
Telerik team
 answered on 04 Nov 2009
15 answers
628 views
Hi folks !!

Can u guys please help me to sort me out of the below mentioned problem ??

Actually, Iam using RAD GRID in my project. The header column of the grid is bit broader then it actually seems to be. My problem is that i want the header column of the RAD GRID to be shorten up or actually as that shown in your demo grid at the below mentioned link :-
   

http://demos.telerik.com/aspnet-ajax/grid/examples/client/resizing/defaultcs.aspx

I want my RAD GRID to show exactly it looks as yours.

My second issue is that, I want RAD GRID to occupy all the space/width for the COLUMN HEADER.

If we look carefully on to the DEMO GRID there is some space on the left size of the first column. I want it not to be shown as its been in demo.


If u please help me , it would be my pleasure.



Thanks.

Augusto Cosatti
Top achievements
Rank 1
 answered on 04 Nov 2009
13 answers
410 views

i pass the value of the dataset(ds) to the detailsview datasource but it wont work can anybody help me?

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="MeetingNotes.ascx.cs" Inherits="Project_MeetingNotes" %>

<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:MeetWebStyleConnectionString %>"
SelectCommand="MWS_Meetings_Get_List" SelectCommandType="StoredProcedure">
</asp:SqlDataSource>


<asp:SqlDataSource ID="SqlDSBrainStormIDView" runat="server"
ConnectionString="<%$ ConnectionStrings:MeetWebStyleConnectionString %>"
SelectCommand="MWS_Brainstorm_items_GetByMeeting_idView"
SelectCommandType="StoredProcedure" >
<SelectParameters>
<asp:ControlParameter ControlID="RadGrid1" DefaultValue="7" Name="Meeting_id"
PropertyName="SelectedValue" Type="Int32" />
<%--<asp:ControlParameter ControlID="Label1" PropertyName="Text" Type="String" Name="meeting_id" />--%>
</SelectParameters>



</asp:SqlDataSource>


<telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
</telerik:RadScriptManager>


<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadGrid1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadGrid1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>

<asp:Label ID="Label3" Font-Bold="true" Font-Italic="true" Text='<%# Eval("meetings_id") %>' Visible="false" runat="server" />
<asp:Label ID="Label4" Font-Bold="true" Font-Italic="true" Text='<%# Eval("meetings_id") %>' Visible="false" runat="server" />
<telerik:RadGrid ID="RadGrid1" runat="server"
DataSourceID="SqlDataSource1"
GridLines="None" AllowPaging="True" AutoGenerateColumns="False"
Skin="Office2007" AllowFilteringByColumn="True" ItemStyle-Wrap="true" ItemStyle-Width="50px">


<MasterTableView commanditemdisplay="Top" datasourceid="SqlDataSource1"
editmode="PopUp" AllowPaging="true" AutoGenerateColumns="False"
Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False" width="100%" TableLayout="Fixed">

<Columns>

<telerik:GridBoundColumn DataField="meetings_id" HeaderText="Meeting ID"
UniqueName="column" >
<ItemStyle Width="50px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="project_id" HeaderText="Project ID"
UniqueName="column1" >
<ItemStyle Width="50px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="meeting_title" HeaderText="Title"
UniqueName="column2" >
<ItemStyle Width="50px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="start_date" HeaderText="Starting Date"
UniqueName="column3" >
<ItemStyle Width="50px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="end_date" HeaderText="End Date"
UniqueName="column4" >
<ItemStyle Width="50px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="meeting_speaker_id" HeaderText="Speaker"
UniqueName="column5">
<ItemStyle Width="50px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="recurrenceRule" HeaderText="Rule"
UniqueName="column6" ItemStyle-Wrap="true" >
<ItemStyle Wrap="true" Width="25px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="recurrenceParentID" HeaderText="Rule ID"
UniqueName="column7" >
<ItemStyle Width="50px" />
</telerik:GridBoundColumn>
</Columns>
<NestedViewTemplate>




<asp:Label ID="Label1" Font-Bold="true" Font-Italic="true" Text='<%# Eval("meetings_id") %>' Visible="false" runat="server" />


<asp:SqlDataSource ID="SqlDSMeetingNotes" runat="server"
ConnectionString="<%$ ConnectionStrings:MeetWebStyleConnectionString %>"
SelectCommand="MWS_Meeting_notes_GetByMeeting_id"
SelectCommandType="StoredProcedure"
InsertCommandType="StoredProcedure" InsertCommand="MWS_Meeting_notes_Insert"
UpdateCommandType="StoredProcedure" UpdateCommand="MWS_Meeting_notes_Update">

<SelectParameters>
<asp:ControlParameter ControlID="Label1" PropertyName="Text" Type="String" Name="meeting_id" />
</SelectParameters>
<UpdateParameters>
<asp:ControlParameter ControlID="Label1" PropertyName="Text" Type="String" Name="meeting_id" />
</UpdateParameters>
<InsertParameters>
<asp:ControlParameter ControlID="Label1" PropertyName="Text" Type="String" Name="meeting_id" />
</InsertParameters>

</asp:SqlDataSource>


<telerik:RadGrid ID="RAD1" runat="server" GridLines="None" AllowFilteringByColumn="True"
AllowPaging="True" PageSize="5" AllowSorting="True" Width="100%" AutoGenerateColumns="False"
ShowStatusBar="False" AllowAutomaticDeletes="True" AllowAutomaticInserts="True"
AllowAutomaticUpdates="True" DataSourceID="SqlDSMeetingNotes" HorizontalAlign="NotSet" Skin="Office2007" >


<MasterTableView EditMode="PopUp" CommandItemDisplay="Top" DataKeyNames="meeting_id" AllowAutomaticInserts="True"
AllowAutomaticUpdates="True" EditFormSettings-PopUpSettings-Width="800px" DataSourceID="SqlDSMeetingNotes">
<GroupHeaderItemStyle />

<Columns>
<telerik:GridEditCommandColumn UniqueName="EditColumn" HeaderText="Meeting Note"/>
<telerik:GridHTMLEditorColumn
UniqueName="meeting_note_text"
DataField="meeting_note_text"
HeaderText="Notes" EditFormColumnIndex="1" />
<telerik:GridDropDownColumn DataField="meeting_note_id"
UniqueName="meeting_note_id"
ListTextField="meeting_note_id"
DataSourceID="SqlDSMeetingNotes"
HeaderText="ID"
DropDownControlType="RadComboBox" Resizable="true" EditFormColumnIndex="0" />
<telerik:GridDropDownColumn DataField="user_id"
UniqueName="user_id"
ListTextField="user_id"
DataSourceID="SqlDSMeetingNotes"
HeaderText="USER ID"
Display="false"
DropDownControlType="RadComboBox" Resizable="true" EditFormColumnIndex="0" />
</Columns>
<EditFormSettings ColumnNumber="3" CaptionFormatString="Edit Meeting Details with Meeting {0}" CaptionDataField="meeting_id" >

<FormTemplate>

<table style="width: 171px">
<tbody>
<tr>
<td>
<asp:TextBox ID="TextBox2" runat="server"
Text='<%# Bind("meeting_note_id") %>'></asp:TextBox>

</td>
<td>
<asp:TextBox ID="TextBox1" runat="server"
Text='<%# Bind("meeting_note_text") %>'></asp:TextBox>

</td>
</tr>
<tr>
<td>
<asp:TextBox ID="TextBox3" runat="server"
Text='<%# Bind("user_id") %>'></asp:TextBox>
</td>
</tr>
<tr>
<td align="right" colspan="2">
<asp:Button ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'>
</asp:Button>&nbsp;
<asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"
CommandName="Cancel"></asp:Button></td>
</tr>
</tbody>
</table>



</FormTemplate>
</EditFormSettings>

</MasterTableView>
</telerik:RadGrid>


<asp:Label ID="Label2" Font-Bold="true" Font-Italic="true" Text='<%# Eval("project_id") %>' Visible="false" runat="server" />
<asp:SqlDataSource ID="SqlDataSource2" runat="server"
ConnectionString="<%$ ConnectionStrings:MeetWebStyleConnectionString %>"
SelectCommand="MWS_Library_documentsView_GetByProjectID"
SelectCommandType="StoredProcedure">
<SelectParameters>
<asp:ControlParameter ControlID="Label2" Name="project_id" PropertyName="Text"/>
</SelectParameters>
</asp:SqlDataSource>
<telerik:RadGrid ID="RadGrid2" runat="server" GridLines="None" AllowFilteringByColumn="True"
AllowPaging="True" PageSize="5" AllowSorting="True" Width="100%" AutoGenerateColumns="false"
ShowStatusBar="False" AllowAutomaticDeletes="True" AllowAutomaticInserts="True"
AllowAutomaticUpdates="True" DataSourceID="SqlDataSource2" HorizontalAlign="NotSet" Skin="Office2007" OnPreRender="RadGrid2_PreRender"
OnItemCommand ="Radgrid2_ItemCommand">
<ClientSettings>
<Selecting AllowRowSelect="True" />
</ClientSettings>

<MasterTableView EditMode="PopUp" CommandItemDisplay="Top" DataKeyNames="project_id" AllowAutomaticInserts="True"
AllowAutomaticUpdates="True" EditFormSettings-PopUpSettings-Width="800px" >
<GroupHeaderItemStyle />

<Columns>
<telerik:GridEditCommandColumn UniqueName="EditColumn1" HeaderText="Document"/>


<telerik:GridBoundColumn
DataField="thumbnail_available"
UniqueName="thumbnail_available"
EditFormColumnIndex="0"
HeaderText="Thumbnail" Visible="false"
/>

<telerik:GridBoundColumn
DataField="library_docuemnt_images_id"
UniqueName="library_docuemnt_images_id"
EditFormColumnIndex="0"
HeaderText="Library ID" Visible="false"
/>


</Columns>
<EditFormSettings ColumnNumber="3" CaptionFormatString="Edit Library Document {0}" CaptionDataField="meeting_id" >


</EditFormSettings>
<NestedViewTemplate>
<fieldset style="padding:10px; azimuth:center; size:landscape; width:50%;">
<legend style="padding:5px;"><b>Library:</b>
<asp:Label ID="Label2" Font-Bold="true" Font-Italic="true" Text='<%# Eval("library_category_id") %>' Visible="false" runat="server" />

</legend>

<asp:SqlDataSource ID="SqlDataSource2" runat="server"
ConnectionString="<%$ ConnectionStrings:MeetWebStyleConnectionString %>"
SelectCommand="MWS_Library_documentsView_GetByProjectID"
SelectCommandType="StoredProcedure">
<SelectParameters>
<asp:ControlParameter ControlID="Label2" Name="project_id" PropertyName="Text"/>
</SelectParameters>
</asp:SqlDataSource>


<asp:DetailsView ID="DetailsView1" AllowPaging="true" GridLines="None" Width="100%" DataSourceID="SqlDataSource2"
DataKeyNames="project_id" runat="server" CommandRowStyle-Wrap="false" AutoGenerateRows="false">

<%--<Fields>
<asp:BoundField
DataField="library_category_id"
HeaderText="ID"
/>
</Fields>
<Fields>
<asp:BoundField
DataField="iibrary_category_name"
HeaderText="Name"
/>
</Fields>
<Fields>
<asp:BoundField
DataField="upload_date"
HeaderText="Date"
/>
</Fields>
<Fields>
<asp:BoundField
DataField="uri"
HeaderText="Location"
/>
</Fields>
<Fields>
<asp:imagefield dataimageurlfield="uri"
alternatetext="Image"
nulldisplaytext="No image on file."
headertext="Image"
readonly="true"/>
</Fields>--%>






</asp:DetailsView>
</fieldset>
</NestedViewTemplate>
</MasterTableView>
</telerik:RadGrid>
</NestedViewTemplate>







<RowIndicatorColumn Visible="False"><HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>

<ExpandCollapseColumn Resizable="False">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
<Columns>

<telerik:GridEditCommandColumn UniqueName="EditColumns" />

</Columns>
<EditFormSettings>

<PopUpSettings ScrollBars="None"></PopUpSettings>
</EditFormSettings>
<GroupHeaderItemStyle Font-Bold="False" Font-Italic="False"
Font-Overline="False" Font-Strikeout="False" Font-Underline="False"
ForeColor="Black" Wrap="True" />

<HeaderStyle BackColor="Black" Font-Bold="False" Font-Italic="False"
Font-Overline="False" Font-Strikeout="False" Font-Underline="False"
ForeColor="Black" Wrap="True" />
</MasterTableView>
<HeaderStyle ForeColor="Brown" />



</telerik:RadGrid>


<p>
&nbsp;</p>

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Telerik.Web.UI;
public partial class Project_MeetingNotes : System.Web.UI.UserControl
{
protected void Page_Load(object sender, EventArgs e)
{

}
protected void Radgrid2_ItemCommand(object sender, EventArgs e)
{

Boolean strtxt;
int documentid;
foreach (GridNestedViewItem item1 in RadGrid1.MasterTableView.GetItems(GridItemType.NestedView))
{
RadGrid Grid2 = (RadGrid)item1.FindControl("RadGrid2");


foreach (GridDataItem childitem in Grid2.MasterTableView.Items)
{
if (childitem.Selected)
{

strtxt = Convert.ToBoolean(childitem["thumbnail_available"].Text);

if (strtxt != false)
{
documentid = Convert.ToInt32(childitem["library_docuemnt_images_id"].Text);
DataSet ds = LibraryDocument.GetDocument(documentid);

foreach (DataRow row in ds.Tables["Document"].Rows)
{

string documentImageId = string.Format("{0}", row["library_docuemnt_images_id"]);
string libraryDocumentId = string.Format("{0}", row["library_document_id"]);
string Uri = string.Format("{0}", row["uri"]);
DetailsView dv =(DetailsView) Grid2.FindControl("DetailsView1");
dv.DataSource = ds;


}

}
}

}

}




}






John John
Top achievements
Rank 1
 answered on 04 Nov 2009
5 answers
136 views
Hi,

We want to use GridTemplateColumn with grouping feature for datagrid with Oracle.

Request you to please suggest..how can we achieve this.

Thanks and regards,
Manish Patel
Princy
Top achievements
Rank 2
 answered on 04 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?