Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
59 views
hello ,
im working on project contains two languages (Arabic and English )  every language  has a different style sheet in App_Themes Folder
in this project i have page contains listview some of Elements in this view updated by RadAjaxManager in specific times
if user opening two tab : First tab(the page contains RadListView) and any other tab in same project if user changed Language in other tab (Not RadListView tab)
when ajax fired it cause problem in view of the list view the updated controls in list view take the new language StyleSheet and different controls stay the same
the Summary : RadAjaxManager Update Style sheet when updating the control and take the new one how can i prevent that ?
i hope this finds you will
Regards ,,
Alharith
Top achievements
Rank 1
 answered on 16 Mar 2014
2 answers
127 views
hello
im facing problem in RadWindowManager in Ok button it appears not correct
you can see the problem in attachment

I hope this will find you will
Regards ,,

Alharith
Top achievements
Rank 1
 answered on 16 Mar 2014
0 answers
102 views
I want to build a form where each entry field is either pre-populated
with data from SQL and 'Read Only' (doesn't have to be 'readonly'
strictly speaking but I don't want it to be editable, like a textbox
that's disabled or a label) with an 'edit' button next to the field that
makes it editable, or if there is no data for the field, have it be an
editable textbox.

The wrinkle is that I want the 'edit' buttons
to work client-side.  I've tried javascripts that toggle the 'readonly'
attribute of textboxes, (which I couldn't make work) and I've tried
javascripts that enable/disable the textboxes (which also didn't work). 
Someone the problem I had with these first two approached were with
poastback.  I want to retrieve the value from each field whether it's
been edited or not at postback, and I want the value to return as
whatever it has been changed to after postback.  I had trouble with
both.

I've even tried having two controls, a label and a textbox,
with linked values where only one of the two is ever visible.  I had
trouble getting this approach to render correctly using client-side
code.

Is there an approach that is 'best practice' or that most people use for this?

Thanks.
George
Top achievements
Rank 1
 asked on 15 Mar 2014
4 answers
178 views
hi
i create a grid with item template columns and edit template in batch mode. i want to bind this grid in client side. I have a web service and return a xml string to my java script function . and i add empty function for OnCommand client event .but when i bind the grid it have so many empty rows and if i clear that master Table  in java script is null and i can not bind the grid

what should i do?


English is not my original language so i sorry for my poor language.
thanks
Ali
Top achievements
Rank 1
 answered on 15 Mar 2014
6 answers
624 views
Hi Telerik's team,

I am trying build a radgrid where data should to be grouped in two levels. How can I do this using GroupHeaderTemplate ?
Below is my radgrid. It is grouped by code Primary Key from data. But I need to group then inside a parent group setting header group like a template.

Yet, I just  grouped by ID. How can I group by ParentGroupId too?

<telerik:RadGrid ID="radgrid" runat="server" AutoGenerateColumns="false"
Skin="Silk" Width="90%" Visible="false" AllowMultiRowSelection="true"
AllowSorting="true" AllowPaging="true" ShowStatusBar="true" EnableLinqExpressions="false"
OnItemDataBound="radgrid_ItemDataBound" OnDataBound="radgrid_DataBound"
        CellSpacing="0" GridLines="None" OnPageIndexChanged="radgrid_PageIndexChanged" >
            
<ClientSettings AllowDragToGroup="true" EnableRowHoverStyle="true" AllowColumnsReorder="true"
           Selecting-AllowRowSelect="true" ClientEvents-OnRowDeselected="UnCheckGroup"
  ReorderColumnsOnClient="true" ColumnsReorderMethod="Reorder">
       <Animation AllowColumnReorderAnimation="true" AllowColumnRevertAnimation="true"></Animation>
    </ClientSettings>
    <MasterTableView DataSourceID="ods" DataKeyNames="ID" GroupLoadMode="Client"
             GroupsDefaultExpanded="false" GroupHeaderItemStyle-HorizontalAlign="Left">
            <GroupHeaderTemplate>
          <asp:Label runat="server" ID="Label1" ForeColor="#2F4F4F" Text="Id: "></asp:Label>
          <asp:Label runat="server"
                ID="Label3" Text='<%# (((GridGroupHeaderItem)Container).AggregatesValues["ID"]) %>'></asp:Label>
                       <asp:Label runat="server" ID="Label2" ForeColor="#2F4F4F" Text="Date: "></asp:Label>
           <asp:Label runat="server"  
        ID="Label6" Text='<%# (((GridGroupHeaderItem)Container).AggregatesValues["Date"]) %>'></asp:Label>
           <asp:Label runat="server" ID="Label7" ForeColor="#2F4F4F" Text="Price: $"></asp:Label>
           <asp:Label runat="server"
        ID="Label8" Text='<%# (((GridGroupHeaderItem)Container).AggregatesValues["Price"]) %>'></asp:Label>
       </GroupHeaderTemplate>
       <Columns>
           <telerik:GridBoundColumn DataField="ProductName" UniqueName="ProductName"
HeaderText="Product">
                 <HeaderStyle HorizontalAlign="Center" />
                 <HeaderStyle HorizontalAlign="Center" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Amount" UniqueName="Amount" HeaderText="Amount">
                        <HeaderStyle HorizontalAlign="Center" />
                        <HeaderStyle HorizontalAlign="Center" />
            </telerik:GridBoundColumn>
       </Columns>
       <GroupByExpressions>
             <telerik:GridGroupByExpression>
                   <GroupByFields>
                         <telerik:GridGroupByField FieldName="ParentGroupID"/>
                    </GroupByFields>
            </GroupByExpressions>
            <telerik:GridGroupByExpression>
                    <SelectFields>
                         <telerik:GridGroupByField FieldName="ID"/>
                    </SelectFields>
                    <SelectFields>
                         <telerik:GridGroupByField FieldName="Date"/>
                    </SelectFields>
                    <SelectFields>
                         <telerik:GridGroupByField FieldName="Price"  FormatString="{0:C}"/>
                    </SelectFields>
                    <GroupByFields>
                         <telerik:GridGroupByField FieldName="ID"/>
                    </GroupByFields>
            </telerik:GridGroupByExpression>
        </GroupByExpressions>
         </MasterTableView>
   </telerik:RadGrid>
<asp:ObjectDataSource ID="ods" runat="server" SelectMethod="ListItems"
                            TypeName="...my namespace ..."></asp:ObjectDataSource>

Rafael
Top achievements
Rank 1
 answered on 14 Mar 2014
4 answers
424 views
Can I modify the Display text value of DataField value of GridBoundColumn ?
I have "4-code"
and need to display just "Code"


Seems like there should be in-house property to handle this rather than in the data retrieval or the subsequent JavaScript display.
Dan
Top achievements
Rank 1
 answered on 14 Mar 2014
8 answers
170 views
Hello,

I created a simple RadGrid with a NestedViewTemplate and a SqlDataSource1, no code behind involve.  When I click
 expand link and show the static text inside the NestedViewTemplate, I get javascript runtime error:

Unhandled exception at line 6, column 74203 in http://localhost:49573/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=;;System.Web.Extensions,+Version=4.0.0.0,+Culture=neutral,+PublicKeyToken=31bf3856ad364e35:en-US:d618f02c-bda7-40f1-bb64-308e08f719c3:ea597d4b:b25378d2;Telerik.Web.UI:en-US:ac331549-681c-4402-9fb7-09ec3c579ee8:16e4e7cd:f7645509:22a6274a:ed16cbdc:58366029:24ee1bba:f46195d3:2003d0b8:88144a7a:1e771326:aa288e2d

0x800a138f - JavaScript runtime error: Unable to set property 'control' of undefined or null reference


<
telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
            </Scripts>
        </telerik:RadScriptManager>
        <script type="text/javascript">
            //Put your JavaScript code here.
        </script>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        </telerik:RadAjaxManager>
        <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1" AllowPaging="true">
            <MasterTableView AutoGenerateColumns="False" DataKeyNames="ProductID" DataSourceID="SqlDataSource1">
                <Columns>
                    <telerik:GridBoundColumn DataField="ProductID" DataType="System.Int32" FilterControlAltText="Filter ProductID column" HeaderText="ProductID" ReadOnly="True" SortExpression="ProductID" UniqueName="ProductID">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Name" FilterControlAltText="Filter Name column" HeaderText="Name" SortExpression="Name" UniqueName="Name">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ProductNumber" FilterControlAltText="Filter ProductNumber column" HeaderText="ProductNumber" SortExpression="ProductNumber" UniqueName="ProductNumber">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Size" FilterControlAltText="Filter Size column" HeaderText="Size" SortExpression="Size" UniqueName="Size">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Color" FilterControlAltText="Filter Color column" HeaderText="Color" SortExpression="Color" UniqueName="Color">
                    </telerik:GridBoundColumn>
                    <telerik:GridCheckBoxColumn DataField="MakeFlag" DataType="System.Boolean" FilterControlAltText="Filter MakeFlag column" HeaderText="MakeFlag" SortExpression="MakeFlag" UniqueName="MakeFlag">
                    </telerik:GridCheckBoxColumn>
                </Columns>
                <NestedViewTemplate>
                    dssfaddfssd
                </NestedViewTemplate>
            </MasterTableView>
        </telerik:RadGrid>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:AdventureWorks2008R2ConnectionString %>" SelectCommand="SELECT [ProductID], [Name], [ProductNumber], [Size], [Color], [MakeFlag] FROM [Production].[Product]"></asp:SqlDataSource>

If above code added to a RadControlWebApp project, it is running fine.  But if it added to a existing ASP.NET
 Web Forms Application. Also, I made sure that Telerik.Web.UI and Skins are added to references and web.config

What am I missing here to make NestedViewTemplate to work? It stopped working in Q3 2013 after upgraded.

Thanks in advance
Sam
David Hoffman
Top achievements
Rank 1
 answered on 14 Mar 2014
6 answers
168 views
hi
i have 3 table:  1- Master table    2- Detail table(0)    3- Detail table(1)
when i want update detailTable(0) i can:

int ParentId = RadGrid1.MasterTableView.DataKeyValues[

int.Parse(e.Item.OwnerTableView.ParentItem.ItemIndexHierarchical)]["Id"].ToString();

but when i want update DetailTable(1) i can not use this code :

 

int ParentId = RadGrid1.MasterTableView.DetailTables[0].DataKeyValues[int.Parse(e.Item.OwnerTableView.ParentItem.ItemIndexHierarchical)][

"Id"].ToString();
    // erro ocured and i can not use :((

maybe my method completly is uncurrect.

 

Jeffrey Sanford
Top achievements
Rank 2
 answered on 14 Mar 2014
3 answers
148 views
Hi All,

I've implemented the following functionality in my RadGrid:
http://www.telerik.com/help/aspnet-ajax/grid-google-like-filtering.html

It works well, but it appears to auto-fill the entire value when a user would like to select a subset.  For example, if we have days of the week in the ComboBox the user would like to be able to type "sday" and get Wednesday and Thursday back.  Is this at all possible?

Thanks,
Mark
Mark
Top achievements
Rank 1
 answered on 14 Mar 2014
2 answers
99 views
Hi All,

One of the Users noted that the input cursor in RadComboBoxes is Italicized, as in it appears like this: /

Is there a way to straighten it?

Thanks,
Mark
Mark
Top achievements
Rank 1
 answered on 14 Mar 2014
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?