Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
90 views
Halo, I use Radboxlist in 2 versions, one whit Ajax and the oder whitout Ajax.
The Ajax version works well, but now I want to use the Listbox whit Autopostback.
The problem ar that on mouse over the Item ar not selected and also if I check a item the value ist not saved after postback.
I kann not find what its wrong.
I'm lucky for any sugestions.
Danks.

Darius Restea
Top achievements
Rank 1
 asked on 09 Jun 2010
1 answer
213 views
Hi everyone

I have two issue with RadRatting, I hope someone could help me.

1- I don't know have could get value of RadRatting for validation on "OnClientRating" event, sender.get_value() just give me Old-Value, Not Current-value !!!!!!

2- I don't know have rat 0, when ratted some value, for Example when I Rate 5 star, I can't change value to 0 star (I prefer do this, whit user click, Not with programming).

3- It is possible that force end-users to just ratting between two values (for examples ratting between 3-8) ?!!!!!!!!

Best Regards,
M.Hajinezhad.
Tsvetie
Telerik team
 answered on 09 Jun 2010
4 answers
99 views

In Opera (9.63)  the user can select (and copy) the nodes text. In Firefox 3.0.8 it seems that you cant select the text at all. And in IE 7.0 the user must (start) select from the left outside the node. We are using the RadTreeView in a forum and the users need to be able to copy text. Any solutions?

Regards

Jan

Sargis
Top achievements
Rank 1
 answered on 09 Jun 2010
3 answers
179 views
Dear Teleriks

I have an issue on filtering(combobox) and sorting on radgrid, even page is not too slow on first time, Please see my code and advise

here is my grid

 

<telerik:RadGrid ID="RadGrid1" Width="100%"

 

 

AllowMultiRowSelection="true" AllowFilteringByColumn="true"

 

 

AutoGenerateColumns="false" CellSpacing="0"

 

 

ClientSettings-Scrolling-ScrollHeight="40%"

 

 

ClientSettings-Scrolling-AllowScroll="true" EnableLinqExpressions="false"

 

 

ClientSettings-Scrolling-UseStaticHeaders="true"

 

 

AllowSorting="True" runat="server">

 

 

<GroupingSettings CaseSensitive="false" />

 

 

 

<MasterTableView TableLayout="Fixed" DataKeyNames="KEYID" ClientDataKeyNames="KEYID" >

 

 

 

<Columns>

 

 

<telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" HeaderStyle-Width="3%" ItemStyle-Width="3%" />

 

 

<telerik:GridNumericColumn Aggregate="Count" DataField="KEYID" HeaderText="KEYID" SortExpression="KEYID"

 

 

UniqueName="KEYID" />

 

 

 

<telerik:GridBoundColumn HeaderText="Employees" DataField="Name" UniqueName="Name" ShowFilterIcon="false"

 

 

HeaderStyle-Width="13%" ItemStyle-Width="13%" SortExpression="Name" AllowFiltering="true"

 

 

AutoPostBackOnFilter="true" FilterControlWidth="80" />

 

 

 

<telerik:GridBoundColumn HeaderText="Pay Period" DataField="Description" UniqueName="Description" ShowFilterIcon="false"

 

 

SortExpression="Description" HeaderStyle-Width="13%" ItemStyle-Width="13%">

 

 

 

<FilterTemplate>

 

 

<telerik:RadComboBox ID="RadComboBoxPP" CausesValidation="false" DataSourceID="SqlDataSourcePP" DataTextField="Code" Width="100"

 

 

DataValueField="Code" Height="100px" AppendDataBoundItems="true" OnClientSelectedIndexChanged="SelectedIndexChanged"

 

 

SelectedValue='<%# TryCast(Container, GridItem).OwnerTableView.GetColumn("Description").CurrentFilterValue %>'

 

 

runat="server">

 

 

<Items>

 

 

<telerik:RadComboBoxItem Text="All" />

 

 

</Items>

 

 

</telerik:RadComboBox>

 

 

<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">

 

 

<script type="text/javascript">

 

 

