Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
105 views
Here is the RadGrid Control

<telerik:RadGrid ID="rgAttributeResultStatus" runat="server"
            onneeddatasource="rgAttributeResultStatus_NeedDataSource"
            AllowFilteringByColumn="True" AllowSorting="True"
            AutoGenerateColumns="False" CellSpacing="0" GridLines="None"
            onitemdatabound="rgAttributeResultStatus_ItemDataBound"
            onpageindexchanged="rgAttributeResultStatus_PageIndexChanged"
            onpagesizechanged="rgAttributeResultStatus_PageSizeChanged"
            onsortcommand="rgAttributeResultStatus_SortCommand"
            onitemcommand="rgAttributeResultStatus_ItemCommand"
            ShowStatusBar="True" Width="576px">
            <ClientSettings>
                <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                <Resizing AllowResizeToFit="True" EnableRealTimeResize="True" />
            </ClientSettings>
<MasterTableView PageSize="10" ShowFooter="True" ShowHeader="true" FilterExpression="(ResultCount > 0)">
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
 
<RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
 
<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
 
    <Columns>
        <telerik:GridTemplateColumn AllowFiltering="False" DataField="Id"
            FilterControlAltText="Filter chkID column" GroupByExpression="Id"
            HeaderText="Include In Search" SortExpression="Id" UniqueName="IncludeInSearch" HeaderStyle-Wrap="true" HeaderStyle-Width="80px">
            <ItemTemplate>
                <telerik:RadButton ID="rdBtnIncludeInSearch" runat="server" CommandName="IncludeInSearch"
                CommandArgument='<%# Eval("Id") %>'
                AutoPostBack="true"
                Text="Add" ></telerik:RadButton>
            </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn DataField="Id"
            FilterControlAltText="Filter Id column" GroupByExpression="Id" HeaderText="Id"
            SortExpression="Id" UniqueName="Id" Visible="False">
            <ItemTemplate>
                <asp:Label ID="lblId" runat="server" Text='<%# Eval("Id") %>'></asp:Label>
            </ItemTemplate>
        </telerik:GridTemplateColumn>
 
        <telerik:GridTemplateColumn DataField="AttributeDef.Name"
            FilterControlAltText="Filter AttributeName column"
            GroupByExpression="AttributeName" HeaderText="Attribute Name"
            SortExpression="AttributeName" UniqueName="AttributeName">
            <ItemTemplate>
                <asp:HyperLink
                    ID="lnkResultDetails"
                    runat="server" >
                <asp:Label ID="lblAttributeName" runat="server"
                    Text='<%# Eval("AttributeDef.Name") %>'></asp:Label>
                </asp:HyperLink>
            </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridBoundColumn DataField="ResultCount"
            FilterControlAltText="Filter ResultCount column"
            GroupByExpression="ResultCount" HeaderText="Result Count"
            SortExpression="ResultCount" UniqueName="ResultCount"
            ForceExtractValue="Always" FooterText="Total Results: "
            CurrentFilterFunction="GreaterThan"
            DataType="System.Int64" Aggregate="Sum"
            AndCurrentFilterFunction="GreaterThan" AndCurrentFilterValue="0"
            CurrentFilterValue="0" DefaultInsertValue="0"
             HeaderStyle-Wrap="true" HeaderStyle-Width="100px"
             FilterControlWidth="20px"
            >
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="StatusDate" AllowFiltering="false" AllowSorting="false"
            FilterControlAltText="Filter StatusDate column" GroupByExpression="StatusDate"
            HeaderText="Status Date" UniqueName="StatusDate">
        </telerik:GridBoundColumn>
        <telerik:GridTemplateColumn DataField="AttributeDef.Id"
            FilterControlAltText="Filter AttributeId column"
            GroupByExpression="AttributeDef.Id" HeaderText="Attribute Id"
            SortExpression="AttributeDef.Id" UniqueName="AttributeId" Visible="False">
            <ItemTemplate>
                <asp:Label ID="lblAttributeId" runat="server"
                    Text='<%# Eval("AttributeDef.Id") %>'></asp:Label>
            </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn DataField="AttributeDef.DetailPageUrl"
            FilterControlAltText="Filter DetailPageUrl column"
            GroupByExpression="AttributeDef.DetailPageUrl" HeaderText="Detail Page Url"
            SortExpression="AttributeDef.DetailPageUrl" UniqueName="DetailPageUrl" Visible="False">
            <ItemTemplate>
                <asp:Label ID="lblDetailPageUrl" runat="server"
                    Text='<%# Eval("AttributeDef.DetailPageUrl") %>'></asp:Label>
            </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridBoundColumn DataField="DbColumnName"
            FilterControlAltText="Filter DbColumnName column"
            GroupByExpression="DbColumnName" HeaderText="Db Column Name"
            SortExpression="DbColumnName" UniqueName="DbColumnName" Visible="False">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn FilterControlAltText="Filter SchemaName column"
            GroupByExpression="SchemaName" HeaderText="Schema Name"
            SortExpression="SchemaName" UniqueName="SchemaName" Visible="False">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="SourceName"
            FilterControlAltText="Filter SourceName column" GroupByExpression="SourceName"
            HeaderText="Source Name" SortExpression="SourceName" UniqueName="SourceName"
            Visible="False">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="LevelOfDetailName"
            FilterControlAltText="Filter LevelOfDetailName column"
            GroupByExpression="LevelOfDetailName" HeaderText="Level Of Detail Name"
            SortExpression="LevelOfDetailName" UniqueName="LevelOfDetailName"
            Visible="False">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="SqlStatement"
            FilterControlAltText="Filter SqlStatement column"
            GroupByExpression="SqlStatement" HeaderText="SqlStatement"
            SortExpression="SqlStatement" UniqueName="SqlStatement" Visible="False">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn FilterControlAltText="Filter ErrorMessage column"
            GroupByExpression="ErrorMessage" HeaderText="Error Message"
            SortExpression="ErrorMessage" UniqueName="ErrorMessage" Visible="False">
        </telerik:GridBoundColumn>
    </Columns>
 
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
    <PagerStyle Position="TopAndBottom" AlwaysVisible="True" />
