Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
1.3K+ views
Hi Experts,

         For the framework components like <asp:gridview> there exists <EditItemTemplate> ... How can I get that with Telerik ?
What I try to do is to avoid "blinking " the grid when I click on Edit button ... So, I want to define a fixed width for the cells (wether they are in edit mode or normal mode).
    <asp:GridView ID="GridView1" runat="server"
    <Columns> 
        <asp:TemplateField> 
            <ItemTemplate> 
                <asp:TextBox Width="200px" runat="server" ID="aaa"></asp:TextBox> 
            </ItemTemplate>             
            <EditItemTemplate> 
                <asp:TextBox Width="200px" runat="server" ID="aaa"></asp:TextBox> 
            </EditItemTemplate> 
        </asp:TemplateField> 
    </Columns> 
    </asp:GridView> 


        How can I do this with RadGrid ? This is indeed a simple question for you people ... 

        When I edit, I would like to limit the height of the cells. What I'm doing actually is :
 
    protected void RadGrid2_ItemDataBound(object sender, GridItemEventArgs e) 
    { 
        if (e.Item is GridDataItem && e.Item.IsInEditMode) 
        { 
            TextBox tbLastName = (e.Item as GridDataItem)["LastName"].Controls[0] as TextBox; 
            tbLastName.Height = Unit.Pixel(12); 
            //tbLastName.Width = Unit.Pixel(10); 
            tbLastName.Style["Font-size"] = "11px"; 
            tbLastName.Style["padding-top"] = "1px"; 
 
            TextBox tbFirstName = (e.Item as GridDataItem)["FirstName"].Controls[0] as TextBox; 
            tbFirstName.Height = Unit.Pixel(12); 
            tbFirstName.Style["Font-size"] = "11px"; 
            tbFirstName.Style["padding-top"] = "1px"; 
 
            TextBox tbTitle = (e.Item as GridDataItem)["Title"].Controls[0] as TextBox; 
            tbTitle.Height = Unit.Pixel(12); 
            tbTitle.Style["Font-size"] = "11px"; 
            tbTitle.Style["padding-top"] = "1px"; 
        } 
    } 
 

Thanks in advance,
RadTony The Newbie
Shinu
Top achievements
Rank 2
 answered on 20 Mar 2013
1 answer
275 views
Hi All,

I am trying to add a telerik image button in my page but it is not displayed. I am not applying any CSS. Here is the markup I tried.

<telerik: RadButton ID="RadButtonImg" runat="server" Text="Download">
   <Image ImageUrl="Dld.png" />
</telerik:RadButton>

Please provide a solution to resolve this issue.

Thanks in advance,
Teena.
Princy
Top achievements
Rank 2
 answered on 20 Mar 2013
25 answers
1.1K+ views
Dear Telerik Support  Team,

I am using Rad:Editor. I just want to know that how can i apply the charector limit in Rad:Editor. It will be very helpful for me if can suggest me how we can apply this feature using XML file.

Regards

Samrat Banerjee
India.
Rumen
Telerik team
 answered on 20 Mar 2013
1 answer
101 views
Hi,

I have a radcombobox which is populated witha large Sql table. I want filtering to be done only after the user entering a minimum of three chsracters. How this can be done?

Thank you,
Freddy.
Princy
Top achievements
Rank 2
 answered on 20 Mar 2013
1 answer
134 views
Hi,

I have an TreeView with CheckChildNodes=true. Also I have add the client event ClientNodeChecking.

I expect if I click a node the client event ClientNodeChecking is fired for the clicked node and for all child nodes. Unfortunaltly it is only fired for the clicked node! Why and how can I solved this?

Background is that i must check the count of all checked nodes and only allowed a maximum of 10.

function FnTreeView_ClientNodeChecking(sender, args)
{
    if (!args.get_node().get_checked())
    {
        var selectedNodesCount = sender.get_checkedNodes().length;
 
        if (selectedNodesCount > 10)
        {
            args.set_cancel(true);
        }
    }
}


Thanks for help,

Kind regards,
Christian

Bozhidar
Telerik team
 answered on 20 Mar 2013
7 answers
1.1K+ views
Hi,
        While Changing the Pagesize of my radgrid from 10 to 20 or 50 the result is not bound to my grid.. I tried OnPageIndexChanged function but it shows error. The grid also needs to remind the changed page size even when the page no is changed. Please help wit a solution...

protected void RadGrid2_PageSizeChanged(object source, GridPageSizeChangedEventArgs e)

{

RadGrid2.PageSize = e.NewPageSize;
// bind function to grid

}
when i using this function all i got was Webserver.exe stopped working.
Am i missing anything?

Andrey
Telerik team
 answered on 20 Mar 2013
1 answer
138 views
I present a large grid in a webpage and I wanted to disable the viewstate to make the page lighter, However, with a disabled viewstate my grouping is not kept when a postback occurs (when I drag another column header in the group panel for example).

Is there any way to keep the grouping functionality with a disabled viewstate? If so, how can it be done?

FYI : My grid's datasource is set dynamically (in the "NeedDataSource" event).
Antonio Stoilkov
Telerik team
 answered on 20 Mar 2013
1 answer
70 views
Hello,

I'm trying to use the RadMenu skins, but they are not available in my application, even after adding a reference to Telerik.Web.UI.Skins.
Only the default skin is available.
Boyan Dimitrov
Telerik team
 answered on 20 Mar 2013
23 answers
965 views
I am using a RadComboBox inside a Microsoft AjaxToolKit ModalPopupExtender.

Unfortunately the dropdown section of the combobox appears behind the modal popup, and always at a fixed position on the page (if you scroll the page, the popup stays in the centre - with the textbox part of the combobox, while the drop down scrolls up and down with the background).

At the moment my combo box is pretty unusable inside the modal popup because I can't select anything from the drop down by clicking on it.

As the Prometheus tools are build on Microsoft AJAX, I was wondering if this was a problem you were aware of and able to help me with.

Thanks,
Martin

Princy
Top achievements
Rank 2
 answered on 20 Mar 2013
2 answers
866 views
I have a grid being bound to a datasource (which comes from a stored procedure) - when a column contains a datetime, such as 01/01/2000 00:00:00, the column type correctly becomes a GridDateTimeColumn (and my filter changes to a DatePicker).  However, when my data is in the format of 01/01/2000, it acts as a normal GridBoundColumn and I get the textbox for a filter.  How can I (programmatically) change the column type?  ColumnType is read-only, and since all of my grids are auto-generated, I am having trouble with this.  

I need to have a DatePicker in the filter is all.  I have seen column.FilterTemplate, but am not sure if this is a solution.

Thanks.
Shinu
Top achievements
Rank 2
 answered on 20 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?