Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
95 views
Hello everybody,

Please help me :(
I build a page with TabStrip, TabStrip has MultiPages, each page is added user control(The control is add inside code in file .cs of page with function RadMultiPage1_PageViewCreated).
In one TabPage, I import a Radupload RadUpload1 to upload files to server, and a Button btnUpload for submitting Upload File. After selecting File, clicking Button, the first thing which is done is function RadMultiPage1_PageViewCreated called again to reload all usercontrol, and then the function btnUpload_Click is called. But now, the RadUpload1 is reset, so, RadUpload1.UploadedFiles is null, all Files which I selected before are not catched in my code, not to uploaded to server.

Please give me some solutions for this problem, men.

Thanks very much for your help.
Peter Filipov
Telerik team
 answered on 29 Jun 2011
2 answers
167 views
Hi,

I have a RadUpload in a RadGrid. I would like set the AllowedFileExtensions property at the code-behind rather through the aspx page itself. In which event should I set this? I've tried it in the '... Insert' event, but it seems that the code does not detect it and allowed the invalid files to go through.

Thanks,
Bernard
Peter Filipov
Telerik team
 answered on 29 Jun 2011
2 answers
383 views
Hi,

I am trying to get my records in Multi-Column, Multi-Row format using RadGrid. This is easily done using DataList as below.

Please see Step 3 in: http://www.asp.net/data-access/tutorials/showing-multiple-records-per-row-with-the-datalist-control-vb

How can we do the same using RadGrid.

Thanks,
Raj
Raj
Top achievements
Rank 1
 answered on 29 Jun 2011
1 answer
63 views
Hello! I'm having this problem) I use the grid and to display more  information about record using a hierarchical structure! I want to place the button there and by clicking on it to delete the current record) How do I determine what records to show more info?) To remove an entry on it!? And one more problem! I want when displaying more information, select the required line!!!Help Please))))
Pavlina
Telerik team
 answered on 29 Jun 2011
2 answers
153 views
I'm trying to get the selected value from a dropdownlist in a radgrid from GridTemplate when being called from a command button.
I don't know how to get the value to pass to an update procedure. ddlassessPeriod.SelectedValue doesn't work when its in ItemTemplate.
Here's some sample code:

<telerik:RadGrid ID="RadGrid1" runat="server"  >
 <MasterTableView>
   <Columns>
    <telerik:GridTemplateColumn UniqueName="TemplateColumn>
      <ItemTemplate>
        <asp:DropDownList  ID="ddlassessPeriod" runat="server"
              SelectedValue='<%# Eval("assessPeriod") %>'>
                    <asp:ListItem Value="0" Text="N/A" />
                    <asp:ListItem Value="1" Text="1" />
                     <asp:ListItem Value="2" Text="2" />
         </asp:DropDownList>
        </ItemTemplate>
       </telerik:GridTemplateColumn>
       <telerik:GridTemplateColumn UniqueName="TemplateColumn" AllowFiltering="False">
         <ItemTemplate>
             <asp:Button ID="update" runat="server" Text="Update"
                       OnCommand="update_Command" CommandName='<%#Eval("seid")%>' />
           </ItemTemplate>
         </telerik:GridTemplateColumn>
     </Columns>
  </MasterTableView>
</telerik:RadGrid>

protected void update_Command(object sender, CommandEventArgs e)
     SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["curriculum"] + "");
     conn.Open();
 
     class.update(conn, ddlassessPeriod.SelctedValue, Convert.ToInt32(e.CommandName));
 
}
Michael
Top achievements
Rank 1
 answered on 29 Jun 2011
2 answers
117 views


i want to process two things in hyperline ,

Tooltipmanage,
another one's move to another page that moves how i get that value in query string

 <telerik:GridTemplateColumn SortExpression="Articleid">
                                <ItemTemplate>
                                    <asp:HyperLink ID="Articleid" runat="server" NavigateUrl="KBaseDetail.aspx" Text='<%# Eval("Articleid") %>'></asp:HyperLink>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>


