Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
104 views
Hi there,
          Using RadGrid inbuilt popup edit form, which i use <%# DataBinder.Eval( Container, "DataItem.Value") %>  to bind the value from the selected grid to the popup UserControl. However, is there a way to bind the ParentID of the nested grid onto the popup Edit Form.
   ParentID - 1
      - Child 1
      - Child 2
   ParentID - 2
      ......
           Is usere press the nested grid (ParentID - 1 Nested grid) Add, is there a way to pass ParentID 1 to the popup? Ive tried
<asp:hiddenfield id="hidParentID"
value='<%# (Container is GridEditFormInsertItem) ? DataBinder.Eval( Container, "OwnerTableView.ParentItem.ParentID") :DataBinder.Eval( Container, "DataItem.ParentID") %>' runat="server" />
which will bind the ParentID if its "Add" Command is invoke, which doesnt work.

regards,
Adrian


   

Tsvetoslav
Telerik team
 answered on 15 Jul 2010
3 answers
74 views
Had a look at 2009 SP1 asp.net Ajax controls with VS Extensions on XP Pro 32bit with VS 2008 and liked them very much.

When I installed 2009 SP2 everything working okay except missing the RadControls option in the Telerik menu. Pretty sure I completely uninstalled and reinstalled but never able to get them back.

Just uninstalled all Telerik applications and tried the RadControls for ASP.NET AJAX Trial Version: 2010.2 713 install. It says its installing the VS2008 extensions and even gives me a green popup on first load of VS saying the extensions have been installed but only have an About option on the Telerik menu?

Any ideas on getting the menu option back?

Thanks
Biliana Ficheva
Telerik team
 answered on 15 Jul 2010
0 answers
97 views
please drop this post.
sorry and thanks.
Oliver
Top achievements
Rank 1
 asked on 15 Jul 2010
1 answer
150 views
Hey all I am trying to get the Animation with a RadGrid when you click on the hierarchy arrow but I seem to not be able to get it to work.
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadGridPaymentRecived">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGridPaymentRecived" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
        </telerik:RadAjaxLoadingPanel>
        <telerik:RadGrid ID="RadGridPaymentRecived" runat="server" AutoGenerateColumns="False" AllowPaging="True"  Skin="WebBlue" OnNeedDataSource="RadGrid1_OnNeedDataSource"
                OnDetailTableDataBind="RadGrid1_DetailTableDataBind" AutoGenerateHierarchy="true" OnItemDataBound="RadGrid1_OnItemDataBound"
                AllowSorting="True" GridLines="None" OnDataBound="RadGrid1_OnDataBound" ShowGroupPanel="True">
                <MasterTableView ShowFooter="true" DataKeyNames="batch_number" HierarchyLoadMode="ServerOnDemand">
                    <DetailTables>
                        <telerik:GridTableView Width="100%" runat="server" DataKeyNames="batch_number">
                            <ParentTableRelation>
                                <telerik:GridRelationFields DetailKeyField="batch_number" MasterKeyField="batch_number" />
                            </ParentTableRelation>
                            <Columns>
                                <telerik:GridHyperLinkColumn HeaderText="View" Target="_blank" DataTextField="log_record_product_id"
                                    UniqueName="log_record_product_id" HeaderButtonType="TextButton">
                                </telerik:GridHyperLinkColumn>
                                <telerik:GridBoundColumn HeaderText="Date Issued" DataField="que_submit_date" UniqueName="que_submit_date"
                                    HeaderButtonType="TextButton">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn HeaderText="Who Issued" DataField="officer_name" UniqueName="officer_name"
                                    HeaderButtonType="TextButton">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn HeaderText="Buyer Name" DataField="name_all" UniqueName="name_all"
                                    HeaderButtonType="TextButton">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn HeaderText="Account Number" DataField="account_number" UniqueName="account_number"
                                    HeaderButtonType="TextButton">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn HeaderText="Program Type" DataField="program_type" UniqueName="ProgramType"
                                    HeaderButtonType="TextButton">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn HeaderText="Premium" DataField="price_sold" UniqueName="price_sold" DataFormatString="{0:$###,###.##}"
                                    HeaderButtonType="TextButton">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn HeaderText="Due To Allied" DataField="ProductCostTemplate" DataFormatString="{0:$###,###.##}"
                                    UniqueName="ProductCostTemplate" HeaderButtonType="TextButton">
                                </telerik:GridBoundColumn>
                            </Columns>
                        </telerik:GridTableView>
                    </DetailTables>
                    <Columns>
                        <telerik:GridTemplateColumn HeaderText="Selected">
                            <ItemTemplate>
                                <asp:CheckBox ID="CheckBoxSelected" runat="server" Checked='<%# Bind("Selected") %>' AutoPostBack="true"
                                    OnCheckedChanged="CheckBoxSelected_OnCheckedChanged" />
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridBoundColumn HeaderText="Batch Id" DataField="batch_number" UniqueName="batch_number">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Batch Submitted By" DataField="batch_submit_username"
                            UniqueName="batch_submit_username">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Batch Date" DataField="batch_submit_date" UniqueName="batch_submit_date">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Batch Product" DataField="batch_product" UniqueName="batch_product">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Contract Count" DataField="contract_count" UniqueName="contract_count">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Branch" DataField="branch" UniqueName="branch">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Agency" DataField="agency" UniqueName="agency">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Agent" DataField="agent" UniqueName="agent">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderText="Amount Submitted" DataField="amount_submitted" DataFormatString="{0:$###,###.##}"
                            UniqueName="amount_submitted">
                        </telerik:GridBoundColumn>
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>
I keep getting a "Microsoft JScript runtime error: Object doesn't support this property or method" Error.
The grid is on a webcontrol and the webcontrol is wrapped in a updatepannel if that helps.


