Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
446 views
I have query that returns several result sets.  One of these resultsets is turned into a table and bound to a grid.  That works fine.

I have two other result sets that return lists of values; let's call them aList and bList.  I will turn these into tables as well because I believe the GridBoundColumn was designed to work best with tables.

Here is my problem.  I am already specifying a resultset as a DataSouce for the grid. 

How do I get the GridBoundColumns in the grid mapped to the aList and bList tables?

Here is how the columns are defined:

 

 

<telerik:GridDropDownColumn

 

 

 

DataField="Office"

 

 

 

HeaderText="Offices"

 

 

 

UniqueName="chkOffices">

 

 

 

<HeaderStyle Font-Bold="True" HorizontalAlign="Center"/>

 

 

 

<ItemStyle HorizontalAlign="Center" />

 

 

 

</telerik:GridDropDownColumn>

 

<%

 

--***********************************************--%>

 

 

 

<telerik:GridDropDownColumn

 

 

 

DataField="TypeName"

 

 

 

HeaderText="Types"

 

 

 

UniqueName="chkTypes">

 

 

 

<HeaderStyle Font-Bold="True" HorizontalAlign="Center"/>

 

 

 

<ItemStyle HorizontalAlign="Center" />

 

 

 

</telerik:GridDropDownColumn>

 


I have a Bind method that is binding the table to the grid and it looks like this:

 

 

private void BindDetails(DataTable Details, DataTable List, DataTable TiersList, DataTable officeList)

 

{

 

 

RadGrid grid = radGridPromoDetails;

 

grid.

 

MasterTableView.SortExpressions.Clear();

 

grid.

 

CurrentPageIndex = 0;

 

grid.

 

DataSource = Details;

 

grid.

 

DataBind();

 

}


The XML from the resultset is in the following form:
<Details>
  <field1></field1>
  <field2></field2>
  <Types></Types> -- this is the first dataset that I want to display in a drop down in a grid row.
  <Offices></Offices> -- this is the second dataset that  I want to display in a drop down in a grid row.
</Details>

Any ideas?
Princy
Top achievements
Rank 2
 answered on 06 Jun 2013
3 answers
152 views
Hello,

Maybe I am missing something?  I am trying to accomplish the automatic scrolling experienced using RotatorType="SlideShow" but with buttons so that the user can back up (left) or go forward (right).  I currently use PauseOnMouseOver="True" to stop the slideshow until the user focuses elsewhere.  That works just fine.  Do I need to use some sort of client-side script whereby an onclick event is raised when the user clicks an image (right) causing a showNext, for example?  (Is there a showPrevious?)  Is this the best approach to combine automatic scrolling, like the standard SlideShow option, with the SlideShowButtons option?

Thanks in advance for whatever advice or help you might provide.

Cheers,

Doug
Colton3310
Top achievements
Rank 1
 answered on 06 Jun 2013
1 answer
357 views
I have a RadDropDownList that I bind to a List of State objects. The DataTextField is set to the state abbreviation property, and the DataValueField is set to a Guid identifier. I want to set the tooltip of the list items to the state name, IE. AK = Alaska. I have tried a few different ways to do this, but none are working. In each case I have stepped through the code to verify that each item gets the proper value assigned to it. In the browser though there are no tool tips.

Method 1: After calling DataBind() I iterate through each item in the RadDropDownList and assign the state name to the item's ToolTip property.
List<State> stateList = GetStates();
uxState.DataSource = stateList;
uxState.DataBind();
 
foreach (DropDownListItem item in uxState.Items)
{
    State state = stateList.Find(delegate(State myState)
    {
        return myState.StateId == new Guid(item.Value);
    });
    if (state != null)
    {
        item.ToolTip = state.Name;
    }
}


Method 2: Is the same as method 1 except I do all the work inside the DataBound event.

Method 3: Thinking the issue was something to do with the data binding I iterate the state object list and create new a DropDownListItem for each object. I then assign the tooltip to the new DropDownListItem and add it to the RadDropDownList.Items collection.
foreach (State state in List<State>)
{
    DropDownListItem item = new DropDownListItem(state.Abbreviation, state.StateId.ToString());
    item.ToolTip = state.Name;
    uxState.Items.Add(item);
}
Shinu
Top achievements
Rank 2
 answered on 06 Jun 2013
