Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
198 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
118 views
delete this post please
Uttam Dhakal
Top achievements
Rank 1
 asked on 15 May 2013
1 answer
75 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
212 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
96 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
161 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
1 answer
55 views
Hi,
i am experiencing the below error while using the RadAsyncUpload control, my environment is windows 2008, IIS7
in my web.config file
<httpRuntime executionTimeout="3600" maxRequestLength="504800" >
for iis7
<system.webServer>
<security >
<requestFiltering>
<requestLimits maxAllowedContentLength="1024000000" />
</requestFiltering>
</security>
</system.webServer>
but if i try to upload the files with 50MB or more i am getting the below javascript error, and my file is marked with red color

Error

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)

Timestamp: Fri, 10 May 2013 13:06:43 UTC

Message: Exception thrown and not caught

Line: 248

Char: 8

Code: 0

URI: http://servername/abc/ScriptResource.axd?d=yfWEbJ7bo0GU6EScXNiH-FEG9o6YNZDA6BjeBM9NY0vKh5Mvw3x6SsKkciYcJCR5LRpKHsKisXKtheYpXB-x_Ane6tBJ5bjktNvajConjX4Yk3ozYwTTeE_G6PG5oDlL-eqIahsmLO7nyHnMPgwb9slf_kw1&t=7996caae

server error log

 

 System.NullReferenceException: Object reference not set to an instance of an object.
at Telerik.Web.UI.AsyncUploadHandler.ProcessRequest(HttpContext context)
at Telerik.Web.UI.HandlerRouter.ProcessHandler(String handlerKey, HttpContext context)
at Telerik.Web.UI.HandlerRouter.ProcessHandler(HttpContext context)
at Telerik.Web.UI.WebResource.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 

 

can you please let me know why i am experiencing the above issue.
thanks,
Burepalli V S Rao.

 

Hristo Valyavicharski
Telerik team
 answered on 15 May 2013
1 answer
106 views
I use default Advanced/Insert Template.   I would like to do validation for overlap appointments before the postback on the client side.So i try to re-use the code for the LinkButton RadConfirm example.
On the FormCreated event I added OnClientClick event for InsertButton
if (e.Container.Mode == SchedulerFormMode.AdvancedInsert) {
    LinkButton formButton = e.Container.FindControl("InsertButton") as LinkButton;
    if (formButton != null)
    {
        formButton.OnClientClick = "confirmLinkButton(this);  return false;";
    }
}
and in my Javascript I added
function confirmLinkButton(button) {
    try {
        alert("confirmLinkButton");
    function linkButtonCallbackFn(arg) {
        if (arg) {
           eval(button.href);
        }
   }
//   RadConfirm(insertOverlapMessage, linkButtonCallbackFn, 330, 180, null, "Confirm");
   var confirmReturn = confirm(insertOverlapMessage);
   if (confirmReturn) { eval(button.href); }
 
     
} catch (e) {
    alert(" confirmLinkButton: Error Description: " + e.Description + " Error message:" + e.message);
}
}


BUT  my javascript function never been call and it is really inconvenient to use RadConfirm on the server side after postback :  all data from the insert form have been disappeared.

Please, advice how I can make the code to work.  Thank you for your help!
Plamen
Telerik team
 answered on 15 May 2013
6 answers
154 views
Hello,

I am adding the paragraph styles to the RadEditor with the following code

RadEditor1.Paragraphs.Add("<H1 class='header1'>My (H1)<H1>", "<H1 class='header1'>")

These styles appear in the select list in RadEditor. When I apply some paragraph style, it add the correct "tag" but not adding the "class" attribute.

Such as:

<h1> Text goes here.. </h1>

While I am expecting:
<h1 class='header1'> Text goes here.. </h1>



I have followed the following url's
http://www.telerik.com/help/aspnet-ajax/editor-paragraph-styles.html
http://demos.telerik.com/aspnet-ajax/editor/examples/formatblock/defaultcs.aspx

Can anyone help me??
shadow
Top achievements
Rank 2
 answered on 15 May 2013
1 answer
79 views
Hi,

I am trying to access the calendar of radscheduler in JS but not getting. Please help.

Sameer
Shinu
Top achievements
Rank 2
 answered on 15 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?