Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
210 views

Hi,

 I have a radgrid with EditMode​ = "Popup" and EditType = "WebUserControl"

 I can set some parameters of the PopUp using javascript: 

var popUp;
 
function ShowPopUp(sender, args) {
 
    popUp = args.get_popUp();
 
    popUp.style.height = "auto";
    popUp.style.width = "680px";
    popUp.style.left = ((window.innerWidth - 680) / 2).toString() + "px";
    popUp.style.top = ((window.innerHeight - 515) / 2).toString() + "px";
 
}

But how can I modify the settings from the caption of the popup?

Settings like: 

Height

FontSize

FontColor

BackColor

 

Thank you so much for attention! And sorry for my bad english!

 

 

Eyup
Telerik team
 answered on 14 Jul 2016
1 answer
53 views

In an existing vb.net 2010 web form that uses the radeditor, I want to know if I can make the radeditor invisibile and/or not usable for awhile when a particular webform page is displayed. I am asking that question since I want a user to work with a gridview control during the time the radeditor is not visible. I want to do this so I do not need to setup a new web form page just for the gridview control.

Thus can you tell me and/or show me how to make the radeditor invisible and most likely not usable at the same time. Also would you also then tell me how to make the radeditor visible and useable when I want to? There must be some properties that need to be set?

 

Misho
Telerik team
 answered on 14 Jul 2016
4 answers
225 views

Hello,

We have a Rad grid with combination of Bound & Template columns in it.
For the first time when page gets loaded we are binding the Rad grid through server side Need Data Source handler.

In our case for page actions we are trying to bind the Rad grid from client side by calling Web Method via $.Ajax() function.

Everything works well w.r.t. Bound column but it seems Template column are not supported to bind data via client side.

We have tried many alternate ways to bind the template column at client side with no success. 

Could someone please advise is there a workaround/better way to achieve the client side binding of Template column for Rad Grid?

systems
Top achievements
Rank 1
 answered on 14 Jul 2016
9 answers
137 views
I've been waiting for this problem to be fixed in one of the new releases with no luck.
I have the recent version of Telerik ASP.NET AJAX Q2 2013 With SP1
Here is the problem:
Markup:
<telerik:RadComboBox ID="MyRadCombo" runat="server" Skin="Office2007" MarkFirstMatch="True"
        Width="405px">
     <Items>
        <telerik:RadComboBoxItem runat="server" Text="Action Date" Value="Action Date" />
        <telerik:RadComboBoxItem runat="server" Text="Date Seized" Value="Date Seized" />
        <telerik:RadComboBoxItem runat="server" Text="Date Soft" Value="Date Soft" />
        <telerik:RadComboBoxItem runat="server" Text="Dispo Type" Value="Dispo Type" />
        <telerik:RadComboBoxItem runat="server" Text="Dispo Kind" Value="Dispo Kind" />
     </Items>
</telerik:RadComboBox>
Code Behind:
protected void Page_Load(object sender, EventArgs e)
{
     if
(!Page.IsPostBack)

 
MyRadCombo.Focus();
}
Suppose I want to select 'Dispo Type', I would use the keyboard to type 'Dispo Type'. Here is what I get when I type the first letter 'D':


Now, I'm not able to fetch 'Dispo Type' because the auto-complete function already decided to add the letter 'a' without any good reason. So I need to hit backspace twice and then the auto-complete function would work fine. Note that this problem does happen only just after the first postback.

Thank you,
Plamen
Telerik team
 answered on 14 Jul 2016
3 answers
281 views
Hi. I'm using RadControls for ASP.NET AJAX 2009_2_826_dev. I'm trying to set the tooltip on all columns to be the same. Everything works except the GridHyperLinkColumn(s). I can set the 'text' property okay, so I know my code behind is trying to set it on the correct grid item. Thanks in advance.

