Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
169 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
130 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
43 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
73 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
223 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
56 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
258 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
131 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
1 answer
223 views
Hello,

I would like to present about 10,000 records per page, I might need paging if more than 10000 records are on the table (Sql Server db).

I need filtering, and sorting, and scrolling.

I know there are several techniques to optimize radgrid, but I would like to know...

Which technique should I look at for loading and displaying data in this case?

Thanks,
Simone
Radoslav
Telerik team
 answered on 08 Jun 2011
3 answers
65 views
ASP.NET v4.0.30319
IE 8.0.7600.16385
Windows 7
Telerik.Web.UI 2011.1.519.40

When i have a
telerik:GridBoundColumn
with these set
AutoPostBackOnFilter="True" ShowFilterIcon="False"
and I use the tab key to move off the filter textbox sometimes it does not filter and sometimes it does. Also if it filters 2 times in a row it locks the textbox from entry until I click another filter icon or paging control on the screen. The tab button navigates to another textbox that does not have AutoPostBackOnFilter or ShowFilterIcon set at all. The text box locking has existed in the last 2 version as well. I just upgraded to test if it fixes it.
Iana Tsolova
Telerik team
 answered on 08 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?