Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
78 views

Hi,

I am having trouble using RadGrid on IE7 that is when I am selecting only one row to display by setting display none property of all the rows except one (that needs to be displayed) the the header and columns are rendered misaligned, as you can see in figure 1, plus the last column of header is also not displaying completely.

Figure 1

However when I set all the rows to display things are rendered fine (see figure 2) and also when I set only 1st row to display that also works fine as you can see in figure 3



Figure 2


Figure 3

The issue is not reproducible on IE8 and FireFox.

Pavlina
Telerik team
 answered on 08 Jun 2011
2 answers
112 views
Hi,

Following your Online Example for Grid/Self-referencing Hierarchy, I can get the self-referencing to work on my test project...but, the issues I am having are:

I am using Linq to Sql Classes  as my structure.

1. In my case, I set the root level filter to RadGrid1.MasterTableView.FilterExpression = "parentid = 0"This works as expected and only displays root level items, BUT, it never shows any children items b/c they are filtered out b/c of the filter expression.  If I do not set the filter, I can expand the parent items to see the child items, but, the child items also appear as root items since there is no root level filter.

2. This is related to issue 1, when fitlering items at the root level, it never shows/filters any child items, again, b/c of the above filter where it is only showing items where parentid = 0..thus, the linq to sql expression only returns items where parentid = 0.

3. If I do not set the filter condition (which then allows me to see the hierarchal structure) and I filter items, is it possible to always show the parent row if the item itself is supposed to be a child item?  For example, if the filter matches a child item, I want it to show the entire hierarchy of its parents even tho the parent might not match the filter condition.

Now, If I use a Parent-Child table structure, and not Self-Referencing is the following possible:

1.  When filtering on a child table, it only filters the items under the currently expanded parent.  Can I filter/show only parent items  (along w/ child items) which child tables that match my filter criteria?

---

Also, how does the paging work w/ self-referencing..ie, if only displaying 25 items per page, will it grab all child items for all the root level items?

On a side note, we are currently on version 2010.3.1215.40 of the RadControls for ASP.NET AJAX, so please let me know if there were known issues for the past version.

Thanks

Iana Tsolova
Telerik team
 answered on 08 Jun 2011
1 answer
174 views
Hi,

How can I have RibbonBarButtons on the same RadRibbonBar with client and server side events.

Button ID = "Open" - client side event
Button ID =  "ChangeUser" - server side event

The problem I have is that "Open" causes a RadWindow to open on the client side via window.radopen, but when I add the server side event "onbuttonclick" it causes a postback and while the window.radopen is called the postback causes it to disappear again. I somehow need to cancel postback when the client event is handled. Is there an easy way to do this?

<telerik:RadRibbonBar ID="MainRibbon" runat="server" SelectedTabIndex="0" Skin="Windows7"
        AccessKey="O" 
        onclientbuttonclicked="ButtonClicked"
onbuttonclick="MainRibbon_ButtonClick">
        <telerik:RibbonBarTab Text="File">
            <telerik:RibbonBarGroup Text="Patients">
                <Items>
                    <telerik:RibbonBarButton Text="Open patient" Size="Large" ImageUrlLarge="../Images/Open.png" ID="Open" />
                </Items>
            </telerik:RibbonBarGroup>
            <telerik:RibbonBarGroup Text="Users">
                <Items>
                    <telerik:RibbonBarButton Text="Change user" Size="Large" ImageUrlLarge="../Images/ChangeUser.png" ID="ChangeUser" />
                    <telerik:RibbonBarButton Text="Log off" Size="Large" ImageUrlLarge="../Images/ArrowLeft.png" ID="LogOff" />
                </Items>
            </telerik:RibbonBarGroup>
        </telerik:RibbonBarTab>
    </telerik:RadRibbonBar>


Regards,

Andrew
Simon
Telerik team
 answered on 08 Jun 2011
3 answers
138 views
Hi Team

My English is not that good sorry.

I popluate my radtreeview from a sqldatasource works 100%.
Now on the right click contextmenus i want to open a radwindow to add data to sql database to update the treeview nobes

I use this code to open a Radwindow

  RadWindow window1 = new RadWindow();
        window1.NavigateUrl = "frm_Catalogue_Structure.aspx";
        window1.VisibleOnPageLoad = true;
        window1.Width = 400;
        window1.Height = 500;
        this.form1.Controls.Add(window1);








How can i trigger this call from one of the right click contextmenu list
Herman
Veronica
Telerik team
 answered on 08 Jun 2011
2 answers
49 views
For example:
1. I put row(index) 1 in edit mode
2. page posts back and I rebind a new datasource
3. after postback row still expanded and in edit mode even.

I want to clear all the expanded and edit mode items after post back. 

I call this code from a button's onclick event:
 private void LoadGrid(Int64 p) 
        { 
            grd.Rebind(); 
            grd.DataSource = BL.GetAll(p); 
            grd.DataBind(); 
        } 
Jeremy
Top achievements
Rank 1
 answered on 08 Jun 2011
1 answer
76 views

Hello)) I'm using dnn and this example

http://demos.telerik.com/aspnet-ajax/upload/examples/async/ajaxprocessing/defaultcs.aspx?product=asyncupload

! I can not asynchronously load an image! It boots only after postback (But in example postback not required)) please explain why it is so)

Peter
Telerik team
 answered on 08 Jun 2011
1 answer
229 views
Scheduler > Telerik vs DevExpress

Anyone done comparison and have pros and cons?
What would you recommend?
Peter
Telerik team
 answered on 08 Jun 2011
3 answers
63 views
in web application
i have calender and scheduler control, i want to change calender date according to scheduler date change,
but if i changed calender date then it will reflect to scheduler .

Thanks
Veronica
Telerik team
 answered on 08 Jun 2011
5 answers
263 views
Hi Telerik

I am using telerik:GridGroupByExpression.

My code is following..........

<telerik:RadGrid AlternatingItemStyle-CssClass="even" Width="100%" OnItemCreated="radGridComments_ItemCreated"
                   OnColumnCreated="radGridComments_ColumnCreated" OnItemDataBound="radGridComments_ItemDataBound"
                   ID="radGridComments" runat="server" AutoGenerateColumns="true" GridLines="none">
                   <mastertableview groupsdefaultexpanded="true">
               <GroupByExpressions>
                   <telerik:GridGroupByExpression>
                       <SelectFields>
                        <telerik:GridGroupByField FieldName="ItemName" HeaderText="" />
                       </SelectFields>
                       <GroupByFields>
                       <telerik:GridGroupByField FieldName="ItemName" SortOrder="Ascending" />
                       </GroupByFields>
                   </telerik:GridGroupByExpression>
               </GroupByExpressions>
           </mastertableview>
                   <clientsettings>
               <Resizing ResizeGridOnColumnResize="false" AllowColumnResize="true" />
           </clientsettings>
               </telerik:RadGrid>

It display fine on page load as following.



As soon as I click on export, export to excel is working fine. but the data is now displaying like



Please see the GridGroupByField in both images. Please look in to this issue. I don't want GridGroupByField name like with

"ItemName:" it must be same as before like "Please indicate the region in which you currently work."



Thanks
Gaurav
Iana Tsolova
Telerik team
 answered on 08 Jun 2011
1 answer
138 views
I want to use a radcombobox to filter a radgrid column.  There is a great example of doing this and I can tweak the example to use a checkbox plus label template in the combo box.

I am running into problems when the column is not just a string field but a multivalued field.  For example I have a Person entity and that person has a property that is a list<School>.  We bind the column to the Schools property and use a repeater in the template to display the schools.  I can successfully build the combobox but am having trouble filtering for records where people only have the selected schools.
Veli
Telerik team
 answered on 08 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?