1 answer
86 views
Hi Guys
We have some problems with a relatively simple layout.
Our application has the classical layout, header on top, navigation bar left and content page on the right, implemented with nested splitters in the masterpages:
Site.Master:       Splitter horizontal with Pane Header and Pane Body with Body placeholder
Content.Master: Splitter vertical with Navigation pane left, Splitbar and Content pane right with Content placeholder
Content page: simple placeholder, loads user control
User control: Splitter horizontal with TabStrip on pane 1 and MultiPage on pane 2. Inside the multipage's pageview1 we load another splitter horizontal displaying some buttons and labels.

We have three problems with this layout:
1.) The inner splitter is not resized to 100%
2.) When resizing with splitbar, the inner splitter is resized to 100% plus some more percents
3.) Calling a client ajaxrequest from the RadButton does not reach the handler, but with a normal html button this works fine ??

Regarding the splitter resizing, we followed your rules: Main splitter to 100%, all of the following elements no explicit size, up to the multipage, all following elements set to 100%.

I wanted to attach a sample application, but only jpg, gif, png is allowed, so how to upload it ?
 Please send an answer soon, it is a little bit urgent !

Thanks
Michael
Vessy
Telerik team
 answered on 06 Jun 2013
5 answers
281 views
Hi,
I am using RAD controls for .Net Framework 3.5 [Product version  2008.2.826.20]
, We are getting problem with rad combobox in IE 8 , in compatible view it is OK, but in normal view with length of the combo box growing .
Here is the code we use in aspx page:
<telerik:RadComboBox ID="rcbNetwork" runat="server" Skin="Raikum" EnableEmbeddedSkins="false"
                        Width="181">
                    </telerik:RadComboBox>


We tried to maintain width with custom skin, style border is working but width is not working in IE 8, Here is original [ no border and no width maintain] the custom skin.


:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
/* RadComboBox Raikum skin */

/*global*/

.RadComboBox_Raikum *
{
    margin: 0;
    padding: 0;
}

.RadComboBox_Raikum,
.RadComboBox_Raikum .rcbInput,
.RadComboBoxDropDown_Raikum
{
    font: 12px "Segoe UI", Arial, sans-serif;
    color: #333;
    text-align: left;
}

.RadComboBox_Raikum_rtl,
.RadComboBox_Raikum_rtl .rcbInput,
.RadComboBoxDropDown_Raikum_rtl
{
    text-align: right;
}

/* combobox */

.RadComboBox_Raikum
{
    vertical-align: middle;
}

* html .RadComboBox_Raikum { vertical-align: top; }

.RadComboBox_Raikum table
{
    border: 0;
    border-collapse: collapse;
}

.RadComboBox_Raikum table td.rcbInputCell
{
    
    height: 22px;
    line-height: 22px;
    vertical-align: middle;
    padding: 0;
    /*border:1px solid #ff0000;*/
}



* html .RadComboBox_Raikum td.rcbInputCell
{
    height /**/: 22px;
    line-height /**/: 22px;
}

.RadComboBox_Raikum .rcbInputCellLeft,
.RadComboBox_Raikum .rcbInputCellRight,
.RadComboBox_Raikum .rcbArrowCellLeft,
.RadComboBox_Raikum .rcbArrowCellRight
{
    background: url('ComboBox/rcbSprite.png') no-repeat;
}

* html .RadComboBox_Raikum .rcbInputCellLeft,
* html .RadComboBox_Raikum .rcbInputCellRight,
* html .RadComboBox_Raikum .rcbArrowCellLeft,
* html .RadComboBox_Raikum .rcbArrowCellRight
{
    background: url('ComboBox/rcbSpriteIE6.png') no-repeat;
}

.RadComboBox_Raikum td.rcbInputCellLeft { background-position: 0 0; }
.RadComboBox_Raikum td.rcbInputCellRight { background-position: 100% 0; }

.RadComboBox_Raikum .rcbHovered .rcbInputCellLeft { background-position: 0 0; }
.RadComboBox_Raikum .rcbHovered .rcbInputCellRight { background-position: 100% 0; }

.RadComboBox_Raikum .rcbFocused .rcbInputCellLeft { background-position: 0 0; }
.RadComboBox_Raikum .rcbFocused .rcbInputCellRight { background-position: 100% 0; }

.RadComboBox_Raikum .rcbHovered .rcbReadOnly td.rcbInputCellLeft { background-position: 0 -22px; }
.RadComboBox_Raikum .rcbHovered .rcbReadOnly td.rcbInputCellRight { background-position: 100% -22px; }

