Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
782 views
Please somebody help me about using simple checkbox in edit forms. I always get famous DBnull error. I need simple sample using sql server and data type integer. I spent more than one week and still no result. when I correct update events, then addnew throws error. when I correct addnew part, orher parts fail. I tried everything on sql site. int column type, bit column type, nullable, everything. I tried to change combobox to get rid of checkbox, another selected value, dbnull, etc etc errors rise. I won't give any error message, it is  famous problem.

Just need one column of RadGrid to add, and update record to sql table which has only one column with type of integer. I need it to use form templates.

Why this is so difficult.
best regards.
Jon
Top achievements
Rank 1
 answered on 01 Oct 2014
1 answer
115 views
I am creating multiple radgrids from a single dataset, programatically. Each table in the dataset is displayed as a separate radgrid. I am trying to specify the width/font of the columns (same values for all the grids). How do I set preRender handler for each grid programatically?
Viktor Tachev
Telerik team
 answered on 01 Oct 2014
1 answer
405 views
Hi ,


I would like to disable a particular row based on a particular label name for instance "TEST", so if the Row has label name = "TEST", I would like to disable that entire row. There are two problems that I am facing.

1. I have a GridClientSelectColumn, and I'm inclined to thinking this the cause of the issue.
2. The row is being disabled only after a postback has occured.  But on initial load it is not being disabled.

For Each item As GridDataItem In grdVisibleColumns.MasterTableView.Items
            If item.Cells(3).Text = "TEST" Then
                item.Enabled = False
                Dim chkbx As CheckBox = DirectCast(item("grdVisibleChkBox").Controls(0), CheckBox)
                chkbx.Enabled = False
            End If
        Next

I put this code in the page pre-render event BTW, I tried placing the code in a number of places (Grid events), but it did not help, when the page initially loads the Row TEST is enabled.

Please advise.

Thanks.
Chandra
Konstantin Dikov
Telerik team
 answered on 01 Oct 2014
1 answer
121 views
Hi,
I found many posts on how to remove the borders from a RadWindow (for example http://www.telerik.com/help/aspnet-ajax/window-appearance-removing-borders.html) but nothing for a RadConfirm.
Exists a way to eliminate the borders of a RadConfirm?

Thanks to all
Danail Vasilev
Telerik team
 answered on 01 Oct 2014
5 answers
566 views
I have several chart questions.
1) I want to change the label for each series item to "Name" or "TooltipValue".  Is this possible? 
2) What is the purpose of the TooltipValue?  The tooltip always displays XValue,YValue and never displays the value et for TooltipValue.
3) I need to display the Name values for each SeriesItem in alpha order as the Legend. Is this possible? 
<telerik:RadHtmlChart ID="RadHtmlChart1" runat="server">
    <PlotArea>
        <Series>
            <telerik:ScatterSeries Name="XXX Data">
                <TooltipsAppearance Visible="true" />
         
                <Items>               
                    <telerik:SeriesItem XValue="1674" YValue="4.3" TooltipValue="ABC" Name="ABC" />                   
                    <telerik:SeriesItem XValue="6468" YValue="3.4" TooltipValue="DEF" Name="DEF"/>
                    <telerik:SeriesItem XValue="3600" YValue="3.4"  />
                    <telerik:SeriesItem XValue="5252" YValue="2.9"  />
                    <telerik:SeriesItem XValue="2612" YValue="1.6"  />
                    <telerik:SeriesItem XValue="1054" YValue="1.3"  />
                </Items>
            </telerik:ScatterSeries>
        </Series>
        <XAxis MajorTickType="Outside" MinorTickType="Outside"  Reversed="false" Step="1000" AxisCrossingValue="0" MinValue="0" MaxValue="7000">
            <TitleAppearance Position="Center" RotationAngle="0" Text="Error Count" />
            <LabelsAppearance DataFormatString="{0}" RotationAngle="0" />
            <MajorGridLines Color="#EFEFEF" Width="1" />
            <MinorGridLines Color="#F7F7F7" Width="1" />
 
        </XAxis>
        <YAxis Color="Black" MajorTickSize="1" MajorTickType="Outside" Reversed="false"
            MinorTickType="None" MaxValue="8.0" MinValue="0.0" Step="0.5" AxisCrossingValue="0.0">
            <TitleAppearance Position="Center" RotationAngle="0" Text="Error Percent" />
            <LabelsAppearance DataFormatString="{0}" RotationAngle="0" />
            <MajorGridLines Color="#EFEFEF" Width="1" />
            <MinorGridLines Color="#F7F7F7" Width="1" />
        </YAxis>
    </PlotArea>
    <ChartTitle Text="XXX Data">
        <Appearance Align="Center" BackgroundColor="White" Position="Top" />
    </ChartTitle>
    <Legend>
        <Appearance Visible="true" />
    </Legend>
 
</telerik:RadHtmlChart>
Danail Vasilev
Telerik team
 answered on 01 Oct 2014
3 answers
1.4K+ views
I am trying to change the background color of a RadButton using CSS but it is not working...

