Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
203 views
I have a RadGrid with 1 detail table, which I want populated once, and stored on the client.
I have set the HierarchyLoadMode="Client" on both the Radgrid and the mastertableview of the detailtables.
Within the clientsettings of RadGrid I have set AllowExpandCollapse="true".
When I step though the execution of my code, the '_DetailTableDataBind' event fires once for each 'master' row in the RadGrid (as I would expect) when the RadGrid populates.
I have put 2 buttons on my page 'Expand All' and 'Collapse All' which expand and collapse all grid items by calling a method on the server which iterates  MyGrid.MasterTableView.Items and sets the expanded property to true or false as appropriate. This works as I want.
What doesn't work is if I click the '+' or '-' next to each master row in order to expand or collapse the individual detailtable.
I get a javascript error along the lines of:
$find("ctl00_uws_PageContent_uxMidCol_uxMain_ctl04_AppContent_MyGrid_ctl00") has no properties

Which implies the object hasn't been created client-side?
Can anyone please help?

Vinit
Top achievements
Rank 1
 answered on 04 Jun 2012
1 answer
52 views
Hi,

We bind the scheduler to a web service and appointments show up just fine. Everything works.

However, when I try to add the iCal export, upon button click, the RadScheduler1.Appointments collection is empty. It seems that the appointments loaded via the web service provider are not included with postbacks. Fyi: We do not ajaxify the scheduler control.  

Is there anything special to consider with web service bindings or is iCal there simply not supported?

Thanks you,
Stephan

PS: It would be great to have a page at Telerik where one can see at a glance the features not support or supported with each binding. I am thinking of properties of the Appointment class such as CssClass or ToolTip that are disregarded with web service binding (I am wondering why).
Plamen
Telerik team
 answered on 04 Jun 2012
1 answer
61 views
So heres my issue i changed the maxuploadfilesize from 1 to 10485760. The changes worked on the local site but when i put it on the live server it still had one byte  listed as the max file size. I changed it everywhere there was a maxuploadfilesize across the entire site.  Is there something i could be missing?
Rumen
Telerik team
 answered on 04 Jun 2012
1 answer
210 views
Hai,

I have a radgrid.

<

 

 

Columns>

 

 

 

<telerik:GridTemplateColumn HeaderText="SlNo">

 

 

 

<HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Font-Bold="true" Width="4%" />

 

 

 

<ItemStyle HorizontalAlign="Center" Width="4%" />

 

 

 

<ItemTemplate>

 

<%

 

# this.rgByAirline.CurrentPageIndex * this.rgByAirline.PageSize + Container.ItemIndex + 1%>

 

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridBoundColumn DataField="Recipe_Id" HeaderText="Recipe_Id" Visible="false">

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridTemplateColumn HeaderText="Recipe">

 

 

 

<HeaderStyle HorizontalAlign="Left" VerticalAlign="Middle" Font-Bold="true" Width="96%" />

 

 

 

<ItemStyle HorizontalAlign="Left" Width="96%" />

 

 

 

<ItemTemplate>

 

 

 

<asp:LinkButton ID="lnkRecipe" runat="server" ToolTip="Click here to see details of the Recipe"

 

 

 

CommandName="PopupWindow" OnClientClick="return PopupWindow(this);" Text='<%#Eval("Recipe_Description") %>'></asp:LinkButton>

 

 

 

<asp:Label ID="ltrRecipeId" runat="server" Visible="false" Text='<%# DataBinder.Eval(Container.DataItem,"Recipe_Id") %>'></asp:Label>

 

 

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

</Columns>

I want to get the Recipe_Id in the javascript PopupWindow(this);

 

 

 

function PopupWindow(anc) {

 

 

 

debugger;

 

 

 

var rowIndex = anc.parentElement.parentElement.rowIndex;

 

 

 

var grdRowNo = Number(isNaN(rowIndex) ? 0 : rowIndex) + 1;

 

 

 

 

 

 

 

 

 

 

var strTransLblId = 'ctl00_CphMaster_rgByAirline' + ((grdRowNo <= 9) ? '_ctl00_ctl0' : '_ctl00_ctl') + grdRowNo + '_ltrRecipeId';

 

 

 

var intRecipeId = Number(document.getElementById(strTransLblId).innerText);

 

 

 

var oWnd = radopen("FKMS_MMS_Recipe_Detail_Popup.aspx?intRecipeId=" + intRecipeId, "RadWindowPopup");

 

oWnd.setSize(725, 600);

 

 

return false;

 

}

 

I got the row number correctly.
But it shows null reference exception in the following line.

var intRecipeId = Number(document.getElementById(strTransLblId).innerText);

Please help urgently.

 

Shinu
Top achievements
Rank 2
 answered on 04 Jun 2012
1 answer
321 views
Hi,

I need to edit radgrid row in the code behind.

Please help me.
Shinu
Top achievements
Rank 2
 answered on 04 Jun 2012
4 answers
110 views

i am facing a problem with grid excel export, after clicking export the grid is disappearing and nothing happean

MasterPage:

<telerik:RadScriptManager ID="Main_RadScriptManager" runat="server" />
    <telerik:RadAjaxManager ID="Main_RadAjaxManager" runat="server" >
        <AjaxSettings></AjaxSettings>
        <ClientEvents OnRequestStart="OnRequestStart" />
    </telerik:RadAjaxManager>
    <telerik:RadFormDecorator ID="Main_RadFormDecorator" runat="server" DecoratedControls="All" Skin="Office2007" />
    <telerik:RadStyleSheetManager ID="Main_RadStyleSheetManager" runat="server">
    </telerik:RadStyleSheetManager>
    <telerik:RadCodeBlock ID="Main_RadCodeBlock" runat="server">
        <script type="text/javascript">
            function OnRequestStart(sender, args) {
                if (args.get_eventTarget().indexOf("ExportToExcelButton") >= 0) {
                    args.set_enableAjax(false);
                }
            }
        </script>
    </telerik:RadCodeBlock>
     
    <asp:UpdatePanel ID="Master_UpdatePanel" runat="server" UpdateMode="Conditional" >
        <ContentTemplate>
            <asp:ContentPlaceHolder ID="Popup_ContentPlaceHolder" runat="server" >
            </asp:ContentPlaceHolder>
        </ContentTemplate>
    </asp:UpdatePanel>