.RadComboBox_Raikum .rcbFocused .rcbReadOnly td.rcbInputCellLeft { background-position: 0 -44px; }
.RadComboBox_Raikum .rcbFocused .rcbReadOnly td.rcbInputCellRight { background-position: 100% -44px; }

.RadComboBox_Raikum .rcbInputCell .rcbInput
{
    width:100%;
    background: transparent;
    border: 0;
    vertical-align: middle;
    padding: 2px 0 1px;
    outline: 0;
    /*border:1px solid #ff0000;*/
}


* html .RadComboBox_Raikum .rcbInputCell .rcbInput
{
    height /**/: 18px;
}

.RadComboBox_Raikum .rcbInputCell .rcbEmptyMessage
{
    color: #666;
    font-style: italic;
}

.RadComboBox_Raikum .rcbReadOnly .rcbInput
{
    cursor: default;
}

.RadComboBox_Raikum table td.rcbInputCell,
.RadComboBox_Raikum .rcbInputCell .rcbInput
{
    padding-left: 2px;
}

.RadComboBox_Raikum_rtl table td.rcbInputCell,
.RadComboBox_Raikum_rtl .rcbInputCell .rcbInput
{
    padding-right: 2px;
    padding-left: 0;
}

.RadComboBox_Raikum .rcbHovered .rcbInputCell .rcbInput
{
    color: #045cb5;
}

.RadComboBox_Raikum table td.rcbArrowCell
{
    width: 18px;
    padding: 0;
    /*border:1px solid #ff0000;*/
    
    
    
}

.RadComboBox_Raikum td.rcbArrowCellLeft { background-position: -18px -88px; z-index:1200; }
.RadComboBox_Raikum td.rcbArrowCellRight { background-position: 0 -88px; z-index:1200; }

.RadComboBox_Raikum .rcbHovered .rcbArrowCellLeft { background-position: -54px -88px; }
.RadComboBox_Raikum .rcbHovered .rcbArrowCellRight { background-position: -36px -88px; }

.RadComboBox_Raikum .rcbFocused .rcbArrowCellLeft { background-position: -90px -88px; }
.RadComboBox_Raikum .rcbFocused .rcbArrowCellRight { background-position: -72px -88px; }

.RadComboBox_Raikum td.rcbArrowCellHidden,
.RadComboBox_Raikum .rcbHovered td.rcbArrowCellHidden,
.RadComboBox_Raikum .rcbFocused td.rcbArrowCellHidden { background-position: -15px -88px; }
.RadComboBox_Raikum table.rcbDisabled td.rcbArrowCellHidden { background-position: -123px -88px; }

.RadComboBox_Raikum .rcbHovered .rcbReadOnly td.rcbArrowCellHidden { background-position: -51px -88px; }
.RadComboBox_Raikum .rcbFocused .rcbReadOnly td.rcbArrowCellHidden { background-position: -87px -88px; }

.RadComboBox_Raikum .rcbArrowCell a
{
    position: relative;
    outline: 0;
    overflow: hidden;
    display: block;
    width: 18px;
    height: 22px;
    text-decoration: none;
    text-indent: -9999px;
    font-size: 1px;
    
}

div.RadComboBox_Raikum td.rcbArrowCellHidden,
div.RadComboBox_Raikum .rcbArrowCellHidden a
{
    width: 3px;
}

/* Read-only styles */

.RadComboBox_Raikum .rcbReadOnly td.rcbArrowCell { width: 16px; }
.RadComboBox_Raikum .rcbReadOnly td.rcbArrowCell a { width: 16px; }

.RadComboBox_Raikum .rcbReadOnly td.rcbArrowCellLeft { background-position: -18px -88px; }
.RadComboBox_Raikum .rcbReadOnly td.rcbArrowCellRight { background-position: -2px -88px; }

.RadComboBox_Raikum .rcbHovered .rcbReadOnly .rcbArrowCellLeft { background-position: -54px -88px; }
.RadComboBox_Raikum .rcbHovered .rcbReadOnly .rcbArrowCellRight { background-position: -38px -88px; }

.RadComboBox_Raikum .rcbFocused .rcbReadOnly .rcbArrowCellLeft { background-position: -90px -88px; }
.RadComboBox_Raikum .rcbFocused .rcbReadOnly .rcbArrowCellRight { background-position: -74px -88px; }

