Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
214 views
Hi:

I have a RaDGrid that has a DIV tag that is above the grid, but the outline border included the DIV tag.  Code is as follows:
<%@ Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<script runat="server">
    '
    Protected Sub personGrid_NeedDataSource(sender As Object, e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles personGrid.NeedDataSource
        Dim _people As List(Of String) = New List(Of String) From { _
            "George Washington", "John Adams", "Thomas Jefferson"}
        personGrid.DataSource = _people
    End Sub
    '
</script>
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
            <Scripts>
                <asp:ScriptReference Path="Scripts/jquery-1.8.2.min.js" />
            </Scripts>
        </telerik:RadScriptManager>
        <br />
        <div style="width: 100%">
            <div style="width: 130px; float: left;">People:</div>
            <div style="width: 475px; float: left;">...</div>
        </div>
        <div style="width: 100%">
            <Telerik:RadGrid
                ID="personGrid" runat="server" GridLines="None" CellSpacing="0">
                <MasterTableView AutoGenerateColumns="true">
                </MasterTableView>
            </Telerik:RadGrid>
        </div>
        <br />
    </form>
</body>
</html>

So the following DIV tags:
<div style="width: 100%">
    <div style="width: 130px; float: left;">People:</div>
    <div style="width: 475px; float: left;">...</div>
</div>
Appear as if they are a part of the grid, but I do not want this appearance.  Attached is a screenshot...
Phil
Princy
Top achievements
Rank 2
 answered on 16 May 2013
1 answer
96 views
I am trying to find a way to highlight a row in a radgrid when it is deselected. I can get it to highlight when selected (via a checkbox), but I want to highlight it when that checkbox is unchecked (other than the default deselected row colors), this is so the users will know what they rows they have unchecked, before submitting form.

any ideas on how to do this?


Princy
Top achievements
Rank 2
 answered on 16 May 2013
3 answers
142 views
Hi
    How shall I change the filtercolumn header backcolor after filter.

thanks
RT
Princy
Top achievements
Rank 2
 answered on 16 May 2013
0 answers
59 views
Hello I am trying to refresh my grid my rad window opens a page which contains asynupload to upload a file and after closing the window i am refreshing the grid but it does not fire and i have used debugger i cam to know the onclientclose executes even before the radwindow is open.

the code is

 

function onClientClose() { 
 alert(  
"hi"); 
  
$find(
  
"<%= RadAjaxManager1.ClientID %>").ajaxRequest(); 
 }

 

 

protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)

 

{

 

FileGrid.Rebind();

}

i have kept break point here the control does not come at all.
and the radwindow which contains webpage js is

 

 

function CloseAndRebind() {

 

GetRadWindow().Close();

}

SKande
Top achievements
Rank 2
 asked on 15 May 2013
3 answers
230 views
If I am iterating through the GridGroupHeader Items...
foreach (GridGroupHeaderItem ghi in ogrid_BilateralCollateralSecurities.MasterTableView.GetItems(GridItemType.GroupHeader))
How can I findthe GridGroupFooterItem associated to the GridGroupHeaderItem?
Justavian
Top achievements
Rank 1
 answered on 15 May 2013
0 answers
128 views
delete this post please
Uttam Dhakal
Top achievements
Rank 1
 asked on 15 May 2013
1 answer
84 views
Hello,

I am running into two problems, which I think might be connected. I have a data table with about 25 values. Currently, the Chart is only showing 8 of them. Previously, when I defined the Series in the .aspx page, setting AutoLayout=true would fix this problem. But now that I am setting AutoLayout in the code-behind, I cannot get it to show all my values.

Secondly, I have the "PlotArea.XAxis.DataLabelsColumn" value defined to one of my columns, but it never shows the values (which are date/times). I only see the numbers 0-7 for my Data Labels.

Any suggestions appreciated. I have made many variations to the code below, without finding a solution, including setting both the DataLabelsColumn and AutoLayout in both the aspx and c# code.

Thanks

<asp:Button ID="Button1" runat="server" style="text-align: center" onclick="Button1_Click" Text="Generate Chart" />
 
