Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
556 views
Hello,

I am quiet weak in stylesheet .My query is not exactly related to radcontrols but its related to setting stylesheet for header. when the text of my header is greater than the width of that column, column increases it width automatically, i dont want to increase my column width. It will be ok if the text of header will overlap with the header of next column, how to set stylesheet for this. Quick reply will be appreciated.

Thanks in advance

Suvarna
Shinu
Top achievements
Rank 2
 answered on 29 Dec 2009
5 answers
109 views

I am using RadWindow in my Aspx pages. And there is a problem I've got:

The caption of window is displayed incorrectly in IExplorer. Look at samples from Explorer and Chrome.

Window is defined in Aspx as follows:

<radw:radwindowmanager runat="server">

<Windows>

<radw:RadWindow id="ARAjuda" title="Ajuda - Conhecimentos" Width="600px" Height="450px" Runat="server"

ReloadOnShow="false" Modal="true" Behavior="Move, Close" onclientshow="OnClientShow" ShowContentDuringLoad="true"/>

<radw:RadWindow id="SendConhecimento" title="Conhecimentos - Sugerir Novo Conhecimento" Width="500px" Height="350px" Runat="server"

ReloadOnShow="false" Modal="true" Behavior="Move, Close" onclientshow="OnClientShow" ShowContentDuringLoad="true"/>

</Windows>

</radw:radwindowmanager>

And is called to be shown as follows:

 

function ShowHelp()

{

window.radopen("Dialogs/Help.aspx", "ARAjuda");

return false;

}

The content of Help.aspx is about like that:

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >

<head id="Head1" runat="server">

 

<title>Ajuda - Conhecimentos</title>

 

<script type="text/javascript" language="javascript" src="../../JS/RadWindow.js"></script>

</head>

<body>

 

<form id="Form1" method="post" runat="server">

<table width="100%">

 

<tr>

 

<td align="center">

 

<b>Conhecimentos</b>

 

<hr style="color: #CC0000; background-color:#CC0000;" />

 

</td>

 

</tr>

 

<tr>

 

<td style="text-align:justify;">

 

Etiam sem libero, dictum vitae, lobortis sed, vehicula non, nibh. Donec quam. Ut lectus nulla, dictum et, vestibulum in,

congue ac, est. Quisque mollis mollis magna. Duis convallis est sed sem. Ut luctus quam eget nulla. Fusce tristique rhoncus

ante. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Sed tincidunt accumsan erat.

Aliquam tincidunt commodo leo. Etiam porttitor pede non leo. Nulla nisi nunc, pretium a, consectetuer at, gravida sit amet, leo.

Suspendisse dignissim ornare velit.

<p></p>

 

In mi. Quisque eu turpis at turpis porta gravida. Suspendisse facilisis nisi sit amet nibh. Proin pharetra, massa eget scelerisque

dictum, mi nulla malesuada mi, et posuere leo nisl ut est. Suspendisse eleifend metus at massa. Donec quis leo nec magna tincidunt

placerat. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Suspendisse neque risus,

commodo sed, ullamcorper in, vestibulum in, tellus. In neque lorem, condimentum quis, egestas a, vulputate vel, purus. In accumsan

viverra orci.

</td>

 

</tr>

 

<tr>

 

<td align="center">

 

<br />

 

<button onclick="CancelEdit();" type="button" class="mediumButton">Fechar</button>

 

</td>

 

</tr>

 

</table>

 

</form>

</body>

</html>


Any idea, how to fix it ?

 

Svetlina Anati
Telerik team
 answered on 29 Dec 2009
3 answers
137 views

Hi
The slide items of menu are showing in upward direction in FireFox even if there is plenty space at the below side of the menu. If there is no space to spread the slide items below the menu then it shows at the upward side, that is fine, but after that if we provide plenty space below the menu still the slide items shows at upward side.  

The slide items behave properly in IE and Safari.

Please go through the attached file for more clarity

Please suggest me what i have to set for getting the menu working properly for FireFox.

Thanks
Datta Navatre

Kamen Bundev
Telerik team
 answered on 29 Dec 2009
3 answers
292 views

Hi..

I have a requirement in radgrid. Where ever we have Grid with sortable columns, the column header must be underlined. I tried the following code. it works well in FF but not in IE (previously i have customised the header text appearence by overwriting the css) 

<telerik:GridTemplateColumn HeaderStyle-Font-Underline="true"     HeaderText="Category Name" HeaderStyle-HorizontalAlign="Center"
                            SortExpression="Name"     HeaderStyle-Width="170px" ItemStyle-HorizontalAlign="Left"
                            ItemStyle-VerticalAlign="Middle">
                            <ItemTemplate>
                                <asp:LinkButton ID="lblShortCode" OnClick="EditeRecord" CommandArgument='<%# Eval("RecordID") + "~" +Eval("ProgramCatId") %>'
                                    runat="server" Text='<%# Eval("Name") %>'></asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle VerticalAlign="Middle" BorderColor="#8AB3C9" BorderWidth="1px"></ItemStyle>
                        </telerik:GridTemplateColumn>