.RadComboBox_Raikum .rcbReadOnly td.rcbArrowCellHidden,
.RadComboBox_Raikum .rcbReadOnly td.rcbArrowCellHidden a { width: 3px; }
.RadComboBox_Raikum .rcbReadOnly td.rcbArrowCellHidden { background-position: -15px -88px; }
.RadComboBox_Raikum .rcbHovered .rcbReadOnly td.rcbArrowCellHidden { background-position: -51px -88px; }
.RadComboBox_Raikum .rcbFocused .rcbReadOnly td.rcbArrowCellHidden { background-position: -87px -88px; }

/* dropdown */

.rcbSlide
{
    position: absolute;
    overflow: hidden;
    display: none;
    _height: 1px;
    float: left;
    
}

.RadComboBoxDropDown_Raikum .rcbHeader,
.RadComboBoxDropDown_Raikum .rcbFooter,
.RadComboBoxDropDown_Raikum .rcbMoreResults a
{
    background-image: url('ComboBox/rcbSprite.png');
    background-repeat: no-repeat;
}

* html .RadComboBoxDropDown_Raikum .rcbHeader,
* html .RadComboBoxDropDown_Raikum .rcbFooter,
* html .RadComboBoxDropDown_Raikum .rcbMoreResults a
{
    background-image: url('ComboBox/rcbSprite.gif');
    background-repeat: no-repeat;
}

.RadComboBoxDropDown_Raikum
{
    position: absolute;
    background: #fff;
    border: 1px solid #c6c7d2;
    border-top-color: #83868d;
    cursor: default;
    font-size: 11px;
}

.RadComboBoxDropDown_Raikum_rtl
{
    text-align: right;
    direction: rtl;
}

.RadComboBoxDropDown_Raikum .rcbScroll
{
    overflow: auto;
    position: relative;
}

.RadComboBoxDropDown_Raikum .rcbList
{
    list-style: none;
    position: relative;
    margin: 0;
    padding: 0;
}

.RadComboBoxDropDown_Raikum .rcbHeader,
.RadComboBoxDropDown_Raikum .rcbFooter
{
    background-repeat: repeat-x;
    background-color: #f1f2f4;
    background-position: 0 -110px;
    padding: 5px 7px 4px;
}

.RadComboBoxDropDown_Raikum .rcbHeader
{
    border-bottom: 1px solid #d5d5d5;
    margin-bottom: 1px;
}

.RadComboBoxDropDown_Raikum .rcbFooter
{
    border-top: 1px solid #d5d5d5;
    margin-top: 1px;
}

.RadComboBoxDropDown_Raikum .rcbNoWrap .rcbItem,
.RadComboBoxDropDown_Raikum .rcbNoWrap .rcbHovered,
.RadComboBoxDropDown_Raikum .rcbNoWrap .rcbDisabled,
.RadComboBoxDropDown_Raikum .rcbNoWrap .rcbLoading
{
    white-space: nowrap;
}

.RadComboBoxDropDown_Raikum .rcbItem,
.RadComboBoxDropDown_Raikum .rcbHovered,
.RadComboBoxDropDown_Raikum .rcbDisabled,
.RadComboBoxDropDown_Raikum .rcbLoading
{
    padding: 2px 19px 2px 6px;
    margin: 0 1px;
}

html>/**/body .RadComboBoxDropDown_Raikum .rcbItem,
html>/**/body .RadComboBoxDropDown_Raikum .rcbHovered,
html>/**/body .RadComboBoxDropDown_Raikum .rcbDisabled,
html>/**/body .RadComboBoxDropDown_Raikum .rcbLoading
{
    min-height: 13px;
}

* html .RadComboBoxDropDown_Raikum .rcbItem,
* html .RadComboBoxDropDown_Raikum .rcbHovered,
* html .RadComboBoxDropDown_Raikum .rcbDisabled,
* html .RadComboBoxDropDown_Raikum .rcbLoading
{
    height: 13px;
    word-break: break-all;
}

*+html .RadComboBoxDropDown_Raikum .rcbItem,
*+html .RadComboBoxDropDown_Raikum .rcbHovered,
*+html .RadComboBoxDropDown_Raikum .rcbDisabled,
*+html .RadComboBoxDropDown_Raikum .rcbLoading
{
    height: auto;
    word-break: break-all;
}