Thanks!
Veli
Telerik team
 answered on 15 Jul 2010
3 answers
392 views
Hi,

I am using Commanditemtemplete. The display is not proper in commanditemtemplete. Please see the figure below. The image is coming up and text is coming down. I tried to fix this using tr and td. but when i click edit button the edit option should disappear and edit and cancel button should show up. If i use tr, td the images are visible. Please help me to fix this.

here is my code
<CommandItemTemplate> 
                                <table> 
                                    <tr class="customFont"
                                        <td align="left"
                                            <b>Bulk Actions</b> 
                                        </td> 
                                        <td align="left"
                                            <asp:LinkButton ID="btnEditSelected" runat="server" OnClick="btnEditSelected_click" 
                                                Visible='<%# rg200.EditIndexes.Count == 0 %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/edit-icon-v5.gif" /> Edit Selected</asp:LinkButton> 
                                                &nbsp;&nbsp;&nbsp; 
                                        </td> 
                                        <td align="left"
                                            <asp:LinkButton ID="btnUpdateEdited" runat="server" OnClick="btnUpdateEdited_click" 
                                                Visible='<%# rg200.EditIndexes.Count > 0 %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/Updatee.gif" /> Update Editing</asp:LinkButton> 
                                                &nbsp;&nbsp;&nbsp; 
                                        </td> 
                                        <td align="left"
                                            <asp:LinkButton ID="btnCancel" runat="server" OnClick="btnCancel_click" Visible='<%# rg200.EditIndexes.Count > 0 || rg200.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/delete-icon.png" /> Cancel Editing</asp:LinkButton> 
                                            &nbsp;&nbsp;&nbsp; 
                                        </td> 
                                        <td align="left"
                                            <asp:LinkButton ID="LinkButton2" runat="server" CommandName="InitInsert" Visible='<%# !rg200.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="Images/add-icon.png" /> Add New Record</asp:LinkButton> 
                                            &nbsp;&nbsp;&nbsp; 
                                        </td> 
                                        <td align="left"
                                            <asp:LinkButton ID="LinkButton1" OnClientClick="javascript:return confirm('Delete all selected Records?')" 
                                                runat="server" CommandName="DeleteSelected"><img style="border:0px;vertical-align:middle;" alt="" src="Images/delete-icon.png" /> Delete Selected</asp:LinkButton> 
                                            &nbsp;&nbsp;&nbsp; 
                                         </td> 
                                        <td align="left"
                                            <asp:LinkButton ID="LinkButton4" runat="server" CommandName="Rebind"><img style="border:0px;vertical-align:middle;" alt="" src="Images/Refresh.gif" /> Refresh</asp:LinkButton> 
                                            &nbsp;&nbsp;&nbsp; 
                                        </td> 
                                    </tr> 
                                </table> 
                            </CommandItemTemplate> 



 I want to show export options (just images) like we have in CommandItemSettings. How to do that in Commanditemtemplete? is there any backend code to write for that. Please help in this issue.

