Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
147 views
As we all know, RadGrid has many amaing features. But I also find that there are some things missing that feels like it should really have been there form the begining. On of these things, as far as I know, is the inability to differentiate between Updates and Inserts when it comes to editing in the RadGrid. What I mean is something simple like say a Grid with 3 columns where all 3 should be editable when you create a new record, but only 2 of them should be editable on updates (for whatever reason that might be).

This feature has been available in the Microsoft control for as long as I can remember, why is this not the case in the RadGrid? Is it just missing, or is there a good reasons for why it is not available in an easy maintainable way? There are some ways you can do this in code, but that really does seem more like a work around, rather than a really good solution to handle it. Perhaps I am a bit old fashioned, but I don't really like having to write a lot of "GUI code" for stuff that should be built in, mainly because it often gets quite hard to follow, and requires a lot of work to maintain.

So, assuming this feature isn't available and that I have just missed it, what is the best way to implement this, in a way that isn't to much of a nightmare to maintain and implement? Any why isn't it there in an easy way to begin with, I don't think that we can be the only ones with this problem?
Tsvetina
Telerik team
 answered on 21 Oct 2010
1 answer
95 views
Radgrid don't bind after on need datasource. What do I do? 
We are not allowed to databind after on need data source.\
Any suggestions? Because my controls needs to be bind to the datasource and now its causing an error because
I put the method the fills my control with data in the onNeedDataSource and as I have said it's not Binding.
Thanks
Pavlina
Telerik team
 answered on 21 Oct 2010
1 answer
60 views
I have used two rad window in one window pdf as its content in second window ui for sending mail. But the window containing pdf comes over window for ui of mail.

Please help me.

Thanks in advance
Shinu
Top achievements
Rank 2
 answered on 21 Oct 2010
3 answers
301 views
Hello,

Is it possible for a RadNumericTextBox to accept two different decimal separators dot and comma ?

Thanks,

Gautier
arnaud
Top achievements
Rank 1
 answered on 21 Oct 2010
1 answer
89 views
Hi, i've modified LinkManager Dialog by adding a checkBox like that
<td class="reLabelCell">
    <label for="LinkCheckTrace" class="reDialogLabel">
        <span>
            <script type="text/javascript">document.write(localization["CheckTrace"]);</script>
        </span>
    </label>
</td>
<td class="reControlCell">
     <asp:CheckBox ID="LinkCheckTrace" runat="server" />
</td>
and related javascript code to handle it.

But i have a problem with localize the label text.
Can i access to localization[] array to add custom strings?
Or are there any other solution to localize my labels?
I've also tried to do something like that:
<td class="reLabelCell">
    <label for="LinkCheckTrace" class="reDialogLabel">
        <span>
            <%$ Resources: CheckTrace%>
        </span>
    </label>
</td>
<td class="reControlCell">
    <asp:CheckBox ID="LinkCheckTrace" runat="server" />
</td>
With this code the dialog window is opened and shows nothing but the loading image.

Any suggestion??
Dobromir
Telerik team
 answered on 21 Oct 2010
1 answer
57 views
Hi,

I came accross this issue with the Hierarchial Radgrid, that when the grid data is grouped by a particular column and exported to the Excel sheet, the Child table rows are not exported properly. For all the subesquent parent rows, only the child table rows of the first parent row is repeated.

Do anyone have a solution to this issue. I am using ChildLoadMode.ServerBind before exporting.

Thanks,
Manish
Marin
Telerik team
 answered on 21 Oct 2010
2 answers
159 views
I have a rad grid that I am using the needdatasource event to populate.
I have a linq query that returns a set of information.
I refered to this link for aid: http://www.telerik.com/help/openaccess-orm/openaccess-tasks-howto-execute-query-anonimous-type.html
When I run my code I get an ugly error:
"

DataBinding: 'System.Data.Linq.SqlClient.ObjectReaderCompiler+Group`2[[<>f__AnonymousType1`4[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], TIPWebIT, Version=2010.1.415.0, Culture=neutral, PublicKeyToken=null],[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]' does not contain a property with the name 'ItemNumber'.

"

Here is the grid:

 

 

 

<telerik:RadGrid ID="RadGridInventory" runat="server" AllowPaging="True" AllowSorting="True"
          GridLines="None" OnNeedDataSource="RadGridInventory_NeedDataSource" 
          AutoGenerateColumns="False">
          <MasterTableView CommandItemDisplay="None">
              <CommandItemSettings ExportToPdfText="Export to Pdf" />
              <Columns>
                  <telerik:GridTemplateColumn DataField="ItemNumber" HeaderText="Product Number" SortExpression="ItemNumber"
                      UniqueName="ItemNumber">
                      <ItemTemplate>
                          <asp:Label ID="ItemNumberLabel" runat="server" SkinID="EditForms" Text='<%# Eval("ItemNumber") %>' />
                      </ItemTemplate>
                  </telerik:GridTemplateColumn>
                  <telerik:GridTemplateColumn DataField="ItemName" HeaderText="Product" SortExpression="ItemName"
                      UniqueName="ItemName">
                      <ItemTemplate>
                          <asp:Label ID="ItemNameLabel" runat="server" SkinID="EditForms" Text='<%# Eval("ItemName") %>' />
                      </ItemTemplate>
                  </telerik:GridTemplateColumn>
                  
              </Columns>
          </MasterTableView>
      </telerik:RadGrid>

