Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
189 views
Hello Telerik team,

I have tried this article http://www.sitefinitywatch.com/blog/09-06-16/Email_Notification_about_New_Blog_Comments.aspx in sitefnity project. but in project , in bin folder there is not found telerik.cms.engine.dll .

I have tried to downoad telerik.cms dlls from telerik site but not found. Please can you suugest us from where we can download telerik dlls.



Thanks & Regards,
Anal Kukadiya  
Anal
Top achievements
Rank 1
 asked on 04 Dec 2012
1 answer
43 views
Hi Telerik team,

In my rad grid Edit popup, I'm saving the excel data to the DB and importing it to the server.It is taking a lot of time to save the data to DB and import an excel sheet[as it contains many rows] to the server.so I want to make this process as Back ground process[Threads] so that i can access other pages till it completes.

I have used the below format..
Event :
protected void btn_Save(sender o,Eventargs e)
{
 Thread obj = new Thread(new ThreadStart(SaveData));
             obj.IsBackground = true;
}
Method:
public void SaveData()
{
....
....
}
It is not working...
when the editpopup is opened the background grid is covered with Opacity.
Kostadin
Telerik team
 answered on 04 Dec 2012
1 answer
275 views
Hi,
FAQ Sitefinity: "No, the Sitefinity Community Edition does not allow commercial use. "
What is the commercial use?
For example, it is authorized to make a site on this version for nursery of dogs or for veterinary clinic?
Make please clarification.
Thanks.
Vlad
Dale
Top achievements
Rank 1
 answered on 04 Dec 2012
1 answer
67 views
Hi,

Reminder pops up a list of appointments in Scheduler and when I click on Dismiss All/Snooze for 1 hour, I expect   it to stay silent for the selected timeframe however any postback form scheduler or  a page causes it to show again. Why does not  snooze /dismiss persist postback?   

Thanks,
Prava
Plamen
Telerik team
 answered on 04 Dec 2012
3 answers
121 views

Heey

I have a strange error when i try to uppdate my data in db an Error appears( Value of '0001-01-01 00:00:00' is not valid for 'SelectedDate'. 'SelectedDate' should be between 'MinDate' and 'MaxDate'. Parameter name: SelectedDate)

