Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
59 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
159 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
962 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
110 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
144 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
6 answers
521 views
When I click next page in radgrid it shows the following error.


Cannot unregister UpdatePanel with ID 'ctl00$ContentPlaceHolder1$RadProduct$ctl00$ctl05$ctl01$grdStockPanel' since it was not registered with the ScriptManager. This might occur if the UpdatePanel was removed from the control tree and later added again, which is not supported.
Parameter name: updatePanel
Sebastian
Telerik team
 answered on 07 Oct 2010
1 answer
320 views
Hi.  I have a radgrid with a command item template.  I have Add New Record open a radwindow.  I have an imagebutton for export to excel, and I set it up like the demo suggests (http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/pdfexport/defaultcs.aspx), but instead of exporting, it hides the command items.  I am posting my code below.  Could you please let me know what I am doing wrong? 
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
            <script type="text/javascript">
                function onRequestStart(sender, args) {
                    if (args.get_eventTarget().indexOf("excelExport") > 0) {
 
                        args.set_enableAjax(false);
                    }
                }
                function ShowInsertForm() {
                    var combo = $find("<%= RadComboBox1.ClientID %>");
                    var comboItem = combo.get_selectedItem();
                    if (!comboItem)
                    {
                        window.radopen("AddComment.aspx", "UserListDialog");
                    }
                    else {
                        window.radopen("AddComment.aspx?something=" + comboItem.get_value("something"), "UserListDialog");
                    }
                    return false;
                }
                function refreshGrid() {
                    $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");
                }
            </script>
<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True"
                        AllowPaging="True" AllowSorting="True" GridLines="None" Skin="WebBlue"
                        OnNeedDataSource="RadGrid1_NeedDataSource"
                        OnDataBound="RadGrid1_DataBound" width="873px"
                        AutoGenerateColumns="False">
                        <ExportSettings  ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true">
                            <Excel Format="ExcelML" />
                        </ExportSettings>
                        <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">
                        </ClientSettings>
                        <MasterTableView CommandItemDisplay="Top" >
                            <CommandItemSettings >
                             </CommandItemSettings>
                            <RowIndicatorColumn>
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </RowIndicatorColumn>
                            <ExpandCollapseColumn>
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </ExpandCollapseColumn>
                            <Columns>
                                <telerik:GridBoundColumn DataField="something0" HeaderText="Grantee"
                                    UniqueName="column">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="something" HeaderText="PO" UniqueName="column1">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="something1" FilterControlWidth="30px"
                                    HeaderText="Comment Date" UniqueName="column2">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="something2" HeaderText="Commentor"
                                    UniqueName="column3">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="something3" HeaderText="Comment"
                                    UniqueName="column4">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="InsertDate" FilterControlWidth="30px"
                                    HeaderText="Insert Date" UniqueName="something4">
                                </telerik:GridBoundColumn>
                            </Columns>
                            <CommandItemTemplate>
                                <a href="#" onclick="return ShowInsertForm();">Add New Record</a>
                                <asp:ImageButton ID="excelExport" runat="server" ImageUrl="~/images/ExportToExcel.gif" CommandName="ExportToExcel" />
                            </CommandItemTemplate>
                        </MasterTableView>
                    </telerik:RadGrid>

Thank you.
GP
Top achievements
Rank 1
 answered on 07 Oct 2010
2 answers
291 views
Hi, i got this radgrid, with 1 boundcolumn and some template columns (all chkbxs)...