</MasterTableView>
 
            <PagerStyle AlwaysVisible="True" />
 
<FilterMenu EnableImageSprites="False"></FilterMenu>
        </telerik:RadGrid>

Please take a look at the image to understand what is going on.

Thanks,Jeff
Shinu
Top achievements
Rank 2
 answered on 08 Jun 2012
1 answer
151 views
Hi, 

I am wondering i Have a advanced insert template that i am using and inside of this advanced insert template the user will have two options make a group event or individual event.How do I change the visiblity one of the 2 tables that have the rest of the information they must fill in for the appointment. my code currently is this and i am getting object null cause it can't find the control.
Protected Sub ddlapptType_OnSelectedIndexChanged(sender As Object, e As System.EventArgs)
 
        Dim ddl As DropDownList = sender
 
        Dim tbl As Table = RadScheduler1.FindControl("tblGropuInsert")
        If ddl.SelectedValue = 1 Then
  //this is where i want to make the group insert table visible
        End If
 
End Sub
 
Plamen
Telerik team
 answered on 08 Jun 2012
1 answer
305 views
Hello,

I'm trying to make a calendar that contains only day of the week (Monday, Tuesday, Wednesday, Thursday, Friday, Saturday and Sunday), 24 hours a day, something like the Scheduler. But I do not want to get dates, but simply the day of the week and time you select. Is there some control to help me with this project?

Added the example picture.

Thank you.
Princy
Top achievements
Rank 2
 answered on 08 Jun 2012
1 answer
87 views
Hello,

I am building a RadGridwith a NestedViewTemplate which essentially has a PlaceHolderControl and within that a RadGrid control.  So it looks like:

RadGrid-1 (with drop down menu for each MasterViewTemplate item)
|__PlaceHolder
     |__RadGrid-2
          |__Detail Table (if necessary; depends on Input A)
  |__Detail Table (if necessary; depends on Input A) 
  |__Detail Table (if necessary; depends on Input A) 

In RadGrid-1 there is a drop down menu input and based on this input the RadGrid-2 will have a varying number of details tables for each row.  In other words the RadGrid-2 can vary in size for each NestedViewItem of RadGrid-1 depending on the dropdown.