Thanks.
Radoslav
Telerik team
 answered on 15 Jul 2010
6 answers
143 views
Hi,
 I've added the file extension .flv to the allowed list in the ConfigFile.xml, but on uploading and attaching the image into the editor, the video doesn't appear. Can you advise what I am missing, or if this is even possible at all? I would have thought it could handle flash video if it can handle wmv files also.

Thanks,
Jason.
Stanimir
Telerik team
 answered on 15 Jul 2010
4 answers
154 views
Hi there!!..

I want to know if exist any way to add a search input and show de results in the file explorer?

The idea is that I can manage the results files in the same way that I can manage the files inside the folders.

Thanks!
Terrier Maxandre
Top achievements
Rank 1
 answered on 15 Jul 2010
3 answers
187 views
We are dynamically creating RadTreeview controls server side and adding the controls to a div control on the form.  So there is no html markup Telerik.RadTreeview controls on the form in the source of the aspx page.

We want to use the .Select() method for the RadTreeview client side.  We have tried to have the Server side code render the ClientID within a Page.ClientScript.RegisterStartupScript and tried using the $find('Name of Control') method but this is always null.  We cannot use the (var treeView = $find("<%=RadTreeView1.ClientID%>"); ) no mark up is available. 

We cannot find any method to use from the Sys.Application api that the RadTreeview is using.

Do you have a method for dynamically created RadTreeview controls on the client side so we can find the controls?  Every time we try and find the control it is just a dom Object and not a Telerik.Web.UI.RadTreeView object client side.

Help PLEASE!

View Source of the Page Code:
Telerik.Web.UI.RadTreeView._preInitialize("menu_ctl00","0");
Telerik.Web.UI.RadTreeView._preInitialize("menu_ctl01","0");

Sys.Application.initialize();

