Telerik Forums
Community Forums Forum
101 answers
1.9K+ views
Interested in what is hiding in the upcoming Telerik release? Curious what Telerik wanted to surprise you with on April 23rd?

Play the game to reveal what we have up our sleeve! Exchange your opinions on the upcoming release and unlock the secret!

Enigma Team
hacker
Top achievements
Rank 1
 answered on 19 Apr 2007
3 answers
120 views
Hello,

Does whole Telerik web site works with Firefox 2.0.0.3?
I'm asking because of when I try to open in FF it seems to be loading forever.

Regards,
Dmitriy Nagirnyak.
nagir
Top achievements
Rank 1
 answered on 18 Apr 2007
1 answer
240 views
I asked about the performance of radcontrols befor last week but I couldn't get the response.Any how I need fast suport about the performance,becouse we are working a big project on radcontrols.But the download time per page in average is 25-30 seconds.I don't know why it becomes too slow .May be we haven't understand the controls very well or  any other things.Especially in most case we are using radGrid,Radmenu,radEditor and radWindows .If there is any solution or way to minimize the download time for each page please say something about radcontrols.Especially in our country for the time being there is now good internet connection so the solution is we have to minimize the performance problem.Thanks
Mike
Top achievements
Rank 1
 answered on 15 Apr 2007
4 answers
217 views

Greetings,

I don't know where to post this, but I have following small problem with Telerik watch. I'm subscribed to Telerik watch (TW) using Outlook 2007 RSS subscription function. Since I subscribed, I get all feed entries with an 2007/01/01 Timestamp. I always have to check back TW online, cause I never now from which date a post is, especially older posts. And, I don't have this problem with other News feeds. Please can someone check back what the reason of this behavior is?
Thanks,
Joerg

Josef Rogovsky
Top achievements
Rank 2
 answered on 13 Apr 2007
0 answers
209 views
Hi,

when i m trying to edit its showing isineditmode should be true how to do tat here i pasted my code behind and aspx n help me where to change in my coding.

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 Telerik.WebControls;

using Masters;

public partial class Masters_UserMaster : System.Web.UI.Page

{

protected void Page_Load(object sender, EventArgs e)

{

//if (!IsPostBack)

//{

Masters.UserMaster um = new Masters.UserMaster();

ViewState["GridData"] = (DataTable)um.Fetch().Tables[0];

RadGrid1.DataSource = ViewState["GridData"];

um = null;

//}

//else

//{

// RadGrid1.DataSource = ViewState["GridData"];

//}

}

protected void RadGrid1_ItemUpdated(object source, GridUpdatedEventArgs e)

{

if (e.Exception != null)

{

e.KeepInEditMode = true;

e.ExceptionHandled = true;

}

}

protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)

{

Masters.UserMaster um = new Masters.UserMaster();

if (e.CommandName.ToString().Trim() == "insert")

{

TextBox txtFirstName = e.Item.FindControl("txtFirstName") as TextBox;

TextBox txtLastName = e.Item.FindControl("txtLastName") as TextBox;

TextBox txtNetworkID = e.Item.FindControl("txtNetworkID") as TextBox;

TextBox txtEmailID = e.Item.FindControl("txtEmailID") as TextBox;

DropDownList ddlSalute = e.Item.FindControl("ddlSalute") as DropDownList;

DropDownList ddlUserType = e.Item.FindControl("ddlUserType") as DropDownList;

 

if (txtFirstName != null) { um.prpFirstName = txtFirstName.Text.ToString().Trim(); }

if (txtLastName != null) { um.prpLastName = txtLastName.Text.ToString().Trim(); }

if (txtNetworkID != null) { um.prpNetworkID = txtNetworkID.Text.ToString().Trim(); }

if (txtEmailID != null) { um.prpEmailID = txtEmailID.Text.ToString().Trim(); }

if (ddlSalute != null) { um.prpSalute = ddlSalute.Text.ToString().Trim(); }

if (ddlUserType != null) { um.prpUserType = ddlUserType.Text.ToString().Trim(); }

um.prpCountryID = 1;

um.prpISPSR = true;

um.prpCreatedBy = "Upendra";

um.Save("i");

}

else if (e.CommandName.ToString().Trim() == "update")

{

try

{

TextBox txtFirstName = e.Item.FindControl("txtFirstName") as TextBox;

TextBox txtLastName = e.Item.FindControl("txtLastName") as TextBox;

TextBox txtNetworkID = e.Item.FindControl("txtNetworkID") as TextBox;

TextBox txtEmailID = e.Item.FindControl("txtEmailID") as TextBox;

DropDownList ddlSalute = e.Item.FindControl("ddlSalute") as DropDownList;

DropDownList ddlUserType = e.Item.FindControl("ddlUserType") as DropDownList;

if (txtFirstName != null) { um.prpFirstName = txtFirstName.Text.ToString().Trim(); }

if (txtLastName != null) { um.prpLastName = txtLastName.Text.ToString().Trim(); }

if (txtNetworkID != null) { um.prpNetworkID = txtNetworkID.Text.ToString().Trim(); }

if (txtEmailID != null) { um.prpEmailID = txtEmailID.Text.ToString().Trim(); }

if (ddlSalute != null) { um.prpSalute = ddlSalute.Text.ToString().Trim(); }

if (ddlUserType != null) { um.prpUserType = ddlUserType.Text.ToString().Trim(); }

//um.prpCountryID = 2;

//um.prpISPSR = false;

//um.prpModifiedBy = "Upen";

um.Save("u");

e.Canceled = true;

}

catch (Exception ex)

{

}

}

else if (e.CommandName.ToString().Trim() == "delete")

{

um.prpUserID = Int32.Parse(e.Item.Cells[5].Text);

string result = um.Delete();

}

if (e.CommandName == RadGrid.InitInsertCommandName)

{

e.Canceled = true;

//Prepare an IDictionary with the predefined values

System.Collections.Specialized.ListDictionary newValues = new System.Collections.Specialized.ListDictionary();

newValues["Salute"] = "Mr.";

//Insert the item and rebind

e.Item.OwnerTableView.InsertItem(newValues);

GridEditCommandColumn editColumn = (GridEditCommandColumn)RadGrid1.MasterTableView.GetColumn("EditCommandColumn");

editColumn.Visible = false;

}

else

{

GridEditCommandColumn editColumn = (GridEditCommandColumn)RadGrid1.MasterTableView.GetColumn("EditCommandColumn");

if (!editColumn.Visible)

editColumn.Visible = false;

}

}

