Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
171 views
Can someone just point me in the right direction with this? I can't seem to be able to change my column widths:

                        <telerik:RadGrid ID="RadGridDentistsNotes" runat="server" AutoGenerateColumns="False" TableLayout="Fixed">             
                            <MasterTableView DataSourceID="odsDentistsNotes" DataKeyNames="NoteID">                                                                                       
                                <Columns>                                                                                                                                    
                                    <telerik:GridBoundColumn DataField="NoteDate" HeaderText="Date" HeaderStyle-Width="50px" />                                    
                                    <telerik:GridTemplateColumn HeaderText="Note"
                                    <ItemTemplate> 
                                        <%#BLL.Functions.SummaryStr(Eval("Note"), 40)%> 
                                    </ItemTemplate> 
                                    </telerik:GridTemplateColumn> 
                                                                                                                                                                      
                                    <telerik:GridBoundColumn DataField="FK_UserFullName" HeaderText="User" HeaderStyle-Width="50px" />                                     
                                </Columns>                                                                  
                            </MasterTableView>                             
                             
                            <ClientSettings EnableRowHoverStyle="true">    
                                <Selecting AllowRowSelect="true" />          
                            </ClientSettings>                                   
                        </telerik:RadGrid>       

Actually I should point out that the widths are set when the grid contains no data, but when I rebind the grid and load data, the widths go back to standard.
Rick
Top achievements
Rank 1
 answered on 03 Jul 2009
2 answers
187 views
How can i prevent users from changing the pagesize in the grid?

I want them to be able to page throught the records, but not change it
Jason
Top achievements
Rank 1
 answered on 03 Jul 2009
14 answers
158 views
I've noticed today that I can't hide headers by setting ShowHeaders="False" if I have defined a <DayView GroupBy="Consultant"/> in my schedule control.  If I take out the DayView tag, I can no longer view my schedule with resource grouping.

Can you think of something I might have done to cause this?
Peter
Telerik team
 answered on 03 Jul 2009
1 answer
174 views
Hi

In Q2 2007 we are using the following code to dynamically set the target and open a ContextMenu on client click of a regular html control.

var menu = window["<%= PropertiesMenu.ClientID %>"]; 
if (menu) 
  menu.SetContextElementID(obj.id); 

We're refactoring to use Q3 2008 and can see from the documentation that we should be using "set_targets" instead but this raises an error. Can you provide an eaxmple of how to use set_targets?
Genady Sergeev
Telerik team
 answered on 03 Jul 2009
1 answer
133 views

 

 

 

 

 

Hello,

I have the follwoing code on my aspx page. When ommiting the line oWnd.show(); in the javascript function the Close button on the radwindow is not working. When I take out that line, everything else is working as expected. Is this problem by design or am I missing something? Can you elaborate on the difference between using and not using the oWnd.show(); ? Using 2009 Q1 release.

<telerik:RadCodeBlock> 
 
<script> 
 
 
 
function openWin() {  
 
var activiteitSettings = document.getElementById('<%=activeActiviteitType.ClientID %>').value;  
 
var oWnd = $find("<%=RadWindow1.ClientID%>");  
 
var pos = GetTopLeftPosition(event.srcElement);  
 
dirty = 0;  
 
var d = Date.parseDate(document.getElementById('<%=infoArray.ClientID %>').value, "d-m-yy");  
 
var voor = document.getElementById('<%=voor.ClientID %>').value;  
 
 
if (activiteitSettings == 0)  
 
oWnd.setUrl("PopForms/Pop_Activiteit_Edit.aspx?urenoid=" + event.srcElement.id + "&g=" + voor + "&maandag=" + d.getDate() + '-' + eval(d.getMonth() + 1) + '-' + d.getFullYear());  
 
else if (activiteitSettings == 1)  
 
oWnd.setUrl("PopForms/Pop_Activiteit_Edit_Select.aspx?urenoid=" + event.srcElement.id + "&g=" + voor + "&maandag=" + d.getDate() + '-' + eval(d.getMonth() + 1) + '-' + d.getFullYear());  
 
oWnd.show();  
 
oWnd.moveTo(pos.x + parseInt(event.srcElement.clientWidth), pos.y);  
 
 
}  
 