Thanks,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 29 Jun 2011
1 answer
216 views
I have a question about how itemdatabound works.  I have a sql query that pulls about on average 200 records, not a lot, query runs in seconds.  My problem is i have validation on every column, about 15 columns in each row, that needs to happen but i think that itemdatabound runs against all the data pulled from the SQL query instead of the first 20 records in the radgrid.  i have the radgrid paging set to 20 records per page.  is there a way to have itemdatabound events to run only on the page being viewed instead of all records returned???  
Marin
Telerik team
 answered on 29 Jun 2011
1 answer
201 views
Hi,

I am working on a SharePoint 2010 based project and most of the look & feel and customisation will be done by Telerik Controls. I am using Telerik TabStrip control in conjunction with MultiPage View control to dynamically generate Tabs and their associated Pages. Most of the MultiPage View pages will be referenced as Iframe.

So on the home page of SP 2010 web site, you will see header, footer and TabStrip control on the left instead of Quick Launch menu and content on the middle screen will be rendered by a referenced Page View i.e. iFrame. The iFrame will be a SharePoint page that will render content and Ribbon control.

I want to provide a button called “Add this page to Tab” on the iFrame page. On the click of “Add this page to Tab”, I want to add a new Tab on the TabStrip control on the client side without any post back. So far, I can access the TabStrip control object from JavaScript by using the following code.

var tabStrip = parent.document.getElementbyId(“ct100_PlaceHolderMain_RadTabStrip1”);

I can also access the Rad MultipPage View control DIV by using the following JavaScript.

var pageView = parent.document.getElementbyId(“ct100_PlaceHolderMain_RadMultiPage1”);

I looked at the code of adding a new tab in the TabStrip control on client side at http://www.telerik.com/community/forums/aspnet-ajax/tabstrip/how-to-set-pageview-to-a-tab-using-client-method.aspx

See code below, which is mentioned in the URL above.

            var multiPage = $find("<%=RadMultiPage1.ClientID %>");

             multiPage.trackChanges();

             var pageView = new Telerik.Web.UI.RadPageView();            

             multiPage.get_pageViews().add(pageView);

             pageView.get_element().innerHTML = "<iframe src='http://www.google.com' width='100%' height='600px'></iframe>";            

             multiPage.commitChanges();

             var tabStrip =  $find("<%= RadTabStrip1.ClientID %>");

             var tab = new Telerik.Web.UI.RadTab();

             tab.set_text("New Tab");

             tab.set_pageViewID(pageView.get_id());

             alert(pageView.get_id());

             tabStrip.trackChanges();

             tabStrip.get_tabs().add(tab);

             tabStrip.commitChanges();

             tabStrip.repaint();   

My issue is that I cannot access pageView or TabStrip object properties or methods as I am trying to add a new tab from the iFrame. Can you please provide me detail on how to execute the above code from the iFrame page to add a new tab from the client side.
Similar issue is also described here http://www.telerik.com/community/forums/aspnet-ajax/tabstrip/dynamic-tab-strip-from-iframe.aspx

P.S. I need to achieve the similar functionality to remove a tab by clicking of a button, which will be provided in the iFrame (iFrame will be reference through Page Views content URL property).

Thanks in advance.

Best Regards,

Adnan Ahmed

Cori
Top achievements
Rank 2
 answered on 29 Jun 2011
1 answer
43 views
Hi,

The Classic RadControls had an attribute "OnResponseReceived" in the ClientEvents.
Which attribute has substituted this in the new RadAjax. I see "OnResponseEnd" in the clientEvents. Is it the same?

Thanks,
Ripunjay
Princy
Top achievements
Rank 2
 answered on 29 Jun 2011
1 answer
49 views
Hi,

If you look at the screenshot attached you will notice the grouping panel is partially hidden. This prevents me from clicking on it. I can't figure this one out so your help would be appreciated. Code as follow:

<div style="width:100%; position:relative">
    <telerik:RadGrid AlternatingItemStyle-BackColor="White" ID="RadGrid1" Width="100%"
        runat="server" AllowSorting="false" GridLines="None" Skin="WebBlue" Height="400px"
        ItemStyle-BackColor="White" OnDetailTableDataBind="RadGrid1_DetailTableDataBind" GroupingEnabled="true" GroupPanel-Width="128px" GroupHeaderItemStyle-Width="128px">
        <ClientSettings>
            <Scrolling AllowScroll="True" UseStaticHeaders="True" />
        </ClientSettings>
        <PagerStyle Mode="NumericPages"></PagerStyle>
        <AlternatingItemStyle Wrap="True"></AlternatingItemStyle>
        <MasterTableView HierarchyDefaultExpanded="true" ShowHeader="true" AutoGenerateColumns="False"
            DataKeyNames="poid" HierarchyLoadMode="ServerOnDemand" NoMasterRecordsText="No records to display." GroupLoadMode="Server" ExpandCollapseColumn-ButtonType="PushButton">
            <DetailTables>
                <telerik:GridTableView Name="test" HeaderStyle-BackColor="Silver" ItemStyle-BackColor="Menu"
                    HeaderStyle-HorizontalAlign="Left" AutoGenerateColumns="false" DataKeyNames="poid"
                    AlternatingItemStyle-BackColor="Menu" runat="server" NoDetailRecordsText="No sales orders to display.">
                    <ParentTableRelation>
                        <telerik:GridRelationFields DetailKeyField="poid" MasterKeyField="poid" />
                    </ParentTableRelation>
                    <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
                    <Columns>
                        <telerik:GridBoundColumn HeaderStyle-Width="64px" ItemStyle-BorderStyle="None" DataField="sono"
                            HeaderText="#" SortExpression="sono" HeaderButtonType="TextButton"
                            UniqueName="sono">
                            <ItemStyle BorderStyle="None"></ItemStyle>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderStyle-Width="64px" ItemStyle-BorderStyle="None" DataField="soDescription"
                            HeaderText="Description" SortExpression="soDescription"
                            UniqueName="soDescription">
                            <ItemStyle BorderStyle="None"></ItemStyle>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderStyle-Width="96px" ItemStyle-BorderStyle="None" DataField="TotalNet"
                            HeaderText="Net Price" DataFormatString="{0:c}"
                            UniqueName="TotalNet" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right">
                            <ItemStyle BorderStyle="None"></ItemStyle>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn HeaderStyle-Width="128px" ItemStyle-BorderStyle="None" HeaderText="Status"
                            HeaderButtonType="TextButton" DataField="Status" 
                            UniqueName="Status">
                            <ItemStyle BorderStyle="None"></ItemStyle>
                        </telerik:GridBoundColumn>
                        <telerik:GridHyperLinkColumn  HeaderStyle-Width="48px" DataNavigateUrlFields="soid" DataNavigateUrlFormatString="../SO/SOEdit.aspx?soid={0}"
                            Text="View" HeaderText="" HeaderStyle-HorizontalAlign="Center">
                            <ItemStyle HorizontalAlign="Center" />
                        </telerik:GridHyperLinkColumn>
                    </Columns>
                    <AlternatingItemStyle BackColor="White"></AlternatingItemStyle>
                    <HeaderStyle HorizontalAlign="Left" BackColor="Silver"></HeaderStyle>
                </telerik:GridTableView>
            </DetailTables>
            <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
            <ExpandCollapseColumn Visible="True">
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridBoundColumn ItemStyle-ForeColor="Navy" ItemStyle-Font-Bold="true" DataField="pono"
                    HeaderText="Purchase Orders and Sales Orders" SortExpression="pono" HeaderButtonType="TextButton"
                    UniqueName="pono">
                    <ItemStyle Font-Bold="True" ForeColor="Navy"></ItemStyle>
                </telerik:GridBoundColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
</div>
Pavlina
Telerik team
 answered on 29 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?