protected void RadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e)

{

//Masters.UserMaster um = new Masters.UserMaster();

//ViewState["GridData"] = (DataTable)um.Fetch().Tables[0];

//RadGrid1.DataSource = ViewState["GridData"];

//um = null;

}

 

 

protected void Search_Click(object sender, EventArgs e)

{

Masters.UserMaster um = new Masters.UserMaster();

um.prpFirstName = txtCriteria.Text;

DataTable dtUser;

dtUser = (DataTable)um.Fetch().Tables[0];

if (dtUser.Rows.Count == 0)

{

Label1.Text = "Records Not Found";

}

else

{

RadGrid1.DataSource = dtUser;

RadGrid1.DataBind();

}

um = null;

}

protected void ClearSearch_Click(object sender, EventArgs e)

{

txtCriteria.Text = "";

Masters.UserMaster um = new Masters.UserMaster();

RadGrid1.DataSource = (DataTable)um.Fetch().Tables[0];

RadGrid1.DataBind();

um = null;

}

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)

{

if (e.Item is GridEditableItem && e.Item.IsInEditMode)

{

}

}

protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)

{

if (e.Item is GridEditableItem && e.Item.IsInEditMode)

{

e.Canceled = true;

}

}

protected void RadGrid1_PreRender(object sender, EventArgs e)

{

foreach (GridItem item in RadGrid1.MasterTableView.Items)

{

if (item is GridDataItem && item.Edit)

{

item.Visible = false;

}

}

}

}



aspx


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserMaster.aspx.cs" Inherits="Masters_UserMaster" %>

<%@ Register Assembly="RadGrid.Net2" Namespace="Telerik.WebControls" TagPrefix="radG" %>

<!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 runat="server">

<title>Untitled Page</title>

</head>

<body>

<form id="form1" runat="server">

<div>

<table Width="99%" id="table" >

<tr>

<asp:Label ID="Label1" runat="server" Width="99%" EnableViewState="False" Font-Bold="True" ></asp:Label></tr>

<tr bgcolor=Azure>

<td >

User Masters</td>

</tr>

<tr bgcolor="#ebedd5">

<td > FirstName </td>

<td>

<asp:DropDownList ID="ddlsearch" runat="server" >

<asp:ListItem>FirstName</asp:ListItem>

</asp:DropDownList></td>

<td> Criteria </td>

<td>

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

</td>

<td bordercolordark="green">

<asp:LinkButton ID="Search" runat="server" CommandName="Search" OnClick="Search_Click" ><img style="border:0px" alt="" src="../RadControls/Grid/Img/zoom.png" /> Search</asp:LinkButton>

</td>

<td >

<asp:LinkButton ID="ClearSearch" runat="server" CommandName="ClearSearch" BorderColor=Black OnClick="ClearSearch_Click"><img style="border:0px" alt="" src="../RadControls/Grid/Img/refresh.png" /> Clear Search</asp:LinkButton>

</td>

</tr>

</table>

<radG:RadGrid ID="RadGrid1" Skin="Outlook" runat="server" CssClass="RadGrid" GridLines="None" AllowPaging="True"