function SelectedIndexChanged(sender,args) {

 

 

var tableView=$find("<%# TryCast(Container, GridItem).OwnerTableView.ClientID %>");

 

sender.value= args.get_item().get_value();

tableView.filter(

"Description",args.get_item().get_value(),"EqualTo");

 

}

 

</script>

 

 

</telerik:RadScriptBlock>

 

 

</FilterTemplate>

 

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridBoundColumn HeaderText="Department" HeaderStyle-Width="18%" ItemStyle-Width="18%" DataField="Department" UniqueName="Department" ShowFilterIcon="false"

 

 

SortExpression="Department" >

 

 

<FilterTemplate>

 

 

<telerik:RadComboBox ID="RadComboBoxDep" CausesValidation="false" DataSourceID="SqlDataSourceDepartment" DataTextField="Department" width="150"

 

 

DataValueField="Department" Height="100px" AppendDataBoundItems="true" OnClientSelectedIndexChanged="SelectedIndexChanged2"

 

 

SelectedValue='<%# TryCast(Container, GridItem).OwnerTableView.GetColumn("Department").CurrentFilterValue %>'

 

 

runat="server">

 

 

<Items>

 

 

<telerik:RadComboBoxItem Text="All" />

 

 

</Items>

 

 

</telerik:RadComboBox>

 

 

<telerik:RadScriptBlock ID="RadScriptBlock2" runat="server">

 

 

<script type="text/javascript">

 

 

function SelectedIndexChanged2(sender,args) {

 

 

var tableView=$find("<%# TryCast(Container, GridItem).OwnerTableView.ClientID %>");

 

sender.value= args.get_item().get_value();

tableView.filter(

"Department",args.get_item().get_value(),"EqualTo");

 

}

 

</script>

 

 

</telerik:RadScriptBlock>

 

 

</FilterTemplate>

 

 

</telerik:GridBoundColumn>

 

 

 

<telerik:GridDateTimeColumn ReadOnly="true" DataField="Paydate" HeaderText="Pay Date" DataFormatString="{0:d}" HeaderStyle-Width="13%" ItemStyle-Width="13%" DataType="System.DateTime" UniqueName="PayDate" AllowFiltering="true" SortExpression="PayDate" FilterControlWidth="90"> </telerik:GridDateTimeColumn>

 

 

 

 

 

<telerik:GridBoundColumn AllowFiltering="false" HeaderText="Start Date" HeaderStyle-Width="10%" ItemStyle-Width="10%" DataFormatString="{0:d}" DataField="PayDateFrom" UniqueName="PayDateFrom" DataType="System.DateTime" ShowFilterIcon="false"

 

 

SortExpression="PayDateFrom" />

 

 

 

<telerik:GridBoundColumn HeaderText="End Date" DataField="Paydateto" HeaderStyle-Width="10%" ItemStyle-Width="10%" DataFormatString="{0:d}" UniqueName="Paydateto" DataType="System.DateTime" ShowFilterIcon="false" AllowFiltering="false"

 

 

SortExpression="Paydateto" />

 

 

 

<telerik:GridBoundColumn HeaderText="Hire/Rehire" HeaderStyle-Width="10%" ItemStyle-Width="10%" DataField="EMPDOH" UniqueName="EMPDOH" DataFormatString="{0:d}" DataType="System.DateTime" ShowFilterIcon="false" AllowFiltering="false"

 

 

SortExpression="EMPDOH" />

 

 

 

<telerik:GridBoundColumn HeaderStyle-Width="2%" ItemStyle-Width="1%" DataField="hdismass" UniqueName="hdismass" HeaderText="hdismass" AllowFiltering="false"

 

 

/>

 

 

 

<telerik:GridBoundColumn HeaderStyle-Width="2%" HeaderText="hds" ItemStyle-Width="1%" DataField="hds" UniqueName="hds" AllowFiltering="false"

 

 

/>

 

 

 

</Columns>

 

 

</MasterTableView>

 

 

<ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true">

 

 

<Selecting AllowRowSelect="true" />

 

 

<Resizing EnableRealTimeResize="True" ResizeGridOnColumnResize="false" AllowColumnResize="true">

 

 

</Resizing>

 

 

<ClientEvents OnRowSelecting="rowselecting" />

 

 

</ClientSettings>

 

 

</telerik:RadGrid>

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

 