Thanks.

Jeeivtha

jeevitha
Top achievements
Rank 1
 answered on 29 Dec 2009
3 answers
108 views
hi,

i am showing cofirm using radcofirm as described in docs.
http://www.telerik.com/help/aspnet-ajax/window_dialogsconfirm.html

but the cancel button is not showing properly. what is the issue?
Svetlina Anati
Telerik team
 answered on 29 Dec 2009
2 answers
300 views

I am using RadControls for ASP.NET AJAX.

 

I have implemented a simple RadGrid, which consists of a GridTemplateColumn holding a RadNumericTextBox and an ImageButton.

 

If a value is written into the text box and enter is pressed, the “ontextchanged” event fires and operation “value_TextChanged” is called within the code behind. But in addition, the operation “RadGrid_ItemCommand” is called within code behind and the event arguments indicates, that command “WasteCommand” has been invoked, which is not true.

 

I have investigated, that the problem does not occur if a button is placed on the page in addition to the grid.

 

<body>

    <form id="form1" runat="server">

   

    <%--<asp:Button ID="Button1" runat="server" Text="Button" />--%>

   

    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">

    </telerik:RadScriptManager>

   

   

<telerik:RadGrid ID="RadGrid_KVA"

    OnNeedDataSource="RadGrid_NeedDataSource"

    OnItemCommand="RadGrid_ItemCommand"

    runat="server">

   

    <MasterTableView  DataKeyNames="id" AutoGenerateColumns="False">                     

        <Columns>                                                 

           <telerik:GridTemplateColumn HeaderText="Value" UniqueName="columnValue">

           <ItemTemplate>    

               <telerik:RadNumericTextBox ID="Value" runat="server"  ontextchanged="value_TextChanged" Width="40px" >                       

               </telerik:RadNumericTextBox>

               <asp:ImageButton ID="WasteButton" runat="server" ImageUrl="btnCalculator.png"

                CommandName="WasteCommand" />                                   

           </ItemTemplate>

           </telerik:GridTemplateColumn>                                                                                  

        </Columns>                       

    </MasterTableView>               

</telerik:RadGrid>

   

    </form>

</body>

Frank Lemmen
Top achievements
Rank 1
 answered on 29 Dec 2009
2 answers
112 views
Hi

I am having a problem with my Grid Detail Table.

I have a grid and in the grid i have 2 template column, in one there is a textbox and in the other there is a numeric textbox. when i click the save button the rows in the grid has to be saved. i have also set a detail table in the grid.To get the value of each template field the code i have used is
protected void btnSave_Click(object sender, EventArgs e)
    {
if (!string.IsNullOrEmpty(((RadNumericTextBox)gvSupplierInvoice.Items[Index].FindControl("txtSuppliedQuantity")).Text))
           {
               decimal SuppliedQuantity = Convert.ToDecimal(((RadNumericTextBox)gvSupplierInvoice.Items[Index].FindControl("txtSuppliedQuantity")).Text);
               this.oFdrSuplInvDtls.Entity.SID_QTY = Convert.ToDecimal(SuppliedQuantity);
           }
}

Now when i try to save the data in the grid with the detail table in the expanded form i am not getting the value in the template column.Hence am getting an error message. This happens only if the detail grid is in the expanded form. Could anybody help me with this
Sharon
Top achievements
Rank 2
 answered on 29 Dec 2009
2 answers
86 views
Hi ,

I have an radgrid withit  a form template , my requirement is that when the edit form template is opened and the user clicks on
Add new record i need to close the edit form template of the grid . I tried setting IsItemInserted property of the mastertableview of the
grid to false but with no effect .

Would appreciate a quick relpy on this .

Regards
Ratheesh
Princy
Top achievements
Rank 2
 answered on 29 Dec 2009
6 answers
323 views
Hi,

I've a radeditor ctrl and user enters the contents there in it. I've  a "Preview" button which when clciked should popup a different window with the radeditor and its contents (just a preview)  to the user. I've the radeditor in .ascx file. I need to popup another window .
Pls help me with code.
Rumen
Telerik team
 answered on 29 Dec 2009
3 answers
88 views
I am unable to retrieve the DataKeyValue on Insert so I can reference the saved record from the code behind to do further processing.  How is this accomplished?
I have used the editeditem.datakeyvalues(e.item.itemindex)("ThisIDFieldName") with an index out of range error.
Tsvetoslav
Telerik team
 answered on 29 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?