Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
101 views
I'm trying to set a radTextBox's text to the value of cookie... but I keep getting an error that Object is not set to reference of an object. 

Little help!

using System;  
using System.Data;  
using System.Configuration;  
using System.Collections;  
using System.Web;  
using System.Web.Security;  
using System.Web.UI;  
using System.Web.UI.WebControls;  
using System.Web.UI.WebControls.WebParts;  
using System.Web.UI.HtmlControls;  
using System.IO;  
using System.Collections.Specialized;  
using System.Drawing;  
using Telerik.WebControls;  
 
 
public partial class UserArticleDetails : System.Web.UI.Page  
{  
    protected void Page_Load(object sender, EventArgs e)  
    {  
          
    }  
    protected void FormView1_PreRender1(object sender, EventArgs e)  
    {  
        if (this.FormView1.CurrentMode == FormViewMode.Insert)  
        {  
            //This works  
            TextBox txtName1 = this.FormView1.FindControl("txtName") as TextBox;  
            txtName1.Text = "test";  
 
            //This does not work  
            TextBox radName = this.FormView1.FindControl("radTextBox1") as TextBox;  
            radName.Text = "hello";  
        }  
    } 
sayitfast
Top achievements
Rank 2
Iron
 answered on 16 Sep 2008
1 answer
185 views
 I need to access just the date portion of the raddatetimepicker value for printing purposes.

When I print the date I get 9/15/2007 12:00:00 AM. I do not need or want the time to print.

Any ideas?

Thanks

BB
Bernie Bialt
Top achievements
Rank 1
 answered on 16 Sep 2008
6 answers
163 views
Hi,

I have this table

ID
Subject
Start
End
Recurrence_rule
Data_Storage

Date_Insert  -> datetime
Date_Update -> datetime

I use a customadvanceTemplate with sqldatasource

How i make to insert a datetime insert or a date_update when i insert an appointment?I would like to insert automatically the datetime...is possible with a hidden  field?or another solution?
Rubihno
Top achievements
Rank 1
 answered on 16 Sep 2008
4 answers
183 views
I have had a terrible time with this and have yet to find a solution. I have a radgrid with expandable items. Everything is setup to do filtering and paging; and it kind of works. When I filter it works fine, but if I try to go to the second page of the filter, it does go to page 2, but the data resets to the original data set.

I've looked at all the tutorials I could  find but no luck. Any help would be appreciated.
Roger
Top achievements
Rank 1
 answered on 16 Sep 2008
6 answers
103 views

Hello,
we have a complex booking system using a scheduler to control our shifts.

When we have DayView-GroupingDirection="Horizontal" we get the correct rendering, but when we have the setting to Verticaly we still get the grey/silver row on top of every grouping element.

Reading the source (wot comes out from the rendered browser result) i suspect that its some of the code that are still displaying even though it shouldn´t.

<table class="rsColumnHeaderTable" cellpadding="0" cellspacing="0" border="0">
     <tr class="rsColumnHeaderRow">
      <th class="rsMainHeader rsLastCell">DHL</th>
     </tr>
    </table>

ASPX code:

<

telerik:RadScheduler ID="staffSchedule" runat="server" DayEndTime="00:00:00"
DayStartTime="07:00:00" TimeLabelRowSpan="1"
FirstDayOfWeek="Monday" LastDayOfWeek="Sunday"
onappointmentdelete="staffSchedule_AppointmentDelete"
onappointmentupdate="staffSchedule_AppointmentUpdate"
CustomAttributeNames="asp:Panel,table,tr,td,staff,css,diff,shiftId" HoursPanelTimeFormat="HH:mm" Height="537px"
ShowAllDayRow="False" AllowInsert="False"
StartEditingInAdvancedForm="False" EnableAdvancedForm="False" ondatabinding="staffSchedule_DataBinding"
OnClientAppointmentEditing="OnClientAppointmentEditing" AllowEdit="False"
ShowViewTabs="False" WorkDayEndTime="00:00:00"
WorkDayStartTime="07:00:00" Width="5000px" OverflowBehavior="Scroll" GroupBy="Customers"

DayView-GroupingDirection="Vertical">
<DayView WorkDayStartTime="07:00:00" WorkDayEndTime="00:00:00"
DayEndTime="00:00:00" DayStartTime="07:00:00">
</
DayView>
<AppointmentTemplate>
<div class="<%# Eval("css") %>">
<%# Eval("subject") %>

</
div>
</AppointmentTemplate>
</
telerik:RadScheduler>


As far as i can see the "bugg" is when switching between 
DayView-GroupingDirection="Horizontal" and
DayView-GroupingDirection="Vertical"

T. Tsonev
Telerik team
 answered on 16 Sep 2008
4 answers
188 views
I have a radgrid with a tooltip manager.  Everything works just fine when the page loads, but when I click on any of the select buttons to open up a radwindow and enter data, the tool tip stops working.  If I then mouse over any of the headers I get an empty box and then an error message that says:

"Validation of viewstate MAC failed.  If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm.  AutoGenerate cannot be used in a cluster."

This is running from the Visual Studio environment on my local computer, not a server.  Another wierd thing is if I click on the Edit button in the grid, everything will go back to normal.  It only seems to happen when I use my Select buttons with the RadWindows.

Thanks

Ronnie
Top achievements
Rank 1
 answered on 16 Sep 2008
1 answer
231 views
Hi,

I'm using the rad editor on a web page, and in one of the scenarios of user input, the content of the editor id uploaded from a file (html).

When i set the new content through the Content property in the server, and looks at the result showing in the editor afterwards - there are few changes made automatically by the editor's filters.
Since I would like to keep the content identical to the original file, i tried to disable all filters working on the editor.
This is were I encountered the problems - the filters wont go off.
I tried disabling them through server side and client side, but none of them work.
The editor is adding a "title" tag to the html head, adding "tbody" tags to the tables and so on...

How can disable all filters completely and have the editor not to change nothing in the content?

Thank you.
Rumen
Telerik team
 answered on 16 Sep 2008
1 answer
147 views
I am using Tooltip for my application
The asp:textbox allow tooltip onfocus event but Radtextbox doesnot show when i am focus to that rad text box 


Its work :

<

asp:TextBox ID="txtCity" runat="server"></asp:TextBox>

<

telerik:RadToolTip ID="RadToolTip9" runat="server" TargetControlID="txtCity"

Text="Address will be given out only to the buyer or seller" ShowEvent="OnFocus" Position="MiddleLeft"

RelativeTo="Element" Skin="Sunset" Width="100">

</telerik:RadToolTip>





Its Not work properly:

<

telerik:RadNumericTextBox ID="txtMobile" runat="server" MaxLength="9" Value="123456789">

<NumberFormat DecimalDigits="0" GroupSeparator="" />

</telerik:RadNumericTextBox>

 

<telerik:RadToolTip ID="RadToolTip13" runat="server" TargetControlID="txtMobile"

Text="Mobile Number will be given out only to the buyer or seller" ShowEvent="OnFocus" Position="MiddleLeft"

 

RelativeTo="Element" Skin="Sunset" Width="100">

 

</telerik:RadToolTip>

how to i show  tool tip for Rad text box
regards
azees


Dimo
Telerik team
 answered on 16 Sep 2008
2 answers
144 views
Hi all,

I'm having some problems deleting multiple rows in my grid. I have the MasterTableView and inside it I have my CommandItemTemplate which have the respective controls to manipulate the grid (add registers, delete registers and refresh).

The problem is that i have a button and a linkbutton for every function (image and text) and all works perfect, but the button to delete seleted rows doesn't works. It just works until de OnClientClick event, but does matter what the user clicks (ok or cancel)  it never axecute the delete event  ...... for the link button it works fine.

Here is my code
<CommandItemTemplate>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse;">
    <tr>
        <td align="center">
            <asp:Button ID="btnNew" runat="server" CommandName="InitInsert" CssClass="rgAdd" CausesValidation="false" />
        </td>
        <td align="center">
            <asp:Button ID="btnDeleteSelected" runat="server" CommandName="DeleteSelected" CssClass="rgDel" CausesValidation="false" OnClientClick="javascript:return confirm('Borrar todos los usuarios seleccionados?')" />
        </td>
        <td align="center">
            <asp:Button ID="btnRefresh" runat="server" CommandName="RebindGrid" CssClass="rgRefresh" CausesValidation="false" />
        </td>
        <td width="100%">&nbsp;</td>
    </tr>
    <tr>
        <td align="center">
            <asp:LinkButton ID="lbtnNew" runat="server" CommandName="InitInsert" CausesValidation="false" Text="Nuevo" />
        </td>
        <td align="center">
            <asp:LinkButton ID="lbtnDeleteSelected" runat="server" CommandName="DeleteSelected" OnClientClick="javascript:return confirm('Borrar todos los usuarios seleccionados?')" CausesValidation="false" Text="Borrar Seleccionados" />
        </td>
        <td align="center">
            <asp:LinkButton ID="lbtnRefresh" runat="server" CommandName="RebindGrid" CausesValidation="false" Text="Refrescar" />
        </td>
        <td width="100%">&nbsp;</td>
    </tr>
</table>
</CommandItemTemplate>

I hope you can help me with this


Regards,

Daniel Peralta
Daniel
Top achievements
Rank 1
 answered on 16 Sep 2008
3 answers
178 views
I have a form that is calling a RadWindow to update user information.  The user double clicks a username from a page it then brings up a RadWindow with the user information in a form that they can change.  They then click a save settings button that updates the information and goes back to the parent page using 

InjectScriptLabel.Text =

"<script>RefreshParentPage()</" + "script>"

This works perfectly.  

My problem arises when I place the form into a RadPanel to Ajaxify it the InjectScript does not work, so when the save Settings button is clicked the windows remains open. I need it to close.

Any ideas on how this can be fixed?
 
Georgi Tunev
Telerik team
 answered on 16 Sep 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?