</div>

 

 

<asp:SqlDataSource runat="server" ID="SqlDataSourceGrid"></asp:SqlDataSource>

 

 

<asp:SqlDataSource ID="SqlDataSourcePP" runat="server"></asp:SqlDataSource>

 

 

<asp:SqlDataSource ID="SqlDataSourceUsers" runat="server"></asp:SqlDataSource>

 

 

<asp:SqlDataSource ID="SqlDataSourceDepartment" runat="server"></asp:SqlDataSource>

and here is the codebehind function

 

Protected

 

Sub BindGrid2()

 

 

If Not IsPostBack Then

 

 

 

 

SqlDataSourceUsers.ConnectionString = ConfigurationManager.AppSettings.Item(

"ConnectString")

 

SqlDataSourceUsers.SelectCommand =

"select PrimaryKey, UserID From Security_Users Where PrimaryKey <> 1"

 

 

 

 

SqlDataSourceUsers.SelectCommandType = SqlDataSourceCommandType.Text

 

End If

 

 

 

 

SqlDataSourcePP.ConnectionString = ConfigurationManager.AppSettings.Item(

"ConnectString")

 

SqlDataSourcePP.SelectCommand =

"Select distinct Code From CT_Payperiods"

 

 

 

 

SqlDataSourcePP.SelectCommandType = SqlDataSourceCommandType.Text

SqlDataSourceDepartment.ConnectionString = ConfigurationManager.AppSettings.Item(

"ConnectString")

 

SqlDataSourceDepartment.SelectCommand =

"select DISTINCT Description as Department from CT_Departments WHERE GROUPID >= 0 "

 

 

 

 

SqlDataSourceDepartment.SelectCommandType = SqlDataSourceCommandType.Text

 

If isSelIndex = False Then BindFilters()

 

 

SqlDataSourceGrid.ConnectionString = ConfigurationManager.AppSettings.Item(

"ConnectString")

 

SqlDataSourceGrid.SelectCommand =

"Pr_GetPayEmployee"

 

 

 

 

SqlDataSourceGrid.SelectCommandType = SqlDataSourceCommandType.StoredProcedure

SqlDataSourceGrid.SelectParameters.Clear()

 

If radioGD.Items(1).Selected = True Then

 

 

 

 

SqlDataSourceGrid.SelectParameters.Add(

"mGrpKey", cmbGroup.Items(cmbGroup.SelectedIndex).Value)

 

 

Else

 

 

 

 

SqlDataSourceGrid.SelectParameters.Add(

"mGrpKey", -1)

 

 

End If

 

 

 

 

SqlDataSourceGrid.SelectParameters.Add(

"mDeptKey", -1)

 

SqlDataSourceGrid.SelectParameters.Add(

"mEmpKey ", -1)

 

 

'SqlDataSourceGrid.SelectParameters.Add("PayDate", "")

 

 

 

 

SqlDataSourceGrid.SelectParameters.Add(

"bRequired", 0)

 

SqlDataSourceGrid.SelectParameters.Add(

"PayPeriod", -1)

 

SqlDataSourceGrid.SelectParameters.Add(

"PRKEY", -1)

 

RadGrid1.DataSourceID =

"SqlDataSourceGrid"

 

 

 

 

 

 

 

End Sub

 

Pavlina
Telerik team
 answered on 09 Jun 2010
2 answers
156 views
Hi,
I have a RadSplitter on a page which has master pages. It is the first control inside the asp:content tag. I have set the Height of the RadSpltter to 100%. But when I look at the rendered html code, it is defaulting it to 400px and adding the scroll bar. The form on master page has a height of 100%, the div inside the form also has a height of 100%.

 <div id="ctl00_ContentPlaceHolder2_RadSplitterMain" style="height:400px;"><!-- 2010.1.511.40 --><table id="RAD_SPLITTER_ctl00_ContentPlaceHolder2_RadSplitterMain" class="RadSplitter RadSplitter_Default" cellpadding="0" cellspacing="0" style="width:1px;height:1px;border-left-width:1px;border-top-width:1px;"
How do I set it such that the scrollbars appear only if the IE window size is smaller than the content and not vice versa.
Thanks,
Dobromir
Telerik team
 answered on 09 Jun 2010