I have created RadGrid-1 and the PlaceHolder in my ASPX file.  Since the contents of RadGrid-2 depend on the data that exists in RadGrid-1 I have to wait for the data to be bound before I can begin creating my RadGrid-2's.  I decided that I would create the RadGrid-2's in the RadGrid1_PreRender events because this happens after the data is bound.

The problem that I am having is now when I traverse RadGrid1 to access all my RagGrid-2's (RadGrid-2 has some inputs fields) they can not be be found.  I am making a call like the following and coming up empty.

For Each masterViewItem As GridDataItem In RadGrid-1.MasterTableView.Items

	thisGrid = DirectCast(masterViewItem.ChildItem.NestedViewCell.FindControl("RadGrid-2"), RadGridThe problem that I am having is now when I traverse RadGrid1 to access all my RagGrid-2's they can not be be found.  I am making a call like:


I added the RadGrid-2's to the PlaceHolder Control in the PreRender event so why can I not see them after?  Please note that "RadGrid-1" and "RadGrid-2" are fake names and I am using real names in my scenario.
Princy
Top achievements
Rank 2
 answered on 08 Jun 2012
1 answer
56 views
Is there somewhere I can download the gallery demo?
Princy
Top achievements
Rank 2
 answered on 08 Jun 2012
3 answers
250 views
Hello forum,

I have a radgrid (radgrid1) nested in another (radgrid2).  The primary key for radgrid1 is "CustomerID" as is the foreign key in radgrid2.

How do I get the selected primary value in radgrid1 to automatically appear during inserts in radgrid2, as the FKey, so that the user doesn't have to manually enter it? 

Thanks.

Shinu
Top achievements
Rank 2
 answered on 08 Jun 2012
1 answer
85 views
I have Radgrid with 2 levels of grouping

The basic export is exporting the data in the format that it is displayed. i.e with  groups level

Is there anyway I can export the raw data of the grid i.e with no grouping. Also I would like to omit certain columns from exporting (i.e for  example I have dept_code and dept_name . Dept_code is the code value for Dept name, so in this i want to export only Dept name )

Thanks for your help
Shinu
Top achievements
Rank 2
 answered on 08 Jun 2012
1 answer
96 views
I used below for my first radwindow pop up

 

 

this.imgCreateStoreList.Attributes.Add("onclick", "openWinEvents('Events.aspx?Designator=" + desParameter + "&ctProcessId=" + ctProcessId + "&rnd=" + System.Guid.NewGuid() + "'); return false;");

 

function openWinEvents(parameter) {
           var wnd = $find('<%=RadWindow1.ClientID %>');
           if (wnd != null) {
               wnd.setUrl("/Builder/" + parameter + "");
               wnd.setSize(800, 600);
               wnd.set_modal(true);
               wnd.set_iconUrl("/img/radwindowicon.gif");
               wnd.Show();
           }
       }
On the 1st radwindow pop up, I have a radupload button and want to save the file and open second radwindow for message/report display, I tried lots ways, can't open the second radwindow.

I suppose to use server side code to open it.

Tried:
RadWindow CommPromptWindow = (RadWindow)Page.Master.FindControl("EventsPromptWindow");
  
CommPromptWindow.VisibleOnPageLoad = true;
But not work. Please help!
Princy
Top achievements
Rank 2
 answered on 08 Jun 2012
1 answer
47 views
Hi Shinu,

This thread is a reply for this below thread..i couldnt post a reply for this thread.

http://www.telerik.com/community/forums/aspnet-ajax/grid/replace-filter-text-box-with-a-button-in-grid-filtering.aspx . 

thnks for replying.

Actually i m using an older version(2008) of Telerik DLL. and that is not supporting "FilterTemplate". Any alternative to achieve the functionality? 
Shinu
Top achievements
Rank 2
 answered on 08 Jun 2012
1 answer
104 views
Hi,

What could cause a performance issue with AJAX request that is network related?  We're getting different results based on multiple internet providers.  On some internet providers the AJAX request are twice as fast as the page loads, on others the AJAX request are double the page load speed.  It seems to have something to do with compression.  When we have compression on AJAX request are double the page load speed but still only on some internet providers.  With compression off AJAX request are always twice as fast as page loads.

We are using the RadAJAXManager...

Version: 2011.3.1305.40

Thanks,
Darren 
Darren
Top achievements
Rank 1
 answered on 08 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
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
Bronze
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?