<telerik:RadChart ID="RadChart1" runat="server" Visible="True" AutoLayout="true">
    <PlotArea>
        <XAxis DataLabelsColumn="TimeSampled">
        </XAxis>
    </PlotArea>
    <ChartTitle Visible="false" />
</telerik:RadChart>


protected void Button1_Click(object sender, EventArgs e)
{
    RadChart1.AutoLayout= true;
    RadChart1.Height=450;
    RadChart1.Width=950;
    RadChart1.SeriesOrientation = ChartSeriesOrientation.Vertical;
    RadChart1.DefaultType = ChartSeriesType.Line;
    RadChart1.ClientSettings.ScrollMode = ChartClientScrollMode.Both;
    RadChart1.ClientSettings.EnableZoom = true;
 
    ChartSeries testSeries = new ChartSeries("Pages/sec", ChartSeriesType.Line);
    RadChart1.AddChartSeries(testSeries);
    RadChart1.Series[0].DataYColumn = "SampleValue";
    RadChart1.Series[0].Type = ChartSeriesType.Line;
    RadChart1.Series[0].Appearance.LabelAppearance.RotationAngle = 90;
     
    RadChart1.PlotArea.YAxis.AxisMode = ChartYAxisMode.Extended;
    RadChart1.PlotArea.XAxis.AutoScale = false;
    RadChart1.PlotArea.XAxis.DataLabelsColumn = "TimeSampled";
 
    RadChart1.DataSourceID = "ChartData";
    RadChart1.DataBind();
}
Darryl
Top achievements
Rank 1
 answered on 15 May 2013
2 answers
239 views
I am attempting to add a click event to my SeriesItems Labels. The handle seems to get bound to the label but it isn't hit when the label is clicked in the browser. Also the mouse doesn't change from default to pointer which seems to be typical behavior for Telerik controls with a click event attached. 

protected void RC_OnItemDataBound(object sender, ChartItemDataBoundEventArgs e)
        {
            e.SeriesItem.Label.ActiveRegion.Click += new RegionClickEventHandler(RCLbl_OnClick);
       }


Where am I going wrong here?
Alex
Top achievements
Rank 1
 answered on 15 May 2013
0 answers
107 views
Am I missing something here?  Seems I cannot see the value for a password field either. I am already having problems with checkboxes.

I am doing manual updating with 

Hashtable newValues = new Hashtable();
editedItem.ExtractValues(newValues);

and using 

<telerik:RadTextBox ID="PasswordInput1" runat="server" ValidationGroup="AccContactEdit"
                                        TextMode="Password" onkeyup="checkPasswordMatch()" Width="100" CssClass="PasswordInput1" EnableViewState="true">
                                        <PasswordStrengthSettings ShowIndicator="true" TextStrengthDescriptions="Weak;Fair;Good;Better;Best"
                                            IndicatorElementBaseStyle="PasswordBase" TextStrengthDescriptionStyles="L0;L1;L2;L3;L4;L5"
                                            IndicatorElementID="CustomIndicator" IndicatorWidth="0px" PreferredPasswordLength="8">
                                        </PasswordStrengthSettings>
 
                                    </telerik:RadTextBox>


Any help?  I have hours into this page and will have to start over with a grid or a some alternative if I can't get all of the values from the edit/insert  templates.

Thanks,

Marty

UPDATE:  I was able to just do the following and not use the hashtable.

RadTextBox PasswordInput1 = e.ListViewItem.FindControl("PasswordInput1") as RadTextBox;

moegal
Top achievements
Rank 1
 asked on 15 May 2013
11 answers
192 views
Hi all.

Is there any possibility to suppress built-in filtering in RadGrid?

I need to handle with filtering on my own so I'd like to use FilteringItem in MasterTableView which is generated automatically and do some filtering action in OnItemCommand event. For this I need to prevent from application of built-in filtering functionality.

Datasource - DataTable.
NeedDataSource not used.
For all actions (sorting/filtering) I want to have my own handlers. (I have my own sorting.)

Target scenario - I will create dynamic SQL command with filtering condition and I will bind its result to Grid. No stored procedures, no LINQ, no Entity. I have dynamic commands and I need them.

Thanks a lot for any advance.
Daryl
Top achievements
Rank 1
 answered on 15 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?