WebForm_InitCallback();
Sys.Application.add_init(function() {
    $create(Telerik.Web.UI.RadTreeView,
    {"_skin":"Default","_uniqueId":"menu$ctl00",
    "attributes":{},"clientStateFieldID":"menu_ctl00_ClientState","collapseAnimation":"{\"duration\":200}",
    "expandAnimation":"{\"duration\":200}",
    "nodeData":[{"value":"DEFAULT.ASPX","toolTip":"Home","attributes":{"url":"/CC/DEFAULT.ASPX?PAGENAVID=1001"}},
        {"items":[{"value":"HOME/BUILDSUMMARY.ASPX#OVERVIEW","toolTip":"Overview and Tutorial","attributes":{"url":"/CC/HOME/BUILDSUMMARY.ASPX?PAGENAVID=1127#OVERVIEW"}},
                  {"value":"HOME/BUILDSUMMARY.ASPX#ROOMS","toolTip":"Step 1: Rooms","attributes":{"url":"/CC/HOME/BUILDSUMMARY.ASPX?PAGENAVID=1128#ROOMS"}},
                  {"value":"HOME/BUILDSUMMARY.ASPX#POLICIES","toolTip":"Step 2: Policies","attributes":{"url":"/CC/HOME/BUILDSUMMARY.ASPX?PAGENAVID=1129#POLICIES"}},
                  {"value":"HOME/BUILDSUMMARY.ASPX#RATES","toolTip":"Step 3: Rates","attributes":{"url":"/CC/HOME/BUILDSUMMARY.ASPX?PAGENAVID=1130#RATES"}},
                  {"value":"HOME/BUILDSUMMARY.ASPX#BASICS","toolTip":"Step 4: Basic Hotel Info","attributes":{"url":"/CC/HOME/BUILDSUMMARY.ASPX?PAGENAVID=1131#BASICS"}},
                  {"value":"HOME/BUILDSUMMARY.ASPX#AREAINFO","toolTip":"Step 5: Area Info","attributes":{"url":"/CC/HOME/BUILDSUMMARY.ASPX?PAGENAVID=1132#AREAINFO"}},
                  {"value":"HOME/BUILDSUMMARY.ASPX#SERVICESAMENITIES","toolTip":"Step 6: Services and Amenities","attributes":{"url":"/CC/HOME/BUILDSUMMARY.ASPX?PAGENAVID=1133#SERVICESAMENITIES"}},
                  {"value":"HOME/BUILDSUMMARY.ASPX#MEETINGDINING","toolTip":"Step 7: Meeting and Dining","attributes":{"url":"/CC/HOME/BUILDSUMMARY.ASPX?PAGENAVID=1134#MEETINGDINING"}},
                  {"value":"HOME/BUILDSUMMARY.ASPX#ADDITIONALINFO","toolTip":"Step 8: Additional Info","attributes":{"url":"/CC/HOME/BUILDSUMMARY.ASPX?PAGENAVID=1135#ADDITIONALINFO"}}]}]},
        {"nodeClicking":ClientNodeClickedLocal}, null, $get("menu_ctl00"));
});
Sys.Application.add_init(function() {
    $create(Telerik.Web.UI.RadTreeView,
    {"_skin":"Default","_uniqueId":"menu$ctl01",
    "attributes":{},"clientStateFieldID":"menu_ctl01_ClientState","collapseAnimation":"{\"duration\":200}",
    "expandAnimation":"{\"duration\":200}",
    "nodeData":[{"items":[{"value":"ADMINISTRATION/ADMINCHAINSETUP.ASPX","toolTip":"Chain Maintenance","attributes":{"url":"/CC/ADMINISTRATION/ADMINCHAINSETUP.ASPX?PAGENAVID=1004"}},
                          {"value":"ADMINISTRATION/ADMINISTRATIONCHAIN.ASPX","toolTip":"Chain Administration","attributes":{"url":"/CC/ADMINISTRATION/ADMINISTRATIONCHAIN.ASPX?PAGENAVID=1124"}},
                          {"value":"CHAIN/CHAINAGENTSETUP.ASPX","toolTip":"Commissionable Accounts","attributes":{"url":"/CC/CHAIN/CHAINAGENTSETUP.ASPX?PAGENAVID=2242"}},
                          {"value":"CHAIN/LOYALTYPROGRAMS.ASPX","toolTip":"Loyalty Programs","attributes":{"url":"/CC/CHAIN/LOYALTYPROGRAMS.ASPX?PAGENAVID=1118"}},
                          {"value":"CHAIN/VIPSETUP.ASPX","toolTip":"VIP Levels","attributes":{"url":"/CC/CHAIN/VIPSETUP.ASPX?PAGENAVID=1160"}},
                          {"value":"CHAIN/SUBSOURCE.ASPX","toolTip":"Sub Source Codes","attributes":{"url":"/CC/CHAIN/SUBSOURCE.ASPX?PAGENAVID=1125"}},
                          {"value":"CHAIN/RATEFILTERSETUP.ASPX","toolTip":"Rate Filters","attributes":{"url":"/CC/CHAIN/RATEFILTERSETUP.ASPX?PAGENAVID=2289"}},
                          {"value":"CHAIN/BRANDSETUP.ASPX","toolTip":"Brands","attributes":{"url":"/CC/CHAIN/BRANDSETUP.ASPX?PAGENAVID=2301"}},
                          {"value":"CHAIN/DESTINATIONSETUP.ASPX","toolTip":"Destinations","attributes":{"url":"/CC/CHAIN/DESTINATIONSETUP.ASPX?PAGENAVID=2302"}},
                          {"value":"CHAIN/CROSETUP.ASPX","toolTip":"CROs","attributes":{"url":"/CC/CHAIN/CROSETUP.ASPX?PAGENAVID=2303"}},
                          {"value":"CHAIN/IATAGROUPSETUP.ASPX","toolTip":"Travel Agent Groups","attributes":{"url":"/CC/CHAIN/IATAGROUPSETUP.ASPX?PAGENAVID=2305"}}]},
                {"items":[{"value":"ADMINISTRATION/ADMINHOTELSETUP.ASPX","toolTip":"Hotel Maintenance","attributes":{"url":"/CC/ADMINISTRATION/ADMINHOTELSETUP.ASPX?PAGENAVID=1005"}},
                          {"value":"ADMINISTRATION/ADMINISTRATIONHOTEL.ASPX","toolTip":"Hotel Administration","attributes":{"url":"/CC/ADMINISTRATION/ADMINISTRATIONHOTEL.ASPX?PAGENAVID=1008"}},
                          {"value":"ADMINISTRATION/HOTELDEACTIVATION.ASPX","toolTip":"Hotel Deactivation","attributes":{"url":"/CC/ADMINISTRATION/HOTELDEACTIVATION.ASPX?PAGENAVID=2285"}},
                          {"value":"ADMINISTRATION/ARIRESTATUS.ASPX","toolTip":"ARI Restatus","attributes":{"url":"/CC/ADMINISTRATION/ARIRESTATUS.ASPX?PAGENAVID=1140"}},
                          {"value":"ADMINISTRATION/BOOKINGRETRIEVAL.ASPX","toolTip":"Booking Retrieval","attributes":{"url":"/CC/ADMINISTRATION/BOOKINGRETRIEVAL.ASPX?PAGENAVID=1161"}},
                          {"value":"ADMINISTRATION/IDEASEXPORT.ASPX","toolTip":"Ideas Export","attributes":{"url":"/CC/ADMINISTRATION/IDEASEXPORT.ASPX?PAGENAVID=2287"}}]},
                {"items":[{"value":"HOTEL/INTEGRATIONDETAIL.ASPX","toolTip":"Integration Detail","attributes":{"url":"/CC/HOTEL/INTEGRATIONDETAIL.ASPX?PAGENAVID=1104"}}]},
                {"items":[{"value":"ADMINISTRATION/HOTELUSERSETUP.ASPX","toolTip":"User Maintenance","attributes":{"url":"/CC/ADMINISTRATION/HOTELUSERSETUP.ASPX?PAGENAVID=1006"}},
                    {"value":"ADMINISTRATION/USERACCESSSETUP.ASPX","toolTip":"User Access","attributes":{"url":"/CC/ADMINISTRATION/USERACCESSSETUP.ASPX?PAGENAVID=1007"}}]}]},
                {"nodeClicking":ClientNodeClickedLocal}, null, $get("menu_ctl01"));
});
Nikolay Tsenkov
Telerik team
 answered on 15 Jul 2010
2 answers
197 views
Hi,

I am working with RAD Grid control, I want to display a small image inside a cell,
when i press a 'itemtamplate button' I just want to display a image in specific cell, 
mohsinjk jk
Top achievements
Rank 1
 answered on 15 Jul 2010
2 answers
304 views
Hi Telerik team,

i got a problem when doing translation to the header text of a RadGrid, and it's not using the culture. Language changing is actually from a dropdownlist, for example the dropdownlist has 3 items, english, chinese and spanish. and this Language dropdownlist is actually built as a user control. so every aspx page will have this user control and the function to translate is actually inside this user control as well. the function consists of 3 parameters, Page.Controls, newlanguage and oldlanguage. whenever i select a language, say spanish, it will pass the 'spanish' as newlanguage and 'english' as oldlanguage (by default oldlanguage is english) and then after translation, set the oldlanguage = newlanguage. after that i'll pass all the controls from the aspx page to translate, which is the Page.Controls. my problem here is only with RadGrid, i've no problem with label and other controls. for RadGrid, the translation seems a step behind, for example i change language from english to spanish and then to chinese, the RadGrid will stay in english at spanish stage, and then spanish at chinese stage.


Regards.
Mira
Telerik team
 answered on 15 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?