Story: I have a grid in in my UserEditPanel where i try to create users that works perfectly but in this same UserEditPanel there is a little gird where you can add (with new record button) FromDate ToDate WorkingTime and VacationDays for one user that is in same time how to say in creation . if I try to save/update it wont it just reset only in the fields FromDate and ToDate to (0001-01-01 00:00:00') some help would be just awesome btw i'm working with Viewstate

I think that the error appears in this part of the code and i really dont know what is wrong here ...


Code 

       <telerik:RadDatePicker ID="fromdatepicker" runat="server" DbSelectedDate='<%# Eval("FromDate") == null ? null : Eval("FromDate") %>' TabIndex="4">
                                                        </telerik:RadDatePicker>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>To</td>
                                                    <td>
                                                        <telerik:RadDatePicker ID="todatepicker" runat="server" DbSelectedDate='<%# Eval("ToDate") == null ? null :Eval("ToDate")%>'
                                                            TabIndex="4">
                                                        </telerik:RadDatePicker>


<
asp:Button ID="btnUpdate"  Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
                                                runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'></asp:Button
                                            </div>
                                        </td>
                                        <td>
                                            <asp:Button  ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"
                                                CommandName="Cancle" OnClick="btnCancel_Click"></asp:Button>
                                        </td>
                                    </tr>
                                </table>
                        </FormTemplate>
                    </EditFormSettings>
                 </MasterTableView>
                <FilterMenu EnableImageSprites="False">
                </FilterMenu>
            </telerik:RadGrid>
        </telerik:RadAjaxPanel>
    </div>
    <div class="BackAndSave">
        <telerik:RadButton ID="rbBack" CssClass="rowButton" runat="server" Text="Back" OnClick="rbBack_Clicked"
            CausesValidation="false" />
        <telerik:RadButton ID="rbSave" CssClass="rowButton" runat="server" Text="Save" OnClick="rbSave_Clicked" />


nothing special just some buttons & fields  



code behind 

the error appears here (exitingAnnualVacation.FromDate = editedAnualVacation.FromDate;) the second from date is reset

protected void rgAnnualVacation_UpdateCommand(object sender, GridCommandEventArgs e)
    {
        try
        {
            GridEditableItem item = e.Item as GridEditableItem;
            Hashtable values = new Hashtable();
            item.ExtractValues(values);
 
            AnnualVacation editedAnnualVacation = new AnnualVacation();
            item.UpdateValues(editedAnnualVacation);
          //newAnnualVacation.IsNew = true;
            List<AnnualVacation> annualVacationSource = (List<AnnualVacation>)ViewState["AnnualVacationSource"];
            AnnualVacation existingAnnualVacation = annualVacationSource.Where(av => av.AnnualVacationId == editedAnnualVacation.AnnualVacationId).FirstOrDefault();
            existingAnnualVacation.WorkingTime    = editedAnnualVacation.WorkingTime;
            existingAnnualVacation.VacationDays   = editedAnnualVacation.VacationDays;
            //Set values to zero when update
            existingAnnualVacation.FromDate = editedAnnualVacation.FromDate;
            existingAnnualVacation.ToDate   = editedAnnualVacation.ToDate;
        }
        catch
        {
            //Hier fehlermeldung
        }
    }



Thanks for help and fast answer !!
Angel Petrov
Telerik team
 answered on 04 Dec 2012
1 answer
106 views

Hello,

I have created a page on which there is a hyperlink when clicked, it will open a new asp.net page shown in a JQuery UI Dialog box and the new page contains some basic telerik controls such as RadDatePicker and RadDropDown.

The page is shown correctly but the telerik controls inside the dialog are not working at all.My Project is using Microsoft .NET Framework 4.0 and the Telerik.Web.UI dll is also for Framework 4.0.

After too much research, I found that when I change the Target Framework of my Project to 3.5, the controls start working smoothly and when I revert the target framework to 4.0, the controls doesn't work.

Kinldy let me know if someone has any idea about this cause I am really struggling because of this issue.
Vasil
Telerik team
 answered on 04 Dec 2012
3 answers
290 views

Hi,
I am using RegularExpressionValidator for validating email id for a particular company. ValidationExpression=\\w+([-+.']\\w+)*@ABCCompany.com working for only first email id, i need to validate more than one email. I found in online ValidationExpression="((\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)*([;])*)*", its working fine but i have to validate for ABCCompany.com. I tried also CustomValidator server side validation, its working code wise but its not showing error message.
Can you please anybody solve my problem.


My HTML Code:
-------------
<

telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="false" CellPadding="0"  CellSpacing="0" GridLines="None" HorizontalAlign="Left" ShowFooter="true" AllowPaging="true"  PageSize="10" AllowMultiRowSelection="true" OnItemCommand="RadGrid1_OnItemCommand" OnNeedDataSource="RadGrid1_OnNeedDataSource" OnInsertCommand="RadGrid1_OnInsertCommand" OnUpdateCommand="RadGrid1_OnUpdateCommand" OnDeleteCommand="RadGrid1_OnDeleteCommand"  AllowSorting="true">

 <PagerStyle Position="Bottom" AlwaysVisible="true" />

 <ValidationSettings EnableValidation="true" ValidationGroup="products" />

<MasterTableView CommandItemDisplay="Top" HorizontalAlign="NotSet" AutoGenerateColumns="False" DataKeyNames="id">

 <Columns>
<telerik:GridTemplateColumn DataField="Product_ID" FilterControlAltText="Filter Product_ID column" HeaderText="Product_ID" UniqueName="Product_ID" SortExpression="Product_ID">

<HeaderStyle HorizontalAlign="Center" />

<ItemStyle HorizontalAlign="Center" />

<ItemTemplate>

<asp:Label ID="lblProduct_ID" runat="server" Text='<%# Bind("Product_ID") %>'></asp:Label>

</ItemTemplate>

</telerik:GridTemplateColumn>

<telerik:GridTemplateColumn DataField="Product_Email" FilterControlAltText="Filter Product_Email column"

HeaderText="Product Email" UniqueName="Product_Email" SortExpression="Product_Email">

<HeaderStyle HorizontalAlign="Left" />

<ItemStyle HorizontalAlign="Left" />

<ItemTemplate>

<asp:Label ID="lblProduct_Email" runat="server" Text='<%# Bind("Product_Email") %>'></asp:Label>

</ItemTemplate>

<EditItemTemplate>

<asp:TextBox ID="tbProduct_Email" runat="server" Text='<%# Bind("Product_Email") %>'

Width="500px"></asp:TextBox>&nbsp;(Note: Enter multiple emails with ; separator)

<asp:RequiredFieldValidator ID="rfvtbProduct_Email" runat="server" ControlToValidate="tbProduct_Email"

ErrorMessage="Please enter Product Email" ForeColor="Red" ValidationGroup="products"></asp:RequiredFieldValidator>

<%

--<asp:RegularExpressionValidator ID="revtbProduct_Email" runat="server" ControlToValidate="tbProduct_Email"

 ErrorMessage="Enter only valid ABCCompany Emails" ForeColor="Red" ValidationExpression="\\w+([-+.']\\w+)*@ABCCompany.com"

ValidationGroup="products"></asp:RegularExpressionValidator>--%>

<asp:CustomValidator ID="cvtbProduct_Email" runat="server" ControlToValidate="tbProduct_Email"

ForeColor="Red" ErrorMessage="Enter only valid ABCCompany Emails" OnServerValidate="cvtbProduct_Email_OnServerValidate"

ValidationGroup="products" EnableClientScript="false" Display="None"></asp:CustomValidator>

</EditItemTemplate>

</telerik:GridTemplateColumn>

<telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">

<ItemStyle HorizontalAlign="Center"></ItemStyle>

</telerik:GridEditCommandColumn>

<telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" Text="Delete"

UniqueName="DeleteColumn">

<ItemStyle HorizontalAlign="Center"></ItemStyle>

</telerik:GridButtonColumn>

</Columns>

<EditFormSettings ColumnNumber="1" CaptionDataField="Product_id" CaptionFormatString="Edit properties of Product ID: {0}"  InsertCaption="Product ID:">

</EditFormSettings>

</MasterTableView>

<ClientSettings EnableRowHoverStyle="true">

</ClientSettings>

</telerik:RadGrid>


Severside validation Code:
--------------------------

protected
void cvtbProduct_Email_OnServerValidate(object sender, ServerValidateEventArgs args)

 {

 

  bool valid;

 string[] email = new string[100];

TextBox EmailList = (TextBox)RadGrid1.MasterTableView.GetInsertItem().FindControl("Product_Email");

if (EmailList.Text != "")

{

if (EmailList.Text.Contains(";"))

 email = EmailList.Text.Split(';');

else

email[0] = EmailList.Text;

for (int i = 0; i < email.Length; i++)

{

if (email[i] != null)

{

valid = Regex.IsMatch(email[i], "\\w+([-+.']\\w+)*@ABCCompany.com");

if (!valid)

{

args.IsValid = false;

 }

else

args.IsValid = true;

 

}

}

}

}

 

 Thanks,
Swetha.

Angel Petrov
Telerik team
 answered on 04 Dec 2012
1 answer
74 views
Hi there...

I am working on a rad grid that is having three links in it -->
1.) default Edit link
2.) Default Insert link
3.) a rad button created in Item Template

