Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
245 views
What is the simplist way to determine whether the checkbox for a node has changed its state. Currently I use Javascript code to store changes in a variable and send the contents of that variable back to the server. I suppose what I am looking for is something like a "CheckboxChanged" property. It really shouldn't have to be necessary for me to write additional code to keep track of these changes. It should be built into the Treeview control. In typical scenarios, when a user checks or unchecks something, this will often result in having to add or delete something on the server. Without recording the state, I would have to first get what already exists on the server and compare it to the current treeview state and either add or remove stuff.
Dimitar Milushev
Telerik team
 answered on 29 Dec 2009
4 answers
197 views
Hi,

I tried to implement checkbox into appointment template. There are few problems: the checkbox does not show when the text property is left empty, the box is deshape as it is unticked and there not trigger event option to select from.  Can I deploy web controls into appointment template as Radgrid, RCB etc?

Regards,

Duy
Kamen Bundev
Telerik team
 answered on 29 Dec 2009
1 answer
135 views
Hello,
I'm using RadGrid 2009.3 with LLBLGenProDataSource2 data source control and the following settings:

grid.MasterTableView.EditMode =

GridEditMode.EditForms;

 

grid.MasterTableView.EditFormSettings.EditFormType =

GridEditFormType.AutoGenerated;

Whenever user attempts to Update a record that results in the exception, I handle the exception through ItemUpdated event:

 

 

 

    private static void grid_ItemUpdated(object source, GridUpdatedEventArgs e)  
    {  
        if (e.Exception != null)  
        {  
            HandleInsertUpdateException((source as RadGrid), e, false);  
 
            e.ExceptionHandled = true;  
            e.KeepInEditMode = true;              
        }  
    } 


where HandleInsertUpdateException is my function for printing the error message.

The problem I'm faced with is this: whenever the user hits the Cancel link, the updated (incorrect) value still gets displayed in the grid.

What is the proper way to refresh the grid to have it display the original value whenever Update fails?

 

Veli
Telerik team
 answered on 29 Dec 2009
1 answer
121 views
good day ervery one,

when i try to upload file using uploader inside radajaxpanel it stop working
؛مثشسث اثمح ةث
Genady Sergeev
Telerik team
 answered on 29 Dec 2009
10 answers
160 views
Hi,

I am using a grid with a popup ( to edit/delete/add new records )
editformtype = autogenerated

Is it possible to change the length of the fields in the popup window ???
and how ?
a screendump is attached ?

Br
Pettsen
Princy
Top achievements
Rank 2
 answered on 29 Dec 2009
1 answer
113 views

This is the definition we have in .aspx

 

 

<telerik:RadCalendar ID="RadCalendar2" runat="server" Font-Names="Arial,Verdana,Tahoma"

 

 

 

ForeColor="Black" Skin="Outlook" Style="border-color: #ececec"

 

 

 

EnableViewSelector="True" AutoPostBack="false">

 

 

 

</telerik:RadCalendar>

 

 

 

A function with the following lines is called on pageload:

 

RadCalendar2.SpecialDays.Clear();

RadCalendar2.SelectedDates.Clear();

 

 

RadCalendarDay NewDay = new RadCalendarDay(RadCalendar2);

 

 

 

foreach (DataRow drrow in dtALLDates.Rows)

 

{

NewDay =

new RadCalendarDay(RadCalendar2);

 

NewDay.Date =

Convert.ToDateTime(drrow["CalendarDate"]);

 

NewDay.ToolTip =

Convert.ToInt32(drrow["SeatsAvailable"]) > 0 ? Convert.ToInt32(drrow["SeatsAvailable"]) > 1 ? drrow["SeatsAvailable"] + " seats are available" : "1 seat is available"

 

 

 

 

:

Convert.ToInt32(drrow["InSchedule"]) == 0 ? "Session not offered or it is a holiday." : "Seats are not available.";

 

 

Boolean bselect = Convert.ToInt32(drrow["SeatsAvailable"]) > 0 && Convert.ToBoolean(drrow["AllowEdit"]) == true ? true : false;

 

NewDay.IsSelectable = bselect;

 

if (Convert.ToBoolean(drrow["IsOpted"]) == true)

 

{

NewDay.IsSelected =

true;

 

RadCalendar2.SelectedDates.Add(

new RadDate(Convert.ToDateTime(drrow["CalendarDate"].ToString())));

 

}

RadCalendar2.SpecialDays.Add(NewDay);

}


When we navigate from one month to another month, the highlighted dates are cleared. I tried lot of things. But nothing working. Please help me to come out of this issue.

Thanks a lot in advance.

Siva

Radoslav
Telerik team
 answered on 29 Dec 2009
2 answers
543 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
107 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
135 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
286 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?