I would like to increase the size of the checkbox to make it easier for users to check. Is there a simple way to do that with the new radCheckbox control?
Thanks,
Todd.
01.
private
void
BuildUserGroup() {
02.
03.
group =
new
TileGroup();
04.
//group.Name = "Personal";
05.
group.Title =
"Personal"
;
06.
07.
BuildDashboard();
08.
group.Tiles.Add(kpiTile);
09.
BuildMyCompetencies();
10.
group.Tiles.Add(kpiTile);
11.
BuildTranscript();
12.
group.Tiles.Add(tile);
13.
BuildCatalog();
14.
group.Tiles.Add(tile);
15.
BuildIDP();
16.
group.Tiles.Add(tile);
17.
18.
rtlTJA.Groups.Add(group);
19.
}
Above is a snippet of code I use in the code behind to create groups and tiles dynamically. It works great without referencing the Title property (image #1). When I un-comment it above, the tiles disappear (image #2).
I am using version 2016.1.113.35.
protected
void
grvGrid_ItemDataBound(
object
sender, Telerik.Web.UI.GridItemEventArgs e)
{
try
{
if
(e.Item
is
GridDataItem)
{
GridDataItem item = (GridDataItem)e.Item;
string
rowIndex = Convert.ToString(((DataTable)grvGrid.DataSource).Rows[e.Item.ItemIndex][
"IDKey"
]);
item.Attributes.Add(
"onclick"
,
"itemSelected('"
+ rowIndex +
"')"
);
foreach
(TableCell cell
in
e.Item.Cells)
{
cell.ToolTip = cell.Text.Replace(
" "
,
""
).Trim();
}
if
(e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex][
"StatusCD"
].ToString().Trim().Equals(
"Deleted"
))
{
e.Item.BackColor = System.Drawing.Color.LightPink;
}
if
(e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex][
"StatusCD"
].ToString().Trim().Equals(
"Discontinued"
))
{
e.Item.BackColor = System.Drawing.Color.LightGoldenrodYellow;
}
}
}
catch
(Exception ex)
{
Session[
"ErrorMessage"
] = ex.Message;
Response.Redirect(
"ErrorPage.aspx"
);
}
}
I use usercontrol editform in my grid. But, when "Update" button click, all RadCheckBox item in edit form can't get a value
In my OnUpdateCommand of my grid
1.
GridEditableItem editedItem = e.Item
as
GridEditableItem;
2.
UserControl myControl = (UserControl) e.Item.FindControl(GridEditFormItem.EditFormUserControlID);
3.
RadCheckBox chkFwd = myControl.FindControl(
"rad_chkFwd"
)
as
RadCheckBox;
4.
RadCheckBox chkFwdToBoss = myControl.FindControl(
"rad_chkFwdToBoss"
)
as
RadCheckBox;
5.
RadCheckBox chkFwdToEmp = myControl.FindControl(
"rad_chkFwdToEmp"
)
as
RadCheckBox;
6.
bool
isForward = chkFwd.Checked.Value;
//Error:will return exception nullable value on runtime
7.
bool
isToBoss = chkFwdToBoss.Checked.Value;
//Error:will return exception nullable value on runtime
8.
bool
isToEmp = chkFwdToEmp.Checked.Value;
//Error: will return exception nullable value on runtime
01.
<td>
02.
<telerik:RadCheckBox runat=
"server"
ID=
"rad_chkFwd"
OnClientCheckedChanged=
"FwdChanged"
OnClientLoad=
"FwdChanged"
AutoPostBack=
"False"
Text=
"Forward"
/>
03.
</td>
04.
<td>
05.
<telerik:RadCheckBox runat=
"server"
ID=
"rad_chkFwdToBoss"
OnClientCheckedChanged=
"ShowBoss"
OnClientLoad=
"ShowBoss"
AutoPostBack=
"False"
Text=
"Forward Up Level"
/>
06.
</td>
07.
<td>
08.
<telerik:RadCheckBox runat=
"server"
ID=
"rad_chkFwdToEmp"
OnClientCheckedChanged=
"ToEmployee"
OnClientLoad=
"ToEmployee"
AutoPostBack=
"False"
Text=
"Forward Down Level"
/>
09.
</td>
Hello, I can't figure out how to set (expand) the GridButtonColumn text for my subgrid. It seems locked into the width of the default edit pencil icon for subgrids, but I've entered the text "Click to Begin" in this column instead.
I've tried HeaderStyle-Width with no affect, and ItemStyle-Width, which threw an error as an un-unknown attribute. Any help would be much appreciated!
Here's the template snippet:
<telerik:GridButtonColumn HeaderStyle-Width="250px" UniqueName="btnEdit" ButtonType="LinkButton" Text="<strong>Click to Begin</strong>" CommandName="Edit" />
I've attached a screenshot of my subgrid below.
I have used radbutton with singleclick= true after clicking the button i have set the single click enabled using javascript , then the button is enabled but the UI of button shows as disabled when autopostback=false . This is not working in telerik verision Q1 2016.
<telerik:RadButton ID="singleclickbtn" runat="server" Text="SingleClick" ClientIDMode="Static" SingleClick="true" AutoPostBack="false" OnClientClicked="Click_OnClientClicked"></telerik:RadButton>
function Click_OnClientClicked(sender, eventArgs) {
$find("singleclickbtn").enableAfterSingleClick();
}
Hello,
there is an issue with the mentioned control which case the application to be terminated
To get the error please do the below:
1- Set Culture Property to any Arabic (Ex: ar-EG)
2- Set Mask to "c"
3- Set MaskType to Numeric
4- Run your windows application.
5- Select all the content of the RadMaskedEditBox
6- Start Type any number
You will get an error message and the application will be closed, this issue exists in the Demos which comes with the installation package
I went to update one of our Web Apps on our testing server and all of a sudden I started getting the "Uncaught ReferenceError: Telerik is not defined" Error. The server is running MWS 2003 R2. IIS is 6. .net runtime version is 4.0. Telerik version is 2016.2.504.40
I know this has something to do with the Telerik.Web.UI.WebResource.axd file but for the life of me I can't put my finger on it. Here is my web.config file:
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<appSettings>
</appSettings>
<connectionStrings>
</connectionStrings>
<system.web>
<httpRuntime requestValidationMode="2.0" maxRequestLength="4096" executionTimeout="60" />
<compilation debug="false" strict="false" explicit="true" targetFramework="4.0">
<assemblies>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.DirectoryServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.DirectoryServices.Protocols, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.ServiceProcess, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Web.RegularExpressions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Drawing.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="Accessibility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Data.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
<add assembly="System.Data.Services.Client, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
</assemblies>
<buildProviders>
<add extension=".asbx" type="Microsoft.Web.Services.BridgeBuildProvider" />
</buildProviders>
</compilation>
<httpHandlers>
<add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions" validate="false" />
<add path="MetaBuilders_DialogWindow.axd" verb="*" type="MetaBuilders.WebControls.DialogHandlerFactory,MetaBuilders.WebControls" validate="false" />
<add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />
<add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
<add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
<add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />
<add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
</httpHandlers>
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" smartNavigation="false">
<namespaces>
<clear />
<add namespace="System" />
<add namespace="System.Collections" />
<add namespace="System.Collections.Specialized" />
<add namespace="System.Configuration" />
<add namespace="System.Text" />
<add namespace="System.Text.RegularExpressions" />
<add namespace="System.Web" />
<add namespace="System.Web.Caching" />
<add namespace="System.Web.SessionState" />
<add namespace="System.Web.Security" />
<add namespace="System.Web.Profile" />
<add namespace="System.Web.UI" />
<add namespace="System.Web.UI.WebControls" />
<add namespace="System.Web.UI.WebControls.WebParts" />
<add namespace="System.Web.UI.HtmlControls" />
<add namespace="System.Collections.Generic" />
<add namespace="System.Linq" />
<add namespace="System.Xml.Linq" />
</namespaces>
<controls>
<!--<add tagPrefix="ajax" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>-->
<add tagPrefix="ajax" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add tagPrefix="psp" namespace="Mbccs.WebControls" assembly="Mbccs.WebControls.PersistentScrollPosition, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c6c4e91899893a55" />
<add tagPrefix="ew" assembly="eWorld.UI, Assembly=2.0.0.2201" namespace="eWorld.UI" />
<add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
<add tagPrefix="actk" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit, Version=4.1.7.1213" />
<add tagPrefix="ajaxToolkit" assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" />
</controls>
</pages>
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="UseUri" timeout="60" />
<authentication mode="Windows" />
<customErrors mode="Off" defaultRedirect="error.html" />
<httpModules />
<!--<customErrors mode="Off" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>-->
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<handlers>
<remove name="WebServiceHandlerFactory-ISAPI-2.0" />
<remove name="ChartImage_axd" />
<remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
<remove name="Telerik_Web_UI_DialogHandler_aspx" />
<remove name="Telerik_RadUploadProgressHandler_ashx" />
<remove name="Telerik_Web_UI_WebResource_axd" />
<add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode" />
<add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode" />
<add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode" />
<add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode" />
<add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode" />
</handlers>
<modules runAllManagedModulesForAllRequests="true" />
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.VisualStudio.Enterprise.AspNetHelper" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<codeBase version="12.0.0.0" href="file:///C:/Program%20Files%20(x86)/Microsoft%20Visual%20Studio%2012.0/Common7/IDE/PrivateAssemblies/Microsoft.VisualStudio.Enterprise.AspNetHelper.DLL" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="AjaxMin" publicKeyToken="21ef50ce11b5d80f" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.8.5172.27703" newVersion="5.8.5172.27703" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
Please help!