1 answer
133 views
I'm using the free product--ASP.NET RadEditor for MOSS Lite Edition, and integrated it in MOSS 2007.
Is it really free?
But now it shows the tips:
This product's trial period has expired
 
What should I do? waiting for your answer.
Stanimir
Telerik team
 answered on 09 Jun 2010
1 answer
103 views
there is a problem with telerick to export to pdf
 
if I put this problem you export a blank page.

<ClientSettings>
                 <Scrolling AllowScroll="True" UseStaticHeaders="True" />
             </ClientSettings>
and if I put it so well is exported welcome your comments
<ClientSettings>
                 <Scrolling AllowScroll="True" />
</ClientSettings>
Daniel
Telerik team
 answered on 09 Jun 2010
1 answer
84 views
This is a real tricky one to try to debug.

I have a RadComboBox with OnClientItemsRequesting calling a .svc service and populating the items.

Everything is working great in IIS 6 and IIS 7, but not in IIS 5.1.

I've used Firebug and the correct data is returned from the .svc call in OnClientItemsRequesting, but none of the items gets added.

Is this a known issue with IIS 5.1, is there a workaround?

Thanks,
Dimitar Milushev
Telerik team
 answered on 09 Jun 2010
3 answers
378 views
I'm having a bit of difficulty figuring out how to implement a custom filter for the grid. I'm using advanced data binding and my filtering parameters are implemented by separate HTML controls not part of RadGrid. Essentially what I want to do is define the FilterExpression value client-side and make sure that it's being passed and available each time server-side during _NeedDataSource.

If I do something like this client-side:

            var grid = $find("MessageGrid");
            var MasterTable = grid.get_masterTableView();
            MasterTable.filter("LogTime", 10254, Telerik.Web.UI.GridFilterFunction.GreaterThan, true);            

during _NeedDataSource, MessageGrid.MasterTableView.FilterExpression is empty. 

In general, how do I set a parameter value on the grid such that it is persisted in the View State so that it is also available, for example, during Paging, when _NeedDataSource will be called automatically?

Here's my client-side definition of the grid. I'm binding the columns server-side during Page_Init:

            <telerik:RadGrid ID="MessageGrid" runat="server" ShowStatusBar="true" EnableViewState="false" AllowSorting="true" AllowMultiRowSelection="true" AllowCustomPaging="true" AllowPaging="True" AutoGenerateColumns="False" GridLines="None" OnPageSizeChanged="MessageGrid_PageSizeChanged" OnNeedDataSource="MessageGrid_NeedDataSource" > 
                <MasterTableView ClientDataKeyNames="Id, ReferenceId"
                </MasterTableView> 
                <ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="true"
                    <Resizing AllowColumnResize="true" /> 
                    <Scrolling AllowScroll="true" UseStaticHeaders="true" /> 
                    <ClientEvents OnRowSelected="MessageGrid_OnRowSelected" OnRowDblClick="MessageGrid_OnDblClick" OnGridCreated="MessaegGrid_Created" /> 
                    <Selecting AllowRowSelect="True" /> 
                </ClientSettings> 
            </telerik:RadGrid> 
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"  OnAjaxRequest="RadAjaxManager1_AjaxRequest"
                <AjaxSettings> 
                    <telerik:AjaxSetting AjaxControlID="MessageGrid"
                        <UpdatedControls> 
                            <telerik:AjaxUpdatedControl ControlID="MessageGrid" /> 
                        </UpdatedControls> 
                    </telerik:AjaxSetting> 
                </AjaxSettings> 
            </telerik:RadAjaxManager> 
 

Radoslav
Telerik team
 answered on 09 Jun 2010
1 answer
86 views
Hello.  I need to change the color of the group expansion button area.  I am able to change the group header color (using GridGroupHeaderItem) but can't seem to figure out how to change the color of the expansion button area.  I've tried using both the GridGroupHeaderItem and ItemData class but none seem to allow me to change it.  Can someone point me in the correct direction?

I've attached an image showing the area which I need to change the color of (the green expansion areas).

Thanks.

Ryan


Yavor
Telerik team
 answered on 09 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?