.RadComboBoxDropDown_Raikum_rtl .rcbItem,
.RadComboBoxDropDown_Raikum_rtl .rcbHovered,
.RadComboBoxDropDown_Raikum_rtl .rcbDisabled,
.RadComboBoxDropDown_Raikum_rtl .rcbLoading
{
    padding: 2px 6px 2px 19px;
}

.RadComboBoxDropDown_Raikum .rcbImage
{
    vertical-align: middle;
    margin: 0 6px 2px 0;
}

.RadComboBoxDropDown_Raikum_rtl .rcbImage
{
    margin: 0 0 2px 6px;
}

.RadComboBoxDropDown_Raikum em
{
    font-style: normal;
    font-weight: bold;
}

.RadComboBoxDropDown_Raikum .rcbItem em
{
    background: #e5e5e5;
}

.RadComboBoxDropDown_Raikum .rcbHovered
{
    background: #39f;
    color: #fff;
}

.RadComboBoxDropDown_Raikum .rcbSeparator
{
    color: #666;
    background: #D3ECF9;
}

.RadComboBox_Raikum .rcbDisabled .rcbInputCell .rcbInput,
.RadComboBoxDropDown_Raikum .rcbDisabled
{
    color: #999;
    cursor: default;
}

.RadComboBox_Raikum .rcbDisabled td.rcbInputCellLeft { background-position: 0 -66px; }
.RadComboBox_Raikum .rcbDisabled td.rcbInputCellRight { background-position: 100% -66px; }
.RadComboBox_Raikum .rcbDisabled td.rcbArrowCellLeft { background-position: -126px -88px; }
.RadComboBox_Raikum .rcbDisabled td.rcbArrowCellRight { background-position: -108px -88px; }
.RadComboBox_Raikum .rcbDisabled .rcbReadOnly td.rcbArrowCellRight { background-position: -110px -88px; }
.RadComboBox_Raikum .rcbDisabled .rcbReadOnly td.rcbArrowCellHidden { background-position: -15px -88px; }

.RadComboBoxDropDown_Raikum .rcbLoading
{
    background: #f0f0f0;
    text-align: center;
}

.RadComboBoxDropDown_Raikum .rcbMoreResults
{
    clear: both;
    border-top: 1px solid #c6c7d2;
    background: #fff;
    position: relative;
    padding: 0 6px 0;
    text-align: center;
    margin-top: 1px;
}

.RadComboBoxDropDown_Raikum .rcbMoreResults a
{
    display: inline-block;
    width: 15px;
    height: 9px;
    background-position: -157px -94px;
    text-indent: -9999px;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    vertical-align: middle;
}

* html .RadComboBoxDropDown_Raikum .rcbMoreResults a
{
    font-size: 0;
    line-height: 0;
    text-indent: 0;
}

*+html .RadComboBoxDropDown_Raikum .rcbMoreResults a
{
    font-size: 0;
    line-height: 0;
    text-indent: 0;
}

.RadComboBoxDropDown_Raikum .rcbMoreResults a:hover
{
    background-position: -188px -94px;
}

.RadComboBoxDropDown_Raikum .rcbMoreResults span
{
    vertical-align: middle;
    height: 19px;
    line-height: 19px;
    display: inline-block;
}

.RadComboBoxDropDown_Raikum .rcbSeparatedList .rcbItem,
.RadComboBoxDropDown_Raikum .rcbSeparatedList .rcbHovered,
.RadComboBoxDropDown_Raikum .rcbSeparatedList .rcbDisabled,
.RadComboBoxDropDown_Raikum .rcbSeparatedList .rcbLoading
{
    padding-left: 12px;
}

.RadComboBoxDropDown_Raikum .rcbSeparatedList .rcbSeparator
{
    padding-left: 6px;
}

/*hacks*/

/*Opera start*/
@media screen and (min-width: 550px)
{
    .RadComboBoxDropDown_Raikum_rtl .rcbItem,
    .RadComboBoxDropDown_Raikum_rtl .rcbHovered,
    .RadComboBoxDropDown_Raikum_rtl .rcbDisabled,
    .RadComboBoxDropDown_Raikum_rtl .rcbLoading
    {
        padding: 2px 6px 2px 19px;
    }
} /*Opera end*/


Please advise
Thanks in advance
Citytech Development Team



Nencho
Telerik team
 answered on 06 Jun 2013