</script> 
 
</telerik:RadCodeBlock> 
 
 
<telerik:RadWindow ID="RadWindow1" Skin="Vista" NavigateUrl="PopForms/Pop_Activiteit_Edit.aspx" KeepInScreenBounds="true"   
 
runat="server" Width="300px" Height="200px" ShowContentDuringLoad="false" VisibleTitlebar="true" VisibleStatusbar="false"   
 
Behaviors="Close, Move, Resize" > 
 
</telerik:RadWindow> 
 
Fiko
Telerik team
 answered on 03 Jul 2009
1 answer
77 views

Hi,

We have got a rad editor control on rad dialog. When someone opens that dialog for the first time, it doesnt render the editor tool bars properly. But from next time onwards everything works fine. It just happens for the first time. Please advise of how to fix it. I am not sure how to upload the image here.

Thanks in advance

sachin

Tervel
Telerik team
 answered on 03 Jul 2009
1 answer
76 views
Hi,

I checked the demo from below and tried in my version 2009.1.402.2.  However, when i have the line tooltipManager.createToolTip(element), it throws JS error saying there is no such a supported property or method in the line of code which debugger stops there

createToolTip(_13,_14,_15)  {var _16 = _13.getAttribute("title");

getAttribute breaks the code.  Any idea?

http://demos.telerik.com/aspnet-ajax/tooltip/examples/radtooltipmanagerclientapi/defaultcs.aspx


If 2009.1.402.2 version doesn't support this new feature, how can i achieve the client side tooltip creation for tooltipManager?  Thanks for any help.

Chris
Svetlina Anati
Telerik team
 answered on 03 Jul 2009
4 answers
111 views
Hi,
          I have to use advancedEditform.ascx in another page. How do i do it?

R/ Michael.
Bottlerocket
Top achievements
Rank 1
 answered on 03 Jul 2009
1 answer
70 views
In Advanced Insert form i have mentioned the code as below :


<scheduler:AdvancedForm runat="server" ID="AdvancedForm1"
Subject='<%# Bind("Subject") %>'
Start='<%# Bind("Start") %>'
End='<%# Bind("End") %>'
RecurrenceRuleText='<%# Bind("RecurrenceRule") %>'
UserID='<%# Bind("User") %>'
RoomID='<%# Bind("Room") %>'
Description='<%# Bind("Description") %>' />
<asp:Panel runat="server" ID="ButtonsPanel" CssClass="rsAdvancedSubmitArea">
<div class="rsAdvButtonWrapper">
<asp:LinkButton runat="server" ID="InsertButton" CssClass="rsAdvEditSave"
CommandName="Insert">
<span><%= Owner.Localization.Save %></span>
</asp:LinkButton>
<asp:LinkButton runat="server" ID="CancelButton" CssClass="rsAdvEditCancel"
CommandName="Cancel" CausesValidation="false">
<span><%= Owner.Localization.Cancel %></span>
</asp:LinkButton>
</div>
</asp:Panel>

And its saving the appointment but i want to validate the records from database before inserting 
its becoause i don;t want to add same record on same day so to validate this i want proper message to be display if 
record exsists for that day .
Do you know what it could be ? 

Thx..

Amit 
Peter
Telerik team
 answered on 03 Jul 2009
1 answer
88 views
Hi All,
        I was wondering if there was a way to suppress the form that says Save,Cancel and Options and take the user directly to the main form when creating a new appointment ? When editing and updating an appointment I was able to suppress the edit this occurrence or edit the series form by using the OnClientRecurrenceActionDialogShowing function.

Thanks,
Aditya
Veselin Vasilev
Telerik team
 answered on 03 Jul 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?