Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
417 views
Good afternoon.

I am using Thickbox for modal windows and would like to continue using them with my web application.

The problem I am having is that Thickbox requires the class name "thickbox" to be used with a URL.  The problem I am having is the only way to set a class to a GridHyperLinkColumn is with the ItemStyle-CssClass which auctually sets the style to the li tag, not the href tag.

Is there any way to set the class to the URL that is generated with the GridHyperLinkColumn, or is there any other work around to do this?

Here is my current code:
<telerik:RadGrid width="900px" runat="server" ID="RadGrid2"  DataSourceID="DataSource1" OnItemCommand="RadGrid1_ItemCommand" Skin="Windows7">
 
    <MasterTableView AutoGenerateColumns="False" DataKeyNames="OwnerID" DataSourceID="DataSource1" CommandItemDisplay="Top"  EnableHeaderContextMenu="true">
    <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True"></RowIndicatorColumn>
        <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True"></ExpandCollapseColumn>
 
            <telerik:GridBoundColumn DataField="KioskID" DataType="System.Int32" DefaultInsertValue="" FilterControlAltText="Filter KioskID column" HeaderText="KioskID" SortExpression="KioskID" UniqueName="KioskID"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="tranPaymentAmount" DataType="System.Single" DefaultInsertValue="" FilterControlAltText="Filter tranPaymentAmount column"  HeaderText="tranPaymentAmount" SortExpression="tranPaymentAmount" UniqueName="tranPaymentAmount"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="CreationDate" DataType="System.DateTime"  FilterControlAltText="Filter CreationDate column" HeaderText="CreationDate" SortExpression="CreationDate" UniqueName="CreationDate"></telerik:GridBoundColumn>
 
        <telerik:GridHyperLinkColumn FooterText="HyperLinkColumn footer"
                DataTextFormatString="Customer info" DataNavigateUrlFields="AuthID" UniqueName="CustomerView"
                DataNavigateUrlFormatString="customer_edit.aspx?commandtype=edit&authid={0}&KeepThis=true&TB_iframe=true&height=550&width=600"
                HeaderText="Customer info" DataTextField="AuthID" AllowFiltering="False" Target="_blank">
            </telerik:GridHyperLinkColumn>
 
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

Shinu
Top achievements
Rank 2
 answered on 31 Oct 2012
5 answers
116 views
Hi,

How can I disable client side row selection when the grid is in edit mode?

Thanks,
J
Princy
Top achievements
Rank 2
 answered on 31 Oct 2012
1 answer
104 views
Hi,
I want to put watermark in RadAutoCompleteBox....How to do it? which proert is used for that?
Kalina
Telerik team
 answered on 31 Oct 2012
1 answer
64 views
Hi,

         I am using Rad AsyncUpload control in my program. When I am uploading file which is of 215 character length through IE browsers, it is working fine without any issue. But same file upload is failing in Chrome and mozilla. Is there any particular length limitation for Rad Asyncupload control. There is no issue I am facing with RadUpload control. Can anyone help me out in this?

      Thanks in Advance.


Thanks,
Geetha Rani.
Plamen
Telerik team
 answered on 31 Oct 2012
4 answers
240 views
Is it possible to fix the header in place while the rest of the listview scrolls (after a given height is reached)? When the listview has a lot of rows, it's getting hard to remember what each cell of data corresponds to and I figure that if I freeze the header in place and allow the data to scroll, that would address that issue.
Maria Ilieva
Telerik team
 answered on 31 Oct 2012
1 answer
58 views
Hi,

I have a website built on MVC3, and i recently built CMS using the ASPX structure.

I am using telerik aspx controlls to add and edit the contents to my front end from the admin section.

I have a RadEditor aspx control in the administation for the control , when i paste my content onto the RadEditor , it is changing the links, I don't want the links to be modified.

Eg: when i paste this in the html mode
<a href="@Url.Content(Abc.data.url+"Registration.aspx")">Click here</a>
but it stipsoff some content and only saves
<a href="@Url.Content(Abc.data.url+">Click here</a>

How can i achive this to take what ever i give in the Editor control for the links.

Please assist.

Rumen
Telerik team
 answered on 31 Oct 2012
10 answers
424 views
Hello

I am trying to Add dynamic controls to a ASP table which is inside Editform of Radgrid

It displays ok but when i click on Done button which is also in Edit Form.I am loosing all values of dynamic controls.

Can you let me kno if there is any other way i can do this

below is a little bit of code which i am trying to use

My ASPX Page  
This is in Editform of Radgrid  
 
 <asp:Table ID="tb2" runat="server">                                                     
<asp:TableHeaderRow> 
<asp:TableHeaderCell> 
<asp:Label ID="Label3" Text="Not found" runat="server">  
</asp:Label> 
</asp:TableHeaderCell> 
</asp:TableHeaderRow> 
                                                                        
                                                                      </asp:Table> 

Code Behind in Databound

 
Dim tb2 As Table = grdEItem.FindControl("tb2")  
Dim no_match_chk As New CheckBox  
                 Dim str1 As New Label  
                   str1.Text = "" 
               Dim c1 As TableCell = New TableCell  
               Dim r As New TableRow  
               r.ID = "row1" 
               r.Controls.Add(c)  
               tb2.Rows.Add(r)       
 
When i Click Done button   
 
Tring to get checkbox value which i added to tb2                                      

So please do let me know

Thanks
Kavya


Eyup
Telerik team
 answered on 31 Oct 2012
3 answers
120 views
Is it currently possible to configure rad textbox to function as a securepassword textbox in that it passes the text value as a SecureString instead of a String. If not is something like this in the works?
Vasil
Telerik team
 answered on 31 Oct 2012
22 answers
255 views
I'm getting bad layout/rendering with my RadRibbonBar controls after I upgraded to 2011.3.1305 release. The controls appears to have all the RibbonBarGroups squashed together, overlapping each other so it's unreadable.

Here is a simple example -

    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
        <telerik:RadRibbonBar ID="RadRibbonBar1" runat="server" Width="100%"  Skin="Office2007">
        <telerik:RibbonBarTab Text="Home">
            <telerik:RibbonBarGroup Text="Team Member Info" EnableLauncher="true">
                <Items>
                    <telerik:RibbonBarButton ID="lblEmpName" runat="server" Size="Large" Text="" ImageUrlLarge="Images/LTCONTCT.GIF" />
                    <telerik:RibbonBarButton ID="lblDept" runat="server" Size="Medium" Text="" ImageUrl="Images/greybullet.gif" />
                    <telerik:RibbonBarButton ID="lblJob" runat="server" Size="Medium" Text="" ImageUrl="Images/greybullet.gif" />
                    <telerik:RibbonBarButton ID="lblPayType" runat="server" Size="Medium" Text="" ImageUrl="Images/greybullet.gif" />
                </Items>
            </telerik:RibbonBarGroup>
            <telerik:RibbonBarGroup Text="SAP Info" EnableLauncher="true">
                <Items>
                    <telerik:RibbonBarButton ID="lblEmpNum" runat="server" Size="Large" Text="" ImageUrlLarge="Images/LTCOMMNT.GIF" />
                    <telerik:RibbonBarButton ID="lblEmpSubGroup" runat="server" Size="Medium" Text="" ImageUrl="Images/greybullet.gif" />
                    <telerik:RibbonBarButton ID="lblHireDate" runat="server" Size="Medium" Text="" ImageUrl="Images/greybullet.gif" />
                    <telerik:RibbonBarButton ID="lblSupName" runat="server" Size="Medium" Text="" ImageUrl="Images/greybullet.gif" />
                </Items>
            </telerik:RibbonBarGroup>
            <telerik:RibbonBarGroup Text="Vacation" EnableLauncher="true" Width="300px">
                <Items>
                    <telerik:RibbonBarButton ID="lblVacTotal" runat="server" Size="Medium" Text="" ImageUrl="Images/greybullet.gif" />
                    <telerik:RibbonBarButton ID="lblVacUsed" runat="server" Size="Medium" Text="" ImageUrl="Images/greybullet.gif" />
                    <telerik:RibbonBarButton ID="lblVacAvail" runat="server" Size="Medium" Text="" ImageUrl="Images/greybullet.gif" />
                </Items>
            </telerik:RibbonBarGroup>
            <telerik:RibbonBarGroup Text="Personal Hours" EnableLauncher="true">
                <Items>
                    <telerik:RibbonBarButton ID="lblPersHoursTotal" runat="server" Size="Medium" Text="" ImageUrl="Images/greybullet.gif" />
                    <telerik:RibbonBarButton ID="lblPersHoursAvail" runat="server" Size="Medium" Text="" ImageUrl="Images/greybullet.gif" />
                    <telerik:RibbonBarButton ID="lblPersHoursUsed" runat="server" Size="Medium" Text="" ImageUrl="Images/greybullet.gif" />
                </Items>
            </telerik:RibbonBarGroup>
            <telerik:RibbonBarGroup Text="Bonus Days" EnableLauncher="true">
                <Items>
                    <telerik:RibbonBarButton ID="lblBonusDaysAvail" runat="server" Size="Medium" Text="" ImageUrl="Images/greybullet.gif" />
                    <telerik:RibbonBarButton ID="lblBonusDaysUsed" runat="server" Size="Medium" Text="" ImageUrl="Images/greybullet.gif" />
                </Items>
            </telerik:RibbonBarGroup>
            <telerik:RibbonBarGroup Text="Overtime" EnableLauncher="true">
                <Items>
                    <telerik:RibbonBarButton ID="lblOverTimeCurrentWeek" runat="server" Size="Medium" Text="" ImageUrl="Images/greybullet.gif" />
                    <telerik:RibbonBarButton ID="lblOverTimeCurrentYear" runat="server" Size="Medium" Text="" ImageUrl="Images/greybullet.gif" />
                </Items>
            </telerik:RibbonBarGroup>
        </telerik:RibbonBarTab>
    </telerik:RadRibbonBar>
Ivan Zhekov
Telerik team
 answered on 31 Oct 2012
1 answer
33 views
Hi All,

i lost the filter value when change the pageindex and all the values bind in radgrid.

here i have attached my code:

 <telerik:RadGrid ID="radAccountSearch" runat="server" AllowFilteringByColumn="true" ShowGroupPanel="true" GridLines="None"
                AllowPaging="true" AllowSorting="true" OnPreRender="radAccountSearch_PreRender"
                PageSize="9" DataSourceID="ldSource" Skin="Vista" AllowCustomPaging="true">
                <PagerStyle Mode="NextPrevAndNumeric" />
                <MasterTableView TableLayout="Fixed">
                    <ItemTemplate>
                        <%# (((GridItem)Container).ItemIndex != 0)? "</td></tr></table>" : "" %>
                        <asp:Panel ID="ItemContainer" CssClass='<%# (((GridItem)Container).ItemType == GridItemType.Item)? "item" : "alternatingItem" %>'
                            runat="server">
                            <b>ID : </b>
                            <%# Eval("ID")%>
                            <b>Name : </b>
                            <%# Eval("Name")%>
                            <br />
                            <b>Company : </b>
                            <%# Eval("Company")%>
                            <br />
                            <b>Mobile : </b>
                            <%# Eval("Mobile")%>
                            <b>PhoneNo : </b>
                            <%# Eval("Phone")%>
                            <b>Status : </b>
                            <%# Eval("Status")%><br />
                            <b>Email Id : </b>
                            <%# Eval("Email")%>
                            <br />
                            <b>City : </b>
                            <%# Eval("City")%>
                            <b>State : </b>
                            <%# Eval("State")%>
                            <b>Country : </b>
                            <%# Eval("Country")%><br />
                            <b>Address: </b>
                            <%# Eval("Address")%>
                            <br />
                        </asp:Panel>
                    </ItemTemplate>
                </MasterTableView>
                <GroupingSettings CaseSensitive="false" />
                <HeaderStyle Font-Bold="false" />
            </telerik:RadGrid>
            <asp:LinqDataSource ID="ldSource" runat="server" ContextTypeName="Account.AssetDataContext"
                TableName="AccountContacts" OnSelecting="dsContact_Selecting">
            </asp:LinqDataSource>


below is my CS file.

protected void radAccountSearch_PreRender(object sender, EventArgs e)
    {
        int itemCount = (sender as RadGrid).MasterTableView.GetItems(GridItemType.Item).Length + (sender as RadGrid).MasterTableView.GetItems(GridItemType.AlternatingItem).Length;
        foreach (GridItem item in (sender as RadGrid).Items)
        {
           
            if (item is GridDataItem && item.ItemIndex < itemCount - 1)
            {
                ((item as GridDataItem)["ID"] as TableCell).Controls.Add(new LiteralControl("<table style='display:none;'><tr><td>"));
                                
            }  
            
        }
    }

please i need your help...please help me...
Angel Petrov
Telerik team
 answered on 31 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?