PageSize="6" AllowSorting="True" Width="99%" AllowMultiRowSelection="true" AutoGenerateColumns="False" EnableAJAX="True" ShowStatusBar="true" AlternatingItemStyle-BackColor=LightGoldenrodYellow

AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" SelectedItemStyle-BackColor=AliceBlue

HorizontalAlign="NotSet" LoadingTemplateTransparency="50" EnableAJAXLoadingTemplate="true" OnNeedDataSource="RadGrid1_NeedDataSource" OnItemUpdated="RadGrid1_ItemUpdated" OnItemCommand="RadGrid1_ItemCommand" OnItemDataBound="RadGrid1_ItemDataBound" OnItemCreated="RadGrid1_ItemCreated" OnPreRender="RadGrid1_PreRender">

<PagerStyle Mode="Slider"></PagerStyle>

<ClientSettings>

<Selecting AllowRowSelect="true" />

</ClientSettings>

<MasterTableView CommandItemDisplay="Top" CommandItemStyle-HorizontalAlign=Right GridLines="None" DataKeyNames="UserID" AllowSorting="True" AllowFilteringByColumn="False">

<CommandItemTemplate>

<asp:LinkButton ID="LinkButton1" OnClientClick="javascript:return confirm('Delete all selected Records?')"

runat="server" CommandName="DeleteSelected"><img style="border:0px" alt="" src="../RadControls/Grid/Img/Delete.gif" /> Delete Selected Records</asp:LinkButton>

<asp:LinkButton ID="LinkButton4"

runat="server" CommandName="InitInsert"><img style="border:0px" alt="" src="../RadControls/Grid/Img/application_form_add.gif"/>Add New</asp:LinkButton>

</CommandItemTemplate>

<Columns>

<radG:GridEditCommandColumn UniqueName="EditCommandColumn" ButtonType="ImageButton" EditText="Edit Record" EditImageUrl="../RadControls/Grid/Img/application_edit.png" >

<ItemStyle CssClass="btnico edit" />

</radG:GridEditCommandColumn>

<radG:GridButtonColumn ButtonType="ImageButton" ImageUrl="../RadControls/Grid/Img/Delete.gif" AutoPostBackOnFilter=true

CommandName="delete" Text="Delete Record" ConfirmText="Are You Sure To Delete This Record?" UniqueName="column" >

</radG:GridButtonColumn>

<radG:GridBoundColumn DataField="UserID" HeaderText="ID" ReadOnly="True" SortExpression="UserID"

UniqueName="UserID" Visible="false">

<HeaderStyle Width="20px" ForeColor="Silver" />

<ItemStyle ForeColor="Silver" />

</radG:GridBoundColumn>

<radG:GridBoundColumn UniqueName="Salute" HeaderText="Salute" DataField="Salute">

</radG:GridBoundColumn>

<radG:GridBoundColumn UniqueName="FirstName" HeaderText="FirstName" DataField="FirstName">

</radG:GridBoundColumn>

<radG:GridBoundColumn UniqueName="LastName" HeaderText="LastName" DataField="LastName">

</radG:GridBoundColumn>

<radG:GridBoundColumn UniqueName="EmailID" HeaderText="EmailID" DataField="EmailID">

</radG:GridBoundColumn>

<radG:GridBoundColumn UniqueName="NetworkID" HeaderText="NetworkID" DataField="NetworkID">

</radG:GridBoundColumn>

<radG:GridBoundColumn UniqueName="UserType" HeaderText="UserType" DataField="UserType">

</radG:GridBoundColumn>

<radG:GridBoundColumn UniqueName="IsPSR" HeaderText="Is PSR" DataField="IsPSR" >

</radG:GridBoundColumn>

</Columns>

<EditFormSettings EditFormType="Template">

<EditColumn UniqueName="EditCommandColumn1">

</EditColumn>

<FormTemplate>

<table id="Table2" cellspacing="2" cellpadding="1" width="250" border="1" rules="none"

style="border-collapse: collapse">

<tr class="EditFormHeader">

<td colspan="2">

<b>User Details</b></td>

</tr>

<tr>

<td>

<table id="Table3" cellspacing="1" cellpadding="1" width="250" border="0" class="module">

<tr>

<td>

</td>

<td>

</td>

</tr>

 

<tr>

<td>Salute:</td>

<td>

<asp:DropDownList ID="ddlSalute" runat="server" SelectedValue='<%# Bind("Salute") %>'

DataSource='<%# (new string[] { "Dr.", "Mr.", "Mrs.", "Ms." }) %>' TabIndex="7">

</asp:DropDownList></td>

<td>First Name:</td>

<td>

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

</asp:TextBox></td>

<td>Last Name:</td>

<td>

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

</asp:TextBox></td>

</tr>

<tr>

<td>NetWorkID:</td>

