Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
369 views
I implemented this successfully, i have only issue with error handling if no checkbox will be checked. Any suggestions how the easiest I can solve this issue?
A2H
Top achievements
Rank 1
 answered on 24 Jul 2013
4 answers
580 views
I updated my calendar control to the Prometheus version and it broke some of the funtionality i was previously using. I will describe what I am trying to do and hopefully someone can let me know how I can implement this with the Prometheus controls or if this is in fact a bug.

Previously, I was using a RadDateTimePicker control with a Checkbox control labeled "Enter time". I was setting the visibility of the TimeView part, and the format of the dateview part, using the status of the checkbox ... like this:

bool enterTime = chkShowTimes.Checked;  
 
RadDateTimePicker1.DateInput.DateFormat = enterTime ? "M/d/yyyy h:mm tt" : "d";  
RadDateTimePicker1.DateInput.DisplayDateFormat = enterTime ? "M/d/yyyy h:mm tt" : "d";  
 
RadDateTimePicker1.TimeView.Visible = enterTime;  
RadDateTimePicker1.TimePopupButton.Visible = enterTime;  
 

This concept worked in the non-Prometheus version, but now once I set the "TimeView" portion "visible = false", I get a javascript error:

Microsoft JScript runtime error: Sys.InvalidOperationException:   
Component 'RadDateTimePicker1_timeView' was not found. 

And once this happens, the calendar button breaks and does not popup the calendar.

Any ideas?

Thanks,
John
Pyron Technologies
A2H
Top achievements
Rank 1
 answered on 24 Jul 2013
6 answers
161 views
hey folks,

im having a little problem w/ my RadGrid... when the user enters Edit mode, makes a change, and submits the change (firing the OnUpdateCommand event handler), occasionally my code will have to wait a long time to complete the update attempt on the backend (my code calls a web service). the problem -- it takes our web service 2 minutes to timeout in .NET code-behind (which is handled properly and *should* return a friendly status message), but the grid produces a javacript error before that, at exactly 90 seconds. at this point IE 8 shows a broken-javascript icon in the status bar, and my post-Update code to return the friendly message is not rendered on screen.

pic attached. 

can i set a longer timeout value on the Grid before it breaks? 


thanks,
matt
matt
Top achievements
Rank 1
 answered on 24 Jul 2013
3 answers
866 views
Since the release of Q3 2011, the property EnableSingleInputRendering has made it possible to display the label above the actual input by setting the label's css (LabelCssClass) to: 
.wrapLabel
{
    float:left;
    clear:left;
}

While this has the desired effect, you have to reset the width's for the label and the input's container:
.riSingle .riContentWrapper {width: auto !important; }
.wrapLabel { width: auto !important;}

This allows the input to take up the entire width set by the control's Width property.  

The issue I'm having is that the input extends beyond the bounding box of the control.  If you create 4 controls and set their widths to 25%, you would expect the 4 equally sized controls to take up the available 100% space.  Instead, I think the internal padding is pushing the input beyond the desired bounds of the control.

In the attached files are some screen caps.
Example 1 shows how the 4th control wraps to the next line. Example 2 shows IE9's Developer Toolbar's view of the span that renders around the entire control.

Is there a way to constrain the input to the desired bounds, given any number of values I can set for the control's Width?

Konstantin Dikov
Telerik team
 answered on 24 Jul 2013
3 answers
174 views
From my C# / ASP.Net 4.0 app, I want to be able to display a file dialog box (the simple type that is very common in WinForms apps).  Once the path & filename have been selected then I will either import data from a CDF text file or export data to it.

I've researched the subject and can't seem to find a solution that works to allow me to specify such a dialog box.  I'm thinking that perhaps Telerik has a control to do this but am not sure which one it is.

Any ideas would be much appreciated!

Robert W.
Robert
Top achievements
Rank 1
 answered on 24 Jul 2013
8 answers
893 views
Hello,

My scenario is that i have a grid with single level nesting. Order is parent grid and orderaddress is the child grid.

I have a link on the parent order called assign. On assign click i get data key of orderid and build the object based on row columns
 var oArg = new Object();
 oArg.OrderId= selectedRow.getDataKeyValue("OrderId");
oArg.name= masterTable.getCellByColumnUniqueName(selectedRow, "Name").innerHTML;
oArg.age= masterTable.getCellByColumnUniqueName(selectedRow, "age").innerHTML;

All works till now.
The problem is i need to associate single address from the details grid. I have row selection for child grid. How do i get primary key and other objects from detail table?

For eg. if i have 3 rows expanded than i need to get the selected child object of the row on which the link is clicked.
Once i get the object i need to build following object
var vAddress  = new Object()
vAddress.AddressId = get addressid primary key from detailsview
vAddress.Address1 =  get address1 as innerhtml from the detailsview


Please help

Regards
Mac




Sharmin
Top achievements
Rank 1
 answered on 24 Jul 2013
1 answer
180 views
Hi, I fill RadGrid in NeedDataSource like this:

protected void rgPortConfigView_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
    var grid = (RadGrid) sender;
 
    IList<Swfc_Port_ConfigInfo> lpi;
    var spc = new Swfc_Port_Config_StateController();
    var dateRange = B4DateTimePicker.DateFromDateToFromPickerOrDefault(Page, "B4DateTimePickerDatesFilter", DateTime.Now.AddDays(-6), DateTime.Now, UrlConst.DATE_FROM, UrlConst.DATE_TO);
    this.dateFrom = dateRange.DateFrom;
    this.dateTo = dateRange.DateTo;
 
    int sfSanSwitchId;
    if (int.TryParse(Request.QueryString[UrlConst.SF__SAN_SWITCH__ID], out sfSanSwitchId))
    {
        QueryParams.SetValue("SAN_SWITCH_ID", sfSanSwitchId, FilterCondition.Equal, false);
    }
    int sfSwfcPortConfigSwfcPortIndex;
    if (int.TryParse(Request.QueryString[UrlConst.SF__SWFC_PORT_CONFIG__SWFC_PORT_INDEX], out sfSwfcPortConfigSwfcPortIndex))
    {
        QueryParams.SetValue("SWFC_PORT_INDEX", sfSwfcPortConfigSwfcPortIndex, FilterCondition.Equal, false);
    }
 
    switch (SubTabID)
    {
        case "top20ports":
            lpi = spc.LoadForPerformance(0, 20, "PERFORMANCE_IOSUM DESC", this.dateFrom, this.dateTo);
            this.rgPortConfigView.DataSource = lpi;
            break;
        case "allports":
            lpi = spc.LoadForPerformance(0, Int32.MaxValue - 2, grid.MasterTableView.SortExpressions.GetSortString() ?? "PERFORMANCE_IOSUM DESC", this.dateFrom, this.dateTo);
            this.rgPortConfigView.DataSource = lpi;
            break;
        case "top10isl":
            lpi = spc.LoadForPerformanceISL(0, 10, "PERFORMANCE_IOSUM DESC", this.dateFrom, this.dateTo);
            this.rgPortConfigView.DataSource = lpi;
            break;
        case "top20isl":
            lpi = spc.LoadForPerformanceISL(0, 20, "PERFORMANCE_IOSUM DESC", this.dateFrom, this.dateTo);
            this.rgPortConfigView.DataSource = lpi;
            break;
        case "allisl":
            lpi = spc.LoadForPerformanceISL(0, Int32.MaxValue - 2, grid.MasterTableView.SortExpressions.GetSortString() ?? "PERFORMANCE_IOSUM DESC", this.dateFrom, this.dateTo);
            this.rgPortConfigView.DataSource = lpi;
            break;
        case "top10ports":
        default:
            lpi = spc.LoadForPerformance(0, 10, "PERFORMANCE_IOSUM DESC", this.dateFrom, this.dateTo);
            this.rgPortConfigView.DataSource = lpi;
            break;
    }
 
    QueryParams.Remove("SAN_SWITCH_ID");
    QueryParams.Remove("SWFC_PORT_INDEX");
}

Here is one of the columns that causes the mentioned exception:

<telerik:GridTemplateColumn HeaderStyle-CssClass='GridHeaderGreen la' ItemStyle-CssClass='la' UniqueName="San_Switch__DisplayName" HeaderText="Switch Name" SortExpression="SAN_SWITCH_NAME">
    <ItemTemplate>
        <asp:HyperLink ID="hlSwitchName" runat="server" Text='<%# Eval("San_Switch.DisplayName") %>' NavigateUrl='<%# GetUrlToSwitchInfo(Container.DataItem) %>' />
    </ItemTemplate>
</telerik:GridTemplateColumn>

The funny thing is that db data is returned properly from LoadForPerformance method! And there is no error in SQL part! The exception happens AFTER! The grids with using "static" ObjectDataSource work without any problem in such cases, i.e. I can indicate field names or full names, using DB schema, table name and column name like SortExpression="SF.SAN_SWITCH.NAME"...
Alexander
Top achievements
Rank 1
 answered on 24 Jul 2013
1 answer
105 views
Radupload is not rendered in all versions of internet explorers. The following line below

           <telerik:RadUpload InputSize="50" runat="server" ID="radUpload1" AllowedFileExtensions=".xls,.xlsx,.xml,.csv"                                                                        ControlObjectsVisibility="None" InitialFileInputsCount="1" EnableFileInputSkinning="False">                                                     </telerik:RadUpload><br>


results in the following mark up.

<div>   <div id="ctl00_ContentArea_radUpload1" class="RadUpload RadUpload_Default"><br><span class="Apple-tab-span" style="white-space:pre">            </span><input id="ctl00_ContentArea_radUpload1_ClientState" name="ctl00_ContentArea_radUpload1_ClientState" type="hidden" /><br><span class="Apple-tab-span" style="white-space:pre"> </span> <span class="Apple-tab-span" style="white-space:pre">   </span></div><br></div>



This works in all other browsers.

EDIT.
I changed the app to use 2012.2.724.40 and RadUpload works.


                             
Hristo Valyavicharski
Telerik team
 answered on 24 Jul 2013
2 answers
88 views
Hello.

I'm trying to use a grid with batch edit in a nestedviewtemplate, but I still can't. That's it possible? If yes, can somebody share a code or a little project?

Regards.

Angel Petrov
Telerik team
 answered on 24 Jul 2013
1 answer
78 views
We have set httpOnly for all cookies in our web.config and we have PersistStateInCookie set to true for our RadPanelBar however the cookie generated by the RadPanelBar does not seem to be httpOnly.  We verified this using FireBug in the FireFox browser.  Is this because the cookie has be accessed by javascript that Telerik is using?
Boyan Dimitrov
Telerik team
 answered on 24 Jul 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?