Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
96 views
Hi. I've got several radgrids inside a radajaxpanel. Some are shown or hidden based on rows selected in other grids. I've populated the nested grids with data from the code behind based on http://demos.telerik.com/aspnet-ajax/grid/examples/programming/detailtabledatabind/defaultcs.aspx example. I've also followed http://www.telerik.com/help/aspnet-ajax/grdhideexpandcollapseimageswhennorecords.html help article on how to hide child grids if no records exist. This works okay for a static nested grid. But not all my grids are populated with data on page load as I've stated above. It hides all child grids as the rowcount is obviously zero because they weren't populated with data initially. I've tried using the code inside the needdatasource details table routine but it yields the same results. Is there any way around this? Maybe on the client side? Thanks.

Daniel
Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 08 Oct 2010
2 answers
43 views
Hi, I have a stange problem with Localized Grid Pager. My DLL number is 2010.2.929.35

If I set PagerTextFormat nothing appear.

This exemple working and the text "xxx items in yyy pages" is displayed

 

<PagerStyle AlwaysVisible="True" FirstPageToolTip="Début" LastPageToolTip="Fin" 
               NextPagesToolTip="Page suivante" NextPageToolTip="Page suivante" 
               PageSizeLabelText="Taille de page:" PrevPagesToolTip="Page précédente" 
               PrevPageToolTip="Page précédente" ShowPagerText="True" Mode="NextPrevAndNumeric"/>


This pager not working. Test "xxx emails" is not displayed

 

<PagerStyle AlwaysVisible="True" FirstPageToolTip="Début" LastPageToolTip="Fin" 
               NextPagesToolTip="Page suivante" NextPageToolTip="Page suivante" 
               PageSizeLabelText="Taille de page:" PrevPagesToolTip="Page précédente" 
               PrevPageToolTip="Page précédente" ShowPagerText="True" PagerTextFormat="{1} emails"
                                         Mode="NextPrevAndNumeric"/>

Regards
Luc

Luc
Top achievements
Rank 1
 answered on 07 Oct 2010
1 answer
106 views
I would like to see if you have any examples on how to check the box for the checkboxlist and/or radiobuttonlist.
The UserControl has several checkboxlists and radiobuttonlists and referenced by ID.
Example: 
I have tblOrder which has OrderFrequencyID, OrderReportTypeID.  There are two checkboxlists on that usercontrol, 1 for Frequency and 1 for ReportType.  When I click on Edit, I want to have the checkboxlists checked the box(es). 

Problem:
As I debug, I can see the checkboxes are checked but on the IE, the boxes arent checked.

Thanks

Vinh
Vinh
Top achievements
Rank 1
 answered on 07 Oct 2010
2 answers
98 views
Hi,

I have a purely code loaded RadGrid (latest v.) that has pop-up insert edit forms that work perfectly. Since the datasource is dynamic I can't build custom forms in ascx code.

I need to change field types and insert drop down lists etc.. into the auto generated forms before they load.

Are there any examples available, as I could not locate one.

Thanks for the great products.

-Eric
TheLostLeaf
Top achievements
Rank 2
 answered on 07 Oct 2010
4 answers
217 views
I have a RadToolBar (tbActions) within a GridTemplateColumn in a RadGrid.  When I click a button in tbActions, I want to access the ID column of the GridDataItem row that contains the tbActions that I just clicked in.  How can I get that reference?
<rad:RadGrid ...>
        <MasterTableView ...>
            <Columns>
                <rad:GridBoundColumn DataField="ID" UniqueName="ID" />
                <!--...more columns...-->
                <rad:GridTemplateColumn UniqueName="Actions">
                    <ItemTemplate>
                        <rad:RadToolBar ID="tbActions" Orientation="Horizontal" runat="server"
                            OnButtonClick="tbActions_OnButtonClick" >
                            <Items>
                                <rad:RadToolBarButton ImageUrl="images/button1.png" Value="1" />
                                <rad:RadToolBarButton ImageUrl="images/button2.png" Value="2" />
                                <rad:RadToolBarButton ImageUrl="images/button3.png" Value="3" />
                            </Items>
                        </rad:RadToolBar>
                    </ItemTemplate>
                </rad:GridTemplateColumn>
            </Columns>
            <DetailTables>
                ...            
            </DetailTables>
        </MasterTableView>
    </rad:RadGrid>