Here is the linq to sql statement that is used to populate the grid:
protected void RadGridInventory_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
       {
           TIPWebITLibrary.DAL.TIPWebITDataContext DC = new TIPWebITLibrary.DAL.TIPWebITDataContext();
           var RoomInventory = (from items in DC.tblTechItems
                                join inventory in DC.tblTechInventories on items.ItemUID equals inventory.ItemUID
                                where inventory.EntityTypeUID == 2 && inventory.EntityUID == Convert.ToInt32(HiddenFieldEntity.Value)
                                group items.ItemNumber by
                                new { items.ItemNumber, items.ItemName, inventory.EntityTypeUID, inventory.EntityUID } into g
                                select g);
           this.RadGridInventory.DataSource = RoomInventory.ToList();
       }

Any ideas on what I am doing wrong here?


Here is the result set when I run my linq statement in LinqPAD:

Key=

{ ItemNumber = 1251341, ItemName = C510 Webcam, EntityTypeUID = 2, EntityUID = 1 }

ItemNumber

1251341

ItemName

C510 Webcam

EntityTypeUID

2

EntityUID

1

 

1251341

Key=

{ ItemNumber = 1251343, ItemName = MacBook, EntityTypeUID = 2, EntityUID = 1 }

ItemNumber

1251343

ItemName

MacBook

EntityTypeUID

2

EntityUID

1

 

1251343

1251343

Vasil
Telerik team
 answered on 21 Oct 2010
5 answers
119 views
Hi!
Is there any way to make custom configurations of formatting options in the toolbar?
For example, I would like the existing "Heading 2" (or a completely custom item) cause "Selected text" to be replaced with "<h2><span>Selected text</span></h2>" instead of just "<h2>Selected text</h2>".

Any input on this is appreciated.

/Dan
Dobromir
Telerik team
 answered on 21 Oct 2010
1 answer
70 views
I need to style the last item in the list differently than the other items in the List (needs a dropshadow)

Would you guys be able to add that as a feature request?

Steve
Yana
Telerik team
 answered on 21 Oct 2010
2 answers
85 views
I upgraded a project to the latest version 2010.2.929.35 and I had Radcombobox that when changed updated a grid with a Linqdatasource but now changing the combobox won't refresh the grid.  any thoughts on what may have happened?

this is in my masterpage
<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 Path="Scripts/SessionKeepalive.js" />            
        </Scripts>
    </telerik:RadScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>

 

 

 

this is the combobox
 

 

<telerik:RadComboBox ID="_Stage" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="_Stage_SelectedIndexChanged">
                    <Items>
                        <telerik:RadComboBoxItem runat="server" Text="Pre-Proposal" Value="Pre-Proposal" />
                        <telerik:RadComboBoxItem runat="server" Text="Proposal" Value="Proposal" />
                        <telerik:RadComboBoxItem runat="server" Text="Active" Value="Active" />
                    </Items>
                </telerik:RadComboBox>

 

 

 

grid header
 

 

<telerik:RadGrid ID="_opps" runat="server" DataSourceID="LinqDataSource1" 
            GridLines="None" AllowFilteringByColumn="True" AllowSorting="True" 
        Width="1600px" onitemdatabound="_opps_ItemDataBound" 
        onexcelmlexportrowcreated="RadGrid1_ExcelMLExportRowCreated" 
        onexcelmlexportstylescreated="RadGrid1_ExcelMLExportStylesCreated" 
        onitemcommand="_opps_ItemCommand"  
        onitemcreated="_opps_ItemCreated" >            
            <ExportSettings ExportOnlyData="True" IgnorePaging="True" 
                OpenInNewWindow="True">
                <Excel Format="ExcelML" />
            </ExportSettings>
<MasterTableView AutoGenerateColumns="False" DataSourceID="LinqDataSource1" 
                DataKeyNames="OPPORTUNITYID" UseAllDataFields="True">

 

 

 

 

LinqDatasource where parameters
 

<WhereParameters>
                    <asp:ControlParameter ControlID="_Stage" Name="STAGE" 
                        PropertyName="SelectedValue" Type="String" />
                    <asp:ControlParameter ControlID="_Type" Name="TYPE" 
                        PropertyName="SelectedValue" Type="String" />
                </WhereParameters>

 

I setup the ajax using

private object Content(string id)        
{            
   return Page.Master.FindControl(id);
}
protected void Page_Load(object sender, EventArgs e)
{
   AjaxManager.AjaxSettings.AddAjaxSetting(_opps, _opps);
   AjaxManager.AjaxSettings.AddAjaxSetting(_opps, _number);
}
Pavlina
Telerik team
 answered on 21 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?