Daniel

    protected void rgPeople_ItemCreated(object sender, GridItemEventArgs e)  
    {  
        if (e.Item is GridDataItem)  
        {  
            GridDataItem gridItem = e.Item as GridDataItem;  
            foreach (GridColumn column in rgPeople.MasterTableView.RenderColumns)  
            {  
                if (column is GridBoundColumn)  
                {  
                    gridItem[column.UniqueName].ToolTip = gridItem.OwnerTableView.DataKeyValues[gridItem.ItemIndex]["pkEmployeeNumber"].ToString();  
                }  
            }  
        }  
    }  
 

                        <telerik:RadGrid ID="rgPeople" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" 
                            GridLines="None" Skin="Simple" OnPreRender="rgPeople_PreRender" DataSourceID="sdsPeople" EnableLinqExpressions="False" 
                            runat="server" OnItemCreated="rgPeople_ItemCreated">  
                            <MasterTableView AutoGenerateColumns="False" DataKeyNames="pkEmployeeNumber">  
                                <RowIndicatorColumn> 
                                    <HeaderStyle Width="20px" /> 
                                </RowIndicatorColumn> 
                                <ExpandCollapseColumn> 
                                    <HeaderStyle Width="20px" /> 
                                </ExpandCollapseColumn> 
                                <Columns> 
                                    <telerik:GridHyperLinkColumn DataNavigateUrlFields="pkEmployeeNumber" SortExpression="firstName" 
                                        UniqueName="firstName" DataNavigateUrlFormatString="/people/profiles/?empno={0}" 
                                        HeaderText="First Name" DataTextField="firstName" DataType="System.String">  
                                    </telerik:GridHyperLinkColumn> 
                                    <telerik:GridBoundColumn DataField="firstName" HeaderText="First Name" SortExpression="firstName" 
                                        UniqueName="firstNameSort" Display="false" DataType="System.String">  
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridBoundColumn DataField="lastName" HeaderText="Last Name" SortExpression="lastName" 
                                        UniqueName="lastName">  
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridBoundColumn DataField="positionDescription" HeaderText="Title" SortExpression="positionDescription" 
                                        UniqueName="positionDescription">  
                                    </telerik:GridBoundColumn> 
                                    <intra:FilteringColumnPeople DataField="directorate" FilterControlWidth="180px" HeaderText="Directorate">  
                                        <headerstyle width="15%" /> 
                                        <itemtemplate> 
                                            <%# Eval("directorate")%> 
                                        </itemtemplate> 
                                    </intra:FilteringColumnPeople> 
                                    <telerik:GridBoundColumn DataField="phone" HeaderText="Phone" SortExpression="phone" 
                                        UniqueName="phone">  
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridBoundColumn DataField="email" HeaderText="Email" SortExpression="email" 
                                        UniqueName="email">  
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridBoundColumn DataField="pkEmployeeNumber" HeaderText="pkEmployeeNumber" SortExpression="pkEmployeeNumber" 
                                        UniqueName="pkEmployeeNumber" Display="false">  
                                    </telerik:GridBoundColumn> 
                                </Columns> 
                            </MasterTableView> 
                        </telerik:RadGrid> 
 



Martin
Top achievements
Rank 1
 answered on 13 Jul 2016
6 answers
427 views
I was surprised I didn't find anything in the search on this - how would you go about making the Cancel button the default one for a RadConfirm dialog?
Lee
Top achievements
Rank 1
 answered on 13 Jul 2016
1 answer
116 views
When I bind RadAutoCompleteBox with attribute item. But get RadAutoCompleteBox.Entries (item not have properties attribute)
Ivan Danchev
Telerik team
 answered on 13 Jul 2016
5 answers
106 views
guys, i've got a weird one. when i use this for frozen columns in the mark up, it works perfectly.   
<ClientSettings EnableRowHoverStyle="true" >                 
                        <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="true" FrozenColumnsCount="6">
                        </Scrolling>
however when i use this in the code behind - on items databind, i get two headers on the grid. or it actually looks like a grid in a grid.
very strange. anyway i can use this in the code behind where it works perfectly?
 InventoriesRadGrid.ClientSettings.Scrolling.AllowScroll = true;
            InventoriesRadGrid.ClientSettings.Scrolling.UseStaticHeaders = true;
            InventoriesRadGrid.ClientSettings.Scrolling.SaveScrollPosition = true;
            InventoriesRadGrid.ClientSettings.Scrolling.FrozenColumnsCount = 6;
Sandeep
Top achievements
Rank 1
 answered on 13 Jul 2016
1 answer
141 views

is there an option for RadEditor whereby whenever the content inside it change, i can call a javascript function?

 

Joana
Telerik team
 answered on 13 Jul 2016
1 answer
81 views

Hi, I have a nested grid.
I need to pass my bitfield as a key in the Parent Table Relation Key.
Like :

 <ParentTableRelation>
 <telerik:GridRelationFields DetailKeyField="MSE_PK" MasterKeyField="MSE_PK" />  
 <telerik:GridRelationFields
    DetailKeyField="(MST_BitField & MSE_myBit)"
         MasterKeyField="MSE_myBit" />
 </ParentTableRelation>

I need a way to to Something like this is my 'DetailKeyField' .

 

Viktor Tachev
Telerik team
 answered on 13 Jul 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?