Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
139 views
HI

I have a input box which should accept

1. +/- in the first place (+ is the default)
2. Total length is 6 including +/- and :
3. second and third numbers
4. Fourth is :
5. fifth and sixth should be numbers

+/- hr:mm format

mm should be less than 60
no restriction on hr format . It can be more than 24 hrs too

Please provide a sample code.

Regards
Sreedhar Ambati
Dimo
Telerik team
 answered on 18 Aug 2009
3 answers
153 views
Hello,

When I enable RadCompression by adding
<add name="RadCompression" type="Telerik.Web.UI.RadCompression" /> 
to web.config and when I try to access page which not exists (something like http://WEBPAGEURL/123rawssas) instead of IIS error page:

Server Error in '/' Application.

The resource cannot be found


I'm getting weird output (it is longer):

��������`I�%&/m�{J�J��t��`$ؐ@�����iG#)�*��eVe]f@�흼��{���{��;�N'���?\fdl��J�ɞ!���?~|?"��Ey�')=��y6����h��������y�(��G�d^ϲe��!z���Ѳ�Y)5��G��A�8�VeU?������/I=�����Yd�E��n�գt����/�q� �IU�n �ۻ�/No������N�|� �&�} �0��e�

any idea how to fix it?

IIS7 with Application Pool in Integrated Pipeline mode. Issue can be reproduced on produciton server too (right now I'm trying to solve id on localhost).
Rosen
Telerik team
 answered on 18 Aug 2009
3 answers
116 views
Hi,

I have a RadToolBarButton List, Export to Excel, Word, Csv and Pdf. I try to export the data from RadGrid, there are no issue for all the button except CSV. My Grid have one column with RadDateTimePicker and RequiredFieldValidator. When I click Csv button, I got the following error. I have already added CauseValidation = "false" but still no changes.

Unable to find control id 'radprocessLogEffectiveStartDate' referenced by the 'ControlToValidate' property of 'RequiredFieldValidator1'.

radGrid.ExportSettings.ExportOnlyData =

false;

 

 

radGrid.MasterTableView.ExportToCSV();



Thanks,
Alex
Daniel
Telerik team
 answered on 18 Aug 2009
1 answer
894 views
Hi,

I am trying to achieve the following functionality. 
1. Display only the calendar pop up image and make the textbox associated with it invisible. For this I am using RadDatePicker control  and managed to hide the textbox and show only the pop up.
2. Whenever a date is selected on the pop up, I want to add the selected date item to a drop down on the server side. The Dropdown is an asp.net control.
3. I am using the onselecteddatechanged event of the RadDatePicker with its AutoPostBack set to true. For trial runs, I am writing the Old date and New date in a textBox.
      My problem is that when the date is selected on the calendar pop up for the first time, a Postback occurs and the text in the textbox is written with Old Date as null and new date as selected from the pop up. However on subsequent attempts when i select a different date from the calendar pop up there is nothing happening. No postback takes place and the textbox text remains same. 
Reuqest you to kindly help me with this problem
Shinu
Top achievements
Rank 2
 answered on 18 Aug 2009
1 answer
154 views
Hi there,

I need to set the default path, when i want to choose a document from a library with the document manager tool.
Is it possible to set the default viewpath? Now it starts in the root of the site.

In which config file do I need to enter it? And what?

Kind regards,
christian
Stanimir
Telerik team
 answered on 18 Aug 2009
4 answers
122 views
Hi

We're using the MaskedEditor to input timesheet information. Eg:
Mon - Sun
Start, Break, End

Means, 1 person has 7 x 3 (7 days * input for start, break, end) = 21

When there are 20 people it makes it 410 controls on the form

Using the IE js profiler we found that "Sys.Application.add_init(function() {" (which is generated by the MaskedInput control) gets called too many times and hangs the browser for about 5 minutes not responding

How do we optimize this?
Veli
Telerik team
 answered on 18 Aug 2009
3 answers
106 views
Hi everyone! i have a scenarion here.
I have a grid and i used GridTemplateColumn and used the the input object for the binding.

<telerik:GridTemplateColumn AllowFiltering="false" UniqueName="Selected">
 <ItemStyle Width="1%" VerticalAlign="Top"></ItemStyle>
         <ItemTemplate>
                 <input type="radio" name="rbStatisticalValue" value='<%# CastValue(DataBinder.Eval(Container.DataItem, "ID")) %>'
                         <%# SetCheckedStatusForRadioBtn(Convert.ToBoolean(DataBinder.Eval(Container.DataItem, "Selected"))) %>/>
 </ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn AllowFiltering="false" UniqueName="ListOrder">
     <HeaderTemplate>List Order</HeaderTemplate>
     <ItemStyle Width="1%" VerticalAlign="Top"></ItemStyle>
     <ItemTemplate>
          <input type="text" value='<%# CastValue(DataBinder.Eval(Container.DataItem, "ListOrder"))%>' readonly="readonly"  maxlength="3"/>
     </ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn AllowFiltering="false" UniqueName="Title">
     <HeaderTemplate>Options</HeaderTemplate>
     <ItemStyle Width="1%" VerticalAlign="Top"></ItemStyle>
     <ItemTemplate>
          <input type="text" value='<%# CastValue(DataBinder.Eval(Container.DataItem, "Title"))%>'/>
     </ItemTemplate>
</telerik:GridTemplateColumn>


when i click on the Add New Record on the grid, i got this error
"Object cannot be cast from DBNull to other types"

I cannot figure out whats causing this error...
Vlad
Telerik team
 answered on 18 Aug 2009
3 answers
515 views

Folks,

I have a RadGrid (RadGrid1) with 2 Template coulmns, Unique Name "Fulltime" and  "Division" . I would like to see if RadGrid is in Edit Mode and Value of Column "Fulltime"   = "Yes"  then Required Field Validator ="RequiredFieldValidator1" will be activated else not.
Another way, if RadGrid is in Insert Mode then Column Division is not required but it is in Edit Mode and Column "Fulltime"   = "Yes", then Column Division is required.  I do not see Insert Temple options in Rad Grid. Below is my code.

I am using RadControls for ASP.NET AJAX Q2 2009 NET35 with VS 2008. Any help will be appreciated. Thanks.

_________________ 

<telerik:GridTemplateColumn
        DataField="Fulltime" HeaderText="Full time"
            SortExpression="Fulltime" UniqueName="Fulltime" Visible = "True" > 
        <ItemTemplate>  
         <asp:Label ID="LblEmploymentStatus" runat="server" Text='<%#Eval("Fulltime") %>'></asp:Label>  
    </ItemTemplate> 
    <EditItemTemplate>
    <telerik:RadComboBox ID="RadComboBox1" Runat="server" Text = '<%#Bind("Fulltime") %>'>
            <Items>
                <telerik:RadComboBoxItem runat="server" Selected="True" Text="Yes"
                    Value="Yes" />
                <telerik:RadComboBoxItem runat="server" Text="No" Value="No" />
            </Items>
        </telerik:RadComboBox>
    </EditItemTemplate>
   
        </telerik:GridTemplateColumn>

 

<telerik:GridTemplateColumn UniqueName="Division" HeaderText="Division" SortExpression="Division"  > 
        <ItemTemplate>  
         <asp:Label ID="LblDivision" runat="server" Text='<%#Eval("Division") %>'></asp:Label>  
    </ItemTemplate> 
    
    <EditItemTemplate>    
         <asp:TextBox ID="EditDivision" Text='<%#Bind("Division") %>' runat="server"></asp:TextBox>  
         <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="EditDivision"
                                    ErrorMessage="* Required"  Display ="Dynamic"   runat="server">
                                </asp:RequiredFieldValidator>          
    </EditItemTemplate>  
      </telerik:GridTemplateColumn>

Vlad
Telerik team
 answered on 18 Aug 2009
1 answer
75 views
Is there a way to declare rows in a RadGrid without databinding?  I have some static grids and I like the Telerik skin but I don't really feel like putting it all in a database.

Can I just hard code rows in the aspx page somehow?

-Thanks in Advance!

-Brandon
Vlad
Telerik team
 answered on 18 Aug 2009
1 answer
116 views
Hi, I use entity datasource with the radgrid, i include my navigation for Table2.Id, watched the Edit Templates Video and seems
all to working fine when i edit a record, but when i try to insert a record i get the following error:

Error: Sys.WebForms.PageRequestManagerServerErrorException: DataBinding: 'Telerik.Web.UI.GridInsertionObject' does not contain a property with the name 'Table2'.

I know there is not a property with this name, i checked everything and looks ok..how come the edit,delete,cancel all working fine?
I sense there is something on entity datasource or about a RadTextBox that Binds to the navigation property, but cannot figure what.

Any help?


Princy
Top achievements
Rank 2
 answered on 18 Aug 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?