<td colspan="3">

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

</asp:TextBox></td>

<td>EmailID:</td>

<td>

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

</asp:TextBox></td>

</tr>

<tr>

<td colspan=3>Is PSR:</td>

<td>

<!--<asp:RadioButton ID=rd1 GroupName=RadiooG runat=server Text=Yes />

<asp:RadioButton ID=rd2 GroupName=RadiooG runat=server Text=No />-->

<!--<asp:RadioButtonList ID=IsPsr DataTextField=IsPSR DataValueField='<%# Bind( "IsPSR" ) %>' runat=server TextAlign=Right RepeatColumns=2>

</asp:RadioButtonList>-->

<asp:RadioButtonList ID=IsPsr2 runat=server TextAlign=Right RepeatColumns=2 RepeatDirection =Horizontal>

</asp:RadioButtonList>

</td>

<td>UserType:</td>

<td>

<asp:DropDownList ID="ddlUserType" runat="server" DataValueField=UserType DataTextField= '<%# Bind( "UserType" ) %>' >

<asp:ListItem>Regional Admin</asp:ListItem>

<asp:ListItem>Country</asp:ListItem>

<asp:ListItem>Normal</asp:ListItem>

</asp:DropDownList>

</td>

</tr>

</table>

<tr>

<td align="right" colspan="2">

<asp:ImageButton ID=img1 CommandName='<%# (Container as GridItem).OwnerTableView.IsItemInserted ? "insert" : "update" %>' runat=server ImageUrl="~/RadControls/Grid/Img/tick.gif" />

<asp:LinkButton ID="LinkButton2" runat="server" Text="Save"

CommandName='<%# (Container as GridItem).OwnerTableView.IsItemInserted ? "insert" : "update" %>'></asp:LinkButton>

<asp:ImageButton ID=img2 CommandName="Cancel" runat=server ImageUrl="../RadControls/Grid/Img/Cancel.gif" />

<asp:LinkButton ID="LinkButton3" runat="server" Text="Cancel" CommandName="Cancel" > </asp:LinkButton></td>

</tr>

</table>

 

</FormTemplate>

</EditFormSettings>

<ExpandCollapseColumn Visible="False">

<HeaderStyle Width="19px" />

</ExpandCollapseColumn>

<RowIndicatorColumn Visible="False">

<HeaderStyle Width="20px" />

</RowIndicatorColumn>

</MasterTableView>

</radG:RadGrid>

</div>

</form>

</body>

</html>

Venki
Top achievements
Rank 1
 asked on 12 Apr 2007
3 answers
383 views
Hi,

I am using radgrid control when i am try to edit its showing Only items with IsInEditMode set to true can be updated ,but i am not getting this property anywhere in the grid plz help me
Venki
Top achievements
Rank 1
 answered on 12 Apr 2007
1 answer
198 views
Hi! I made a Windows application with telerik win forms and I made its setup project also. But when I run this setup with another computer which has not telerik components, I get this error message "Project has encountered a problem and needs to close.We are sorry for the inconvenience." I try adding telerik dlls into the setup project but it did nothing. How can I solve this?
Vassil Petev
Telerik team
 answered on 10 Apr 2007
0 answers
149 views
Hi! I made a Windows application with telerik win forms and I made its setup project also. But when I run this setup with another computer which has not telerik components, I get this error message "Project has encountered a problem and needs to close.We are sorry for the inconvenience." I try adding telerik dlls into the setup project but it did nothing. How can I solve this?
luyce
Top achievements
Rank 1
 asked on 10 Apr 2007
0 answers
201 views
Required Skills:
.NET, SQL, VB, telerik controls.
Industry:
Financial Services
Opportunity:
Full Partnership in a real business, with a proven business model, and a short term REAL $$$ payout,  requiring only part time participation. 
Details:
The existing web application was developed in 1999-2001 using ASP, SQL.  It is no longer up to the task and greatly hinders the business models potential.  The web application is currently running and generated, for a single client, $3Million in sales revenue 1st quarter of 2007 alone. (this is not a scam)

I am looking for a partner, developer to join me in this endeavor.

Must live in the Atlanta, GA area.

Make contact with me at brouknap@bellsouth.net 
rnrnm
Top achievements
Rank 1
 asked on 10 Apr 2007
2 answers
142 views
I have some instances of 

<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtNew" ErrorMessage="Folder path can only contain alphanumeric characters." ValidationExpression='<%# NewFolderRegEx %>' ValidationGroup="New" />

spread throughout my project.  I set up a constant named "NewFolderRegEx" in a class that is imported by all of these pages, so that I can simply change the regular expression once, and have it apply across the board.  However, actually accessing that constant from within the control, as shown above, is messing with me.  What's the proper syntax for bringing in a variable like that?

Maus
Top achievements
Rank 1
 answered on 06 Apr 2007
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?