5 answers
263 views
As a quick background we currently have a very basic ASP.NET website using Forms Authentication.  The website itself is only about 6 pages with no real functionality or code behind, it's mainly just styles and some JavaScript.  The Main functionality of our application is contained in Silverlight applications contained on those pages.  We recently had a need to implement compression on our WCF Service calls and decided to look at RadCompression since we were all ready using Telerik controls inside of our Silverlight application.

The first issue I noticed is that on my development machine when running the application along side Fiddler in order to view the responses coming back from the server I receive an HTTP Protocol Violation on every service response of a Content-Length Mismatch.  What it appears to be doing is sending the uncompressed byte size in the header but then sending the body compressed which is different amounts.

Here is an example:

Fiddler has detected a protocol violation in session #25.
Content-Length mismatch: Response Header indicated 14,105,406 bytes, but server sent 1,304,570 bytes.

This error is mostly an annoyance as I have to clear out all of them and we make quite a few service calls.  

It however only happens on my local development machine, when deployed to an IIS instance it works fine.  

My second problem, only happens when deployed to IIS. 

After deploying the website to IIS I've run through it (while running Fiddler) and noticed that it's compressing not only the service calls but the actual Pages of the site as well.  From my understand and what I read on the RadCompression documentation it's not supposed to do that unless we specifically tell it to.  

The only thing that I have done to implement Rad Compression was add this section to my web config:
<system.webServer>
   <modules runAllManagedModulesForAllRequests="true">
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />
    </modules>
</system.serviceModel>
And then drop the Telerik.Web.UI.dll into my bin folder.  

No other settings have been changed, so shouldn't it only be compressing my service calls?

Finally, also only when deployed to IIS we are having problems logging out through Forms Authentication.  What happens is when we click the Log Out link it simply refreshes the page but does not log the user out.  If I comment the web.config line for RadCompression everything works as expected.  So since the only change i'm making is enabling RadCompression I am Certain that it is the cause of the log out button not functioning properly.  Perhaps if we had more functionality on the ASP.NET side it would cause problems there too.

Here is the code for the log out button for reference.

<asp:LoginView ID="HeadLoginView" runat="server" EnableViewState="false">
    <AnonymousTemplate>
        [ <a href="~/Account/Login.aspx" ID="HeadLoginStatus" runat="server">Log In</a> ]
    </AnonymousTemplate>
    <LoggedInTemplate>
        Welcome <span class="bold"><asp:LoginName ID="HeadLoginName" runat="server" /></span>!
        [ <asp:LoginStatus ID="HeadLoginStatus" runat="server" LogoutAction="Redirect" LogoutText="Log Out" LogoutPageUrl="~/"/> ]
    </LoggedInTemplate>
</asp:LoginView>
Radoslav
Telerik team
 answered on 06 Jun 2013
4 answers
256 views

Hi All,

I am not sure if I am pushing the limits of RadGrid here, but below is the code that I am using.

I am trying to do is group the data in the RadGrid by Entity and then by Location, this I have achieved.  I would also like to have a sub total per location and then a total per entity.

As I said I get the grouping right, I also get the total by location right, but what seems to be is happening is that total per Entity seems to be the last amount in the location.

Firstly, can I achieve what I am trying to and secondly how.

Thanx

<telerik:RadGrid ID="RadGridMonthlyReport" runat="server" AllowFilteringByColumn="True"  
                    AllowSorting="True" DataSourceID="objDsMonthlyBillingReportAll"   
                    GridLines="None" Skin="Vista" HorizontalAlign="Left">  
    <HeaderContextMenu> 
        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
    </HeaderContextMenu> 
    <ExportSettings OpenInNewWindow="True" ExportOnlyData="True" /> 
 
    <MasterTableView ShowGroupFooter="true" AutoGenerateColumns="False" DataSourceID="">  
        <RowIndicatorColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
        </RowIndicatorColumn> 
        <ExpandCollapseColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
        </ExpandCollapseColumn> 
        <Columns> 
            <telerik:GridBoundColumn DataField="EntityNumber" HeaderText="Entity" SortExpression="EntityNumber" UniqueName="EntityNumber" /> 
            <telerik:GridBoundColumn DataField="LocationName" HeaderText="Department" SortExpression="LocationName" UniqueName="LocationName" /> 
            <telerik:GridBoundColumn DataField="ItemName" HeaderText="Item" SortExpression="ItemName" UniqueName="ItemName" /> 
            <telerik:GridBoundColumn DataField="Total" DataType="System.Decimal" HeaderText="Total" ReadOnly="True" SortExpression="Total" UniqueName="Total" Aggregate="Sum" FooterText="Total: " /> 
        </Columns> 
        <GroupByExpressions>      
            <telerik:GridGroupByExpression> 
                <GroupByFields> 
                    <telerik:GridGroupByField FieldName="EntityNumber" /> 
                </GroupByFields> 
                <SelectFields> 
                    <telerik:GridGroupByField FieldName="EntityNumber" HeaderText="Entity Number" /> 
                </SelectFields> 
            </telerik:GridGroupByExpression> 
            <telerik:GridGroupByExpression> 
                <GroupByFields> 
                    <telerik:GridGroupByField FieldName="LocationName" /> 
                </GroupByFields> 
                <SelectFields> 
                    <telerik:GridGroupByField FieldName="LocationName" HeaderText="Location Name" /> 
                </SelectFields> 
            </telerik:GridGroupByExpression>              
        </GroupByExpressions> 
    </MasterTableView> 
    <FilterMenu> 
        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
    </FilterMenu> 