In both the Insert and edit link (i.e. #2) a user control get opened, which is having the upload control in it , in a window of edit form.
And on click on link created via Item Template(i.e. #3) a rad window opens.which loads a aspx page in it.
As the rad window requires Rad Ajax manager to get it opened so On the grid page rad ajax manager is added.But that is causing the File upload control in user control to not to work. So I am not able to upload the file while Insert and edit of the details...

I have tried with the solutions provided on http://www.telerik.com/help/aspnet-ajax/upload-uploading-ajax.html
but did not succeed , probably due to wrong approach.
 can anyone suggest me the proper implementation as per the above requirements.

Any Suggestions would be appreciated ..




Plamen
Telerik team
 answered on 04 Dec 2012
1 answer
49 views
I am using the RadSchedulerRecurrenceEditor standalone and the end by date calendar does not display when selecting the date.  Any help to get the calendar to display would be appreciated.

 
i am using version 2012.2.607.35

Plamen
Telerik team
 answered on 04 Dec 2012
1 answer
84 views
Hi,
i've two question to ask:

1) Into radlistview loading the record with layout templates is possible insert the button with i can to enter into the personal page to the selection record?

2) Is possible loadind the record with layout templates with a datasource that come a stored procedure sql?

Bye
Andrey
Telerik team
 answered on 04 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?