<
telerik:RadGrid ID="rggrupos" DataSourceID="dsGrupos" runat="server"
           AutoGenerateColumns="False" GridLines="none">
            <MasterTableView Width="100%">
                <GroupByExpressions>
                    <telerik:GridGroupByExpression>
                        <SelectFields>
                            <telerik:GridGroupByField FieldAlias="Grupo" FieldName="grupo"></telerik:GridGroupByField>
                              
                        </SelectFields>
                        <GroupByFields>
                            <telerik:GridGroupByField FieldName="grupo" SortOrder="Ascending"></telerik:GridGroupByField>
                        </GroupByFields>
                    </telerik:GridGroupByExpression>
                </GroupByExpressions>
                <Columns>
                    <telerik:GridBoundColumn SortExpression="usuario" HeaderText="" HeaderButtonType="TextButton"
                        DataField="usuario">
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn UniqueName="temprespseg"  HeaderText="RESPSEG"  >  
                                <ItemTemplate>  
                                    <asp:CheckBox ID="chkrespseg" runat="server" onclick="Check(this);"  />  
                                </ItemTemplate>  
                            </telerik:GridTemplateColumn
                            <telerik:GridTemplateColumn UniqueName="tempatender"  HeaderText="ATENDER"  >  
                                <ItemTemplate>  
                                    <asp:CheckBox ID="chkatender" runat="server" onclick="Check(this);"  />  
                                </ItemTemplate>  
                            </telerik:GridTemplateColumn
                            <telerik:GridTemplateColumn UniqueName="tempcomentar"  HeaderText="COMENTAR"  >  
                                <ItemTemplate>  
                                    <asp:CheckBox ID="chkcomentar" runat="server" onclick="Check(this);"  />  
                                </ItemTemplate>  
                            </telerik:GridTemplateColumn
                            <telerik:GridTemplateColumn UniqueName="tempenterar"  HeaderText="ENTERAR"  >  
                                <ItemTemplate>  
                                    <asp:CheckBox ID="chkenterar" runat="server" onclick="Check(this);"  />  
                                </ItemTemplate>  
                            </telerik:GridTemplateColumn
                            <telerik:GridTemplateColumn UniqueName="temparchivar"  HeaderText="ARCHIVAR"  >  
                                <ItemTemplate>  
                                    <asp:CheckBox ID="chkarchivar" runat="server" onclick="Check(this);"  />  
                                </ItemTemplate>  
                            </telerik:GridTemplateColumn
                             </Columns>
            </MasterTableView>
  
        </telerik:RadGrid>
What i need to to is to select (mark) some of the checkboxes on each row, and by clickin a button i want to know wich checkboxes are selected on each row, i identify each row by the first bound column (usuario)
btw, my code file is in vb

Thanks for your time.!

Carlos Nava
Carlos
Top achievements
Rank 1
 answered on 07 Oct 2010
5 answers
113 views
Hi Folks,

I'm trying to follow the example as in http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/nestedviewtemplatedeclarativerelations/defaultcs.aspx.

I guess I don't understand the method by which the NestedView gets the Master DataKey ID value.  Clicking on the details arrow always returns the first record.

As in the example, the data is coming from the same table. There are two data sources defined, one for the Master and one for the Nested views.
<asp:LinqDataSource ID="VendorDataSource" EnableObjectTracking="true" EnableUpdate="true" runat="server"
    ContextTypeName="admin.MTSDataClassesDataContext" EntityTypeName=""
    TableName="Vendors">
</asp:LinqDataSource>
<asp:LinqDataSource ID="VendorDetailsDataSource"  EnableUpdate="true" runat="server"
    ContextTypeName="admin.MTSDataClassesDataContext" EntityTypeName=""
    Select="new (ID, Description, Address1, Address2, City, Email2, Phone, FAX, Mobile, Zip, StateID, CountryID, Country, State)"
    Where="ID==@ID"
    TableName="Vendors">
 
    <SelectParameters>
        <asp:Parameter Name="ID" Type="Int32" />
    </SelectParameters>
</asp:LinqDataSource>

The NestedViewSettings are:
<NestedViewSettings DataSourceID="VendorDetailsDataSource">
    <ParentTableRelation>
        <telerik:GridRelationFields  DetailKeyField="ID" MasterKeyField="ID" />
    </ParentTableRelation>
</NestedViewSettings>

and the MasterTable View settings:
<MasterTableView AllowAutomaticUpdates="true" DataKeyNames="ID"  DataSourceID="VendorDataSource">

Again, the issue is that clicking on the details arrow always returns the first item in the database, not the details for the record that was clicked on. 

Thanks for any help.

Rick



Pavlina
Telerik team
 answered on 07 Oct 2010
2 answers
246 views
Some of the items in my RadComboBox are long, and wrap when the dropdown opens. The issue is that in Internet Explorer, when you select one of these items with your mouse, the selected item is aligned wrong. It should display the beginning of the selection, with the end of it hidden. That is the behavior in other browsers. IE also works properly when you use the keyboard to make the selection. This issue is only when the mouse is used to select the item. It appears that using the mouse leaves the text selected, and might have something to do with why this is happening, but setting EnableTextSelection to false does not resolve the issue.

In the demo, if you look at it in IE, you can reproduce the problem. After loading the page, use the mouse to open the "Dealer" combo. It's the most obvious when you select an item that's very long, such as "Nord-Ost-Fisch Handelsgesellschaft mbH". The text that will show is "Ost-Fisch Handelsgesellschaft mbH", because it's aligned wrong. What should be showing is "Nord-Ost-Fisch Handelsgesellsch".

I do see an article for your Silverlight controls that shows how to resolve the issue, so I'm hoping you have a resolution for these controls.

Thanks,
Misty

Misty Fowler
Top achievements
Rank 1
 answered on 07 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?