protected void tbActions_OnButtonClick(object sender, RadToolBarEventArgs e)
{
    //How can I get a reference to the GridDataItem that contains the toolbar
    //of the button that I just clicked?
    //this is not working:
    GridDataItem item = (GridDataItem)e.Item.ToolBar.Parent.Parent;
         string id;
    if (e.Item.Value == "1")
    {
          id = item["ID"].Text;
          //more code here, use ID for db update
 
    }
    else if (e.Item.Value == "2")
    {
          id = item["ID"].Text;
          //more code here, use ID for db update
    }
    else if (e.Item.Value == "3")
    {
          id = item["ID"].Text;
          //more code here, use ID for db update
    }
}
The Wire
Top achievements
Rank 1
 answered on 07 Oct 2010
2 answers
49 views
Hi, how's everyone doing!
I would like to use many RadGrids throughout the web application. I would like to customize some properties of all these grids. For example, I would like all the grids to show "الصفحة الأولى" this instead of "First page" in the pager style (i.e FirstPageToolTip="الصفحة الأولى").
Please advice me the best way to do this? Thank you very much for your time! (Sorry if this is asked or in the demos. I couldn't find this anywhere...)

Cheers!
Ben
Top achievements
Rank 1
 answered on 07 Oct 2010
4 answers
134 views
I have the following grid definition:

<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="true" AllowMultiRowEdit="true" 
GridLines="None" Skin="Web20" 
OnPreRender="RadGrid1_PreRender" 
>
<MasterTableView EditMode="InPlace" TableLayout="Fixed">
<Columns>
</Columns>
</MasterTableView>
</telerik:RadGrid>

Instead of the default textbox, I want the generated columns to be a drop down list.  All of the selections are the same.  I have to do this at runtime as I don't know how many rows or columns I have until then.

Ideas?
TheLostLeaf
Top achievements
Rank 2
 answered on 07 Oct 2010
5 answers
851 views
I need a masked text box that can accept only IBAN values. The value is of type ROkk BBBB CCCC CCCC CCCC CCCC where kk are digits, BBBB must be uppercase letters and C must be uppercase letters or numbers. Is there any way to achieve this mask using RadMaskedTextBox?
Cori
Top achievements
Rank 2
 answered on 07 Oct 2010
3 answers
65 views

Hi,
We have the following code in the aspx file to enable ajax page post back when clicked on a button or a check box is checked to fetch results for the grid based on the criteria given in the text box.
 

<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxyCustomerPage" runat="server">
<AjaxSettings>
    <telerik:AjaxSetting AjaxControlID="btnSearch">
    <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="CustomerGrid" UpdatePanelHeight="" 
        LoadingPanelID="RadAjaxLoadingPanelCustomer" />
    </UpdatedControls>
    </telerik:AjaxSetting>
    <telerik:AjaxSetting AjaxControlID="chkIncludeDeprecated">
    <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="CustomerGrid" UpdatePanelHeight="" 
        LoadingPanelID="RadAjaxLoadingPanelCustomer" />
    </UpdatedControls>
    </telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManagerProxy>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanelCustomer" runat="server"
Skin="Default" InitialDelayTime="200" MinDisplayTime="300">
</telerik:RadAjaxLoadingPanel>

In the above code, after the part

<telerik:AjaxSetting AjaxControlID="btnSearch">
<UpdatedControls>
    <telerik:AjaxUpdatedControl ControlID="CustomerGrid" UpdatePanelHeight="" 
    LoadingPanelID="RadAjaxLoadingPanelCustomer" />
</UpdatedControls>
</telerik:AjaxSetting>

was added, the submit button no longer appears as a submit button (<input type="submit"/>) but a normal button(<input type="button"/>) rendered to the page. As a result after the user enters a text in the search criteria and hits the enter key the page is not submitted, until the user clicks the button.

Can somone help what could we be missing in the code while we configured ajax action for the button, that it lost the submit behavour.

Thanks,
Manoj

Cori
Top achievements
Rank 2
 answered on 07 Oct 2010
1 answer
121 views

Hi,

how can I rebind my detailtable on client-side? I initially bind it though the OnDetailTableDataBind event. After adding/editing/deleting a row in the detailtable i would like to show the updated data. I tried to call the rebind function for the mastertableview but it didn't worked. Also i tried to play around with the get_detailTables() function but i' not sure how to iterate through the collection and call the rebind function. Can you point me a solution of this problem?

TIA,

Rafal

szumm
Top achievements
Rank 1
 answered on 07 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?