ContentPage:

<asp:Content ID="Content2" ContentPlaceHolderID="Popup_ContentPlaceHolder" runat="Server">
    <telerik:RadSplitter ID="InnerRadSplitter" runat="server" Height="560px" Width="100%"
        Orientation="Horizontal" ResizeMode="AdjacentPane" ResizeWithParentPane="true"
        Skin="Vista">
        <telerik:RadPane ID="SearchRadPane" runat="server" MaxHeight="150" MinHeight="70"
            Scrolling="Y" Width="100%">
            <div class="panel message info">
                 
            </div>
        </telerik:RadPane>
        <telerik:RadSplitBar ID="SearchRadSplitBar" runat="server">
        </telerik:RadSplitBar>
        <telerik:RadPane ID="ResultRadPane" runat="server" Scrolling="None">
            <telerik:RadGrid ID="grdData" AllowPaging="false" AllowSorting="false" runat="server"
                AutoGenerateColumns="false" Width="100%" Height="100%" Skin="Vista" GridLines="None"
                OnItemCreated="grdData_ItemCreated" OnItemCommand="grdData_ItemCommand">
                <ClientSettings EnableAlternatingItems="true" EnableRowHoverStyle="true">
                    <Selecting AllowRowSelect="true" />
                    <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true">
                    </Scrolling>
                </ClientSettings>
                <ExportSettings ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true">
                    <Excel Format="ExcelML" />
                </ExportSettings>
                <MasterTableView AutoGenerateColumns="false" Width="100%" CommandItemDisplay="Top">
                    <NoRecordsTemplate>
                        <div style="text-align: center; font-weight: bold">
                            NO_INFO_AVLBL</div>
                    </NoRecordsTemplate>
                    <CommandItemTemplate>
                        <telerik:RadToolBar ID="ReportGenerator_ToolBar" runat="server" Width="100%" EnableRoundedCorners="true"
                            EnableShadows="true" Skin="Vista" OnButtonClick="ReportGenerator_ToolBar_ButtonClick">
                            <Items>
                                <telerik:RadToolBarButton Text="Export" Value="Excel_Export"                           CommandName="ExportGrid" >
                                </telerik:RadToolBarButton>
                            </Items>
                        </telerik:RadToolBar>
                    </CommandItemTemplate>
                </MasterTableView>
            </telerik:RadGrid>
        </telerik:RadPane>
        <telerik:RadPane ID="FooterRadPane" runat="server" Height="70" Scrolling="None" Width="100%"
            Locked="true">
            <div class="mainsection buttons-section" style="margin: 5px;">
                <asp:Button ID="btn_ReportGeneratorRun" runat="server" Text="Search"
                    class="button button-blue" OnClick="btn_ReportGeneratorRun_Click" Width="80px" />
            </div>
        </telerik:RadPane>
    </telerik:RadSplitter>
</asp:Content>

ContentPage Code:

protected void grdData_ItemCreated(object sender, GridItemEventArgs e)
    {
        if (e.Item.ItemType == GridItemType.CommandItem)
        {
            RadToolBar ReportGenerator_ToolBar = (RadToolBar)e.Item.FindControl("ReportGenerator_ToolBar");
            RadToolBarItem Excel_Export = ReportGenerator_ToolBar.FindItemByValue("Excel_Export");
            RadScriptManager.GetCurrent(this.Page).RegisterPostBackControl(Excel_Export);
        }
    }
 
protected void ReportGenerator_ToolBar_ButtonClick(object sender, RadToolBarEventArgs e)
    {
        string ErrorMessage = "";
        try
        {
            //---------------------------------------
            if (e.Item.Value == "Excel_Export")
            {
                grdData.ExportSettings.FileName = DateTime.Today.ToString("dd.MM.yyyy");
                 
                grdData.ExportSettings.IgnorePaging = true;
                grdData.ExportSettings.OpenInNewWindow = true;
                grdData.MasterTableView.ExportToExcel();
            }
            //---------------------------------------
        }
        catch (Exception ex)
        {
            ErrorMessage += ex.Message;
        }
    }

Mohamed Salah Al-Din
Top achievements
Rank 1
 answered on 04 Jun 2012
4 answers
116 views
Hi every body,
Can any body tell me please how can I do to display a listview insid an other listview with 2 sqldatasource !?
Thank you so mutch :)
Berrabah
Top achievements
Rank 1
 answered on 04 Jun 2012
13 answers
541 views
Hi,

I want to access controls which are placed in NoRecordsTemplate from code behind page. Could you please help me in this regard.

Thanks in advance.

Thanks,
Sumanth
Princy
Top achievements
Rank 2
 answered on 04 Jun 2012
3 answers
252 views
I am using radtextbox with textmode password in my application, now i would like to set passwordChar as "*" but m not found any property like that.pls advice

thanks in advance
Vasil
Telerik team
 answered on 04 Jun 2012
2 answers
97 views
Hi,
I wanna to use 2 sqldatasource for a listview, the first for the listview and the second one for a listbox that exist insid the listview (the two sql datasource bind two tables with a Id fk)
Thank  you
Berrabah
Top achievements
Rank 1
 answered on 04 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?