Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
61 views
Hi,

I am having some issues when a grid is in edit/insert mode because the
web user control used to edit the data does not render properly.  The labels
of the form are not displayed (They are invisible) and when you type something
in the text boxes the characters are not displayed.

One additional thing is that a pop window is opened and inside the popup window
a user control is rendering a grid. That grid opens a popup window when it is 
in edit/insert mode. So, the escenario is a form, with a popup window that opens 
another popup window. 

The issue is happening only in Internet Explorer version 8.  Now most of the users
of the company are using this version.

we tested the form with Internet Explorer 9, Google Chrome (Latest version) and Firefox (Latest version) and it works fine.

I attached two screenshots. One shows the problem, and the other one renders fine.
(I.E 9, Google Chrome, Firefox).

The easiest way to fix it is to upgrade the I.Explorer, but for now what should be the
best way to fix it momentarily.

Regards,

Leonardo Vega.
Tsvetina
Telerik team
 answered on 06 Jun 2011
1 answer
549 views
I am writing Tooltip for RadGrid control columns, my following sample grid has Bound and Template columns. Following code working fine with Bound columns but not for Template column.

 <telerik:RadGrid ID="radCntDets" runat="server" GridLines="None" Width="938px"
                AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
                OnNeedDataSource="radCntDets_OnNeedDataSource"
                AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True"
                HorizontalAlign="NotSet"
                Font-Size="Small"
                OnItemDataBound="radCntDets_ItemDataBound"
                OnItemUpdated="radCntDets_ItemUpdated"
                 OnUpdateCommand="radCntDets_UpdateCommand"
                 OnInsertCommand="radCntDets_InsertCommand"
                 OnDeleteCommand="radCntDets_DeleteCommand">
                 <ClientSettings EnableRowHoverStyle="True">
                    <ClientEvents OnColumnClick="rowColumnClicked" OnRowClick="rowClick" OnCommand="oncommand" />
                    <Scrolling AllowScroll="true" UseStaticHeaders="True" />
                </ClientSettings>
                <MasterTableView  GridLines="None" CommandItemDisplay="Top" DataKeyNames="ControlID" EditMode="InPlace">
                    <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                    <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>
                    <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>
                    <Columns>
                        <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" ItemStyle-Width="100px" HeaderStyle-Width="100px">
                            <HeaderStyle Width="100px"></HeaderStyle>
                            <ItemStyle Width="100px"></ItemStyle>
                        </telerik:GridEditCommandColumn>
                        <telerik:GridButtonColumn ConfirmText="Delete this control?" ButtonType="ImageButton"
                            CommandName="Delete" Text="Delete" UniqueName="DeleteColumn1">
                            <HeaderStyle Width="20px" />
                            <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
                        </telerik:GridButtonColumn>
                        <telerik:GridTemplateColumn HeaderText="Email Address" UniqueName="EmailAddress" ItemStyle-Width="80px" HeaderStyle-Width="80px">
                            <ItemTemplate>
                                <%#DataBinder.Eval(Container.DataItem, "EmailAddress")%>
                            </ItemTemplate>
                            <EditItemTemplate>
                                 <%--<asp:TextBox ID="txtEAddress" runat="server" Text='<%# Bind("EmailAddress") %>'></asp:TextBox>--%>
                                <input id="txtEmails" runat="server"  type="text" class="bodyText" width="120px" onchange="return ValidateEmail(this);" />
                                <asp:RegularExpressionValidator Display="Dynamic" ID="RegularExpressionValidator1" ValidationExpression="^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$"
                                            runat="server" ControlToValidate="txtEmails" ErrorMessage="Valid E-mail address is required.">*</asp:RegularExpressionValidator>
                            </EditItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridBoundColumn UniqueName="Description" HeaderText="Description" DataField="Description"
                            HeaderStyle-Width="220px" ItemStyle-Width="220px">
                            <HeaderStyle Width="220px"></HeaderStyle>
                            <ItemStyle Width="220px"></ItemStyle>
                        </telerik:GridBoundColumn>
                      
                    </Columns>
         </MasterTableView>
         <FilterMenu EnableImageSprites="False"></FilterMenu>
         <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
        </telerik:RadGrid>

 protected void radCntDets_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
        {
            if (e.Item is GridDataItem)
            {
                GridDataItem gridItem = e.Item as GridDataItem;
                foreach (GridColumn column in radCntDets.MasterTableView.RenderColumns)
                {
                    if (column is GridBoundColumn)
                        gridItem[column.UniqueName].ToolTip = gridItem[column.UniqueName].Text;

                    if (column is GridTemplateColumn)
                    {
                        // How to get ItemTemplate (EmailAddress) value
                    }
                }
            }
        }

Thanks in advance for your help.

- Indra

Princy
Top achievements
Rank 2
 answered on 06 Jun 2011
1 answer
79 views
Hey,

in a regular gridview I can easily get the number of the row which was selected.
dataGridView1.Rows[0].Selected = true;


somehow, I can't get it in a radGrid.

I tried:
string selectedValue = (RadGrid1.SelectedItems[0] as GridDataItem)["users"].Text;

but I keep getting excaption:
"Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index"

Can anyone point out this code?

Thx
Princy
Top achievements
Rank 2
 answered on 06 Jun 2011
5 answers
75 views

 I have a radgrid with a template to edit a pretty big record.

 I created the template, added a few fields, edited, saved all is well.

 Next I added a tabstrip to the template, created tabs for billing address, mailing address, etc…

Everything looks great but when I try to update the record the information in the tabstrip does not get saved. (None of the tabs)

 The few header fields outside of the tabstrip do update fine and no error is generated.

 I hope this makes sense.

 Thanks for any help.

 Bill

Paul
Top achievements
Rank 1
 answered on 06 Jun 2011
0 answers
64 views
hi my dear telerik team :     
My RadWindowManager And RadWindow Like Below :
<telerik:RadWindowManager ID="RadWindowManager1" runat="server"
    Behavior="Minimize, Close, Pin, Move"
    Behaviors="Minimize, Close, Pin, Move" Skin="Outlook">
    <Windows>
        <telerik:RadWindow ID="SupportWindow" runat="server"
            NavigateUrl="~/ForRadWindows/Support.aspx" style="display:none;"
            Behavior="Close, Pin" Behaviors="Close, Pin" Skin="Forest">
        </telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>

problems :
#1 : SupportWindow does not override it's mother's skin at all...mean i always have Outlook skin instead Forest.
#2 : SupportWindow does not override it's mother's Behaviours at all...
#3 : why we have duplicate BEHAVIOUR and BEHAVIOURS when add them with RadWindowManager ? what is the difference?

thanks in advance

Majid Darab
Top achievements
Rank 1
 asked on 05 Jun 2011
0 answers
63 views
I use automatic insert, which calls an SQL stored procedure. This stored procedure checks if the newly inserted record already exists, if it does, it doesn't insert the record, and returns a NULL for one of the datafields. My question is, how do I capture the SQL result of this NULL datafield so I can display a message to the user?
Nizar
Top achievements
Rank 1
 asked on 05 Jun 2011
0 answers
37 views
Hi ALL,
how can I prevent fire needdatasource event  when I change page index????
Regards
Ghadeer
ghadeer
Top achievements
Rank 1
 asked on 05 Jun 2011
0 answers
61 views
Hi there,
    I have a grid in which there is a nestedViewTemplate that contains a radTab and each of this tab contains another Grid. While binding data to the main grid, all these subgrids are binding one by one for each row in the main grid which consumes more time to execute. Also if I expand one item in the main grid, the data is not binding in the subgrid and the itemDatabound is not firing. But once I change the page index, or sort, then the data is again binding. What I actually want is to stop the bulk binding of the sub grid and it should only bind once I expand the main row for each record.  Below is my code for your reference

 

<telerik:RadGrid runat="server" ID="rdGdMain" ShowFooter="False"

 

 

AllowSorting="True" GridLines="None">

 

 

<MasterTableView AutoGenerateColumns="False" AllowPaging="True" HierarchyLoadMode="serverondemand"

 

 

  Name="MainGrid">

 

 

<NestedViewTemplate>

 

 

<asp:Panel runat="server" ID="InnerContainer">

 

 

<telerik:RadTabStrip runat="server" ID="tabStrip1" MultiPageID="multiPage1"

 

 

SelectedIndex="0">

 

 

<Tabs>

 

 

<telerik:RadTab runat="server" Text="t1" PageViewID="pageView1">

 

 

</telerik:RadTab>

 

 

<telerik:RadTab runat="server" Text="Final t2" PageViewID="pageView2">

 

 

</telerik:RadTab>

 

 

<telerik:RadTab runat="server" Text="t3" PageViewID="pageView3">

 

 

</telerik:RadTab>

 

 

</Tabs>

 

 

</telerik:RadTabStrip>

 

 

<telerik:RadMultiPage runat="server" ID="multiPage1" Width="100%">

 

 

<telerik:RadPageView runat="server" ID="pageView1"

 

 

Selected="true">

 

 

<asp:Label ID="lbl1" Text='<%# Eval("id") %>'

 

 

Visible="false" runat="server" />

 

 

<telerik:RadGrid runat="server" ID="rdGd2" AllowSorting="true"

 

DataSourceID="myDS"

 

 

 

 

 OnItemCommand

 

="rdGd2_ItemCommand"

 

 

OnItemCreated="rdGd2_ItemCreated" OnItemDataBound="rdGd2_ItemDataBound">

 

 

<MasterTableView ShowHeader="true" AutoGenerateColumns="False" AllowPaging="true"

 

 

Name="MainGrid" PageSize="10" HierarchyLoadMode="serverondemand" >

 

 

<Columns>

 

.........

 

</Columns>

 




Any help would be highly appreciated
Thanks
By Shafi

Muhamed Shafi
Top achievements
Rank 1
 asked on 04 Jun 2011
0 answers
24 views
radgrid
I want to do the following visual effect is only one row but view
and 3 thanks

Mario Ovalle
1000 Flying in the region of Zone 5
01-May-2001 31-July-2011
Jose
Top achievements
Rank 1
 asked on 04 Jun 2011
1 answer
40 views
i have a grid and image button.on image button click i need to hide some columns of radgrid and another click of the same button i need to make the columns visibility true using javascript.

Can you please send me  sample code to do so as soon as possible.
Gimmik
Top achievements
Rank 1
 answered on 03 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?