Button Code:
<telerik:RadButton SingleClick="true" SingleClickText="Submitting..." ButtonType="LinkButton" CssClass="btnY" runat="server" ID="btn" Width="60" Text="Submit" OnClick="btn_Click" />

CSS:
.btnY{font-weight:bold;font-size:9pt;background-color:#abbc37;border:1px solid #788604;color:#fff;text-align:center;padding-right:5px;padding-left:5px;padding-top:0px;padding-bottom:0px;line-height:18px;}

What am I missing?
DogBizPro
Top achievements
Rank 1
 answered on 01 Oct 2014
11 answers
165 views
Hi,

I created a login page with ASP.NET AJAX for a web application and it works flawless in IE, Chrome, Safari and FireFox. However, when I activated FormsAuthentication and performed some tests I noticed that the RadButton control in de Login Page is not responding in FireFox. I do see the button border changing when I hover over the mouse, but there is no response when I click the button. The DefaultButton-option is also not working. 

Visual Studio code:
<div>
  <telerik:RadButton id="button_submit" runat="server" BackColor="#0072c6" Text="Sign In" SingleClick="true" SingleClickText="Sign In" Skin="Metro" ButtonType="LinkButton" Style="padding:4px 10px 5px 10px; margin: 5px 0; color: #fff " OnClick="ButtonSubmitClick" ></telerik:RadButton>
</div>

Browser inspection:
<div>
  <span id="button_submit" class="RadButton RadButton_Metro rbLinkButton" style="background-color:#0072C6;padding:4px 10px 5px 10px; margin: 5px 0; color: #fff "><span class="rbText">Sign In</span><input id="button_submit_ClientState" name="button_submit_ClientState" type="hidden"></span>
</div>

Any idea, how to solve this?


 


Danail Vasilev
Telerik team
 answered on 01 Oct 2014
3 answers
196 views
Hello,
I'm developing a online application with 'radOrgChart'. I have loaded the data to this radOrgChart from linqDataSource. On clicking any of the node, i need to re-display the radOrgChart as the clicked node as parent as in drill-down method. I have tested this drill-down method. But, i'm looking for different method. Instead of drill-down, i need a to click any node or a buttton inside the radOrgChart node to view. Then, while loading the page it shows all the nodes, instead of that, i need to display the parent and its child's only. Others needed to be collapsed. I check all the examples provided by telerik. It collapse using code-behind or in html setting attribute called colapsed="true" in radOrgChart. Here, i will submit my code and the screen shots. OrgChart-1 is the page when it loads before. And, OrgChart-2 is the page what i needs to be shown on page load.

<head runat="server">
    <title></title>
    <style type="text/css">
        .orgChartDiv {
            background-color: #e4e4e4;
            height: 100%;
            width: 100%;
            overflow-y: auto;
            float: left;
            position: relative;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
 
        <div class="orgChartDiv">
            <telerik:RadOrgChart ID="employeeOrgChart" runat="server" Skin="Default" EnableCollapsing="true" Width="100%"
                DataSourceID="LinqDataSource_Employee" DataTextField="FirstName" DataFieldID="EmployeeID" DataFieldParentID="ReportsTo"
                EnableGroupCollapsing="true" >
            </telerik:RadOrgChart>
        </div>
    </div>
    </form>
    <asp:LinqDataSource runat="server" ID="LinqDataSource_Employee"
        ContextTypeName="RadOrgChart.RealDataDataContext" TableName="Employees" />
</body>


With Regards,
Mohammed Rafsanjany
Plamen
Telerik team
 answered on 01 Oct 2014
8 answers
767 views
Hi,

I'm writing to ask how best to align a button to the right and one to the left in the same radtoolbar.

<telerik:RadToolBar ID="RadToolBarAction" runat="server" Skin="Office2007" Width="100%"
           OnButtonClick="RadToolBarAction_ButtonClick">
           <Items>
               <telerik:RadToolBarButton Value="BtnSave" meta:resourcekey="BtnSave"
                   ImageUrl="~/Save.gif" />   <--Want this one to the left     
               <telerik:RadToolBarButton Value="BtnReturnAip" meta:resourcekey="BtnReturnAip"
                   ImageUrl="~/backto_inprog.gif" />    <--Want this one to the right
           </Items>
       </telerik:RadToolBar>

Thanks in advance for any insight Jim
Randall
Top achievements
Rank 2
 answered on 01 Oct 2014
1 answer
624 views
Hi,

I'm trying to figure out why my site (which works perfectly in Dev - Famous last words) won't upload files on my server.  My guess is permissions, but I don't see any error messages anywhere.

I've deleted the RadUploadTemp folder in the App_Data folder and when I run the upload, this folder is created along with the RadUploadTestFile file inside it.  I just don't get any temp files being created in here.

Where should I see errors??  I've got my asp.net site running in debug mode with custom errors turned off.  I've checked the JS console and the Windows Event Viewer, but there is nothing.

Is there anything drastic or otherwise, that I can do to show an error?

Thanks
Hristo Valyavicharski
Telerik team
 answered on 01 Oct 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?