</telerik:RadGrid> 
Princy
Top achievements
Rank 2
 answered on 06 Jun 2013
4 answers
162 views
Hi, i am currently creating a file upload section on a web page that can be view on every type of device (Computer, Tablets and mobile phone). When i test the file upload section on a standard computer everything works perfectly. When i test it on mobile phone (I'm using Samsung Galaxy S2 with all the latest update) i have access to the files on my phone. I can select one and it seems to upload perfectly ( I got the green dot ) but in fact the file created in the template directory of the control ( app_date\RadUploadTemp ) has a size of 0 bytes. So when i press my submit button the file copied in my working directory is invalid and cannot be read. You can test it yourself on your demo page.
http://demos.telerik.com/aspnet-ajax/asyncupload/examples/additionalfields/defaultcs.aspx

When i upload a file on this page, the file size is always 0...

Is it a known issue ? a mobile browser limitation ? or what ever the explanation...

Can you help me on that ? or do you know an alternative solution for mobile browser ?

Thanks !

Sébastien
Marc
Top achievements
Rank 1
 answered on 06 Jun 2013
1 answer
64 views
Hi,

I am using the DNN wrappers for Telerik ASP.Net controls, so I hope you can help me anyway. I using a DnnSlider (RadSlider) control on a multilingual site, and I wonder if it's possible to translate the word "Drag" when hovering over a slider. How can this be achieved?

Best wishes
Michael
Slav
Telerik team
 answered on 05 Jun 2013
5 answers
177 views
I guess this is my stupid question week.  I have a Hierarchy Grid that has one detail grid.  That grid allows rows to be edited in PopUp Mode.  Before the PopUp is shown I want to increase the width of one of the gridboundcolumns that will appear on the PopUp..  I can get a handle to the field but cannot figure out how to change the width.  There is no width property available.  Code is posted below.  I have also tried the FindControl method used in other examples but cannot get a handle to it that way.  Can someone point me in the right direction?  Thanks

protected void RadGrid1_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e) 
        {            
             
            if ("Detail".Equals(e.Item.OwnerTableView.Name)) 
            {                 
                GridBoundColumn packageColumn = (GridBoundColumn)e.Item.OwnerTableView.GetColumnSafe("PackageName") as GridBoundColumn; 
                GridBoundColumn fileIdColumn = (GridBoundColumn)e.Item.OwnerTableView.GetColumnSafe("FileId") as GridBoundColumn; 
                GridBoundColumn connectionStringColumn = (GridBoundColumn)e.Item.OwnerTableView.GetColumnSafe("ConnectionString") as GridBoundColumn;                 
                
                if (e.Item.IsInEditMode && e.Item is IGridInsertItem)                
                { 
                    (e.Item as GridEditableItem)["PackageName"].Enabled = true
                } 
                if ("InitInsert".Equals(e.CommandName)) 
                { 
                    packageColumn.ReadOnly = false
                    fileIdColumn.ReadOnly = false
                    connectionStringColumn.ItemStyle.Width = Unit.Pixel(200); //THIS IS THE FIELD I WANT TO CHANGE THE WIDTH OF                   
                } 
                else 
                { 
                    packageColumn.ReadOnly = true
                    fileIdColumn.ReadOnly = true
                }                 
            } 
        }         

Senthilnathan
Top achievements
Rank 1
 answered on 05 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?