Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
62 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
435 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
131 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
261 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
36 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
3 answers
256 views
Hello, how can I change the colors of this dialog (borders and backgrounds) for the Simple skin?

How can I change the fonts of the labels?

Thank you

AB
Bozhidar
Telerik team
 answered on 31 Oct 2012
1 answer
56 views
As usual I'm trying to learn new technology overnight.  I have a couple of scenarios I need to design for and I was wondering if someone could point me to the right demos.

First of all, there's the classic dropdown from a foreign key table (for example, a customer editing form with a dropdown for states.)  I've already implemented that using the RadGrid's defaults and LinqDataSources.  Put a GridDropDown column in and bind it to a second LinqDataSource.  The dropdown displays in the popup.  Utterly simple. 
Now it appears that what I should do (to allow for design flexibility) is use the NeedDataSource event (no data source controls on the screen.)  Given that requirement, what would be the simplest way to implement the same scenario?   Is is possible to still let the grid do most of the work or do I need to implement a FormTemplate and bind the dropdown in there?  (Forget this one. Already solved it.)


Second, imagine a grid with checkbox and/or dropdown columns.  It's possible that we will want to implement a grid in which a user goes down the list, makes a few changes, and then hits submit to update everything at once.  Is that possible?

Marin
Telerik team
 answered on 31 Oct 2012
3 answers
110 views
hello
I need to know if it is possible to maintain the columns in edit mode,
without lost this mode when the page makes a
"pageLoad", because this is exactly what happens to me.
I can not put anything in the aspx of radgrid,
because it is a radgrid with autogenerated columns.


I put the columns in edit mode with the following method:

foreach (GridDataItem item in RadGrid1.Items)
        {
            item.Edit = true;
        }
        RadGrid1.MasterTableView.Rebind();



thank you very much
Shinu
Top achievements
Rank 2
 answered on 31 Oct 2012
1 answer
172 views
HI

im Using  ItemStyle-CssClass="rwStyle_Brkmgnt"  to apply border for the for grid cells
but this border is getting show only to the First Row of grid

my code ASPX:
<telerik:GridNumericColumn ItemStyle-CssClass="rwStyle_Brkmgnt"  ItemStyle-Wrap="false" UniqueName="NoOfOffices" DataField="NoOfOffices" >
                      </telerik:GridNumericColumn>
CSS:

.rwStyle_Brkmgnt
{
    border-right: solid 1px #c1c1c1;    
    border-bottom: solid 1px #c1c1c1;         
}

Please see the attachment   Screen shot how the CSS is getting Applied

how to Apply border to Whole Grid

Shinu
Top achievements
Rank 2
 answered on 31 Oct 2012
2 answers
157 views
hi.
I am using the rad Grid control  and it is bound to a datatable in code behind.
I want to change each cell to a hyperlink field at runtime and configure  NavigateUrl. When I'm clicking each row  a new page show. How can I do that?
Parnia
Top achievements
Rank 1
 answered on 31 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?