Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
54 views
Hi,

I used the radgrid specifying width for the horizontal scroll bar to appear along with filter, sort and paging options in my page. There is no problem when the page is viewed in IE8 and Firefox. However, In IE7, the page has some extra space. (Please refer the screenshots attached).

There are other controls and validators in the page. And when I try to save and the validators fail, I get the grid aligned perfectly. (Since it is a validator level aligning, there is no postback to get the grid alignment.)

I have no clue why this occurs. This occurs only in a radgrid. If I use a regular grid, this problem does not occur.

Does anyone face the same issue? Any replies are welcome!

~ Gsk
Charles
Top achievements
Rank 2
 answered on 17 Mar 2011
3 answers
191 views
Hey,
can somebody provide me with a sample or link to a virtual scrollable radgrid with working filters.
I have the problem, that filter only filters first page of grid, because grid's current page index seems to be lost (is lost!) when filtering on page N of the grid, and therefore no result is found, as long as you are not searching for objects on the first page of the grid.

Any help would be appricated. Thx in advance.
Veli
Telerik team
 answered on 17 Mar 2011
3 answers
86 views
i am creating webpart for sharepoint 2010 and using ajax for grid updating and your other controls, for this i need radajaxmanger. there can be only one radajaxmager on the page.But other webparts can also use ajax with the radajaxmager already added or sometimes without it. What should I do in this situation? If I add radajaxmanerproxy to webpart, but  radajaxmaner can be not added in other webparts. What is the solution?
Marian
Top achievements
Rank 1
 answered on 17 Mar 2011
2 answers
110 views
Is there any way of removing the font-colour hex values and dark/light previews in the footer of the colour picker?
My client doesn't want to see this - they are non-technical, after all.
Can it be hidden or removed completely, please?
Andy
Top achievements
Rank 1
 answered on 17 Mar 2011
2 answers
128 views
I am new to telerik controls and evaluating the telerik radgrid for one of our applications. We do use the grid in a number of places for server side binding but for this requirement I need to be able to build editable grid. Here are some features which I would like to achive.

1.I need to be able to perform client side binding of radgrid which calls a WCF method.
  WCF method gets a stored proceure output that is cached  in IIS, Filters the resultset based on some conditions and then returns the filtered list to the   client. This binding call would be called once every 10 seconds using a timer to refresh the data on the grid.
 
2.Should be able to perform inline editing of the radgrid and inline adding of new row. During edit/insert mode, the timer that calls grid refresh would be disabled. I need to be able to call cusom WCF methods for actual add/update and delete operations. These WCF methods inturn would call some sql stored procs. Can I use radgrid_oninsert, radgrid_ondelete and radgrid_onupdate server side event handlers for add/update/delete operations ?
Not sure if these would work as my binding of grid is done on the client side. If this does not work, then how do I achive this kind of inline editing on the client side ?

3.Ability to perform edit/delete operations based on some conditions. Most likely I'll have a "Editable" column in data. This column won't be bound to the grid but I should be able to use the value to decide if edit/delete options should be allowed for the row.
If the value of this column is "false" then edit/delete options should be disabled for the corresponding row in the grid.

4.In edit mode(as well as add new row) , some of columns a)would be free text(text boxes), b)dropdownlists c)textbox with autocomplete ability and d)readonly columns.

5.If I were to perform server side binding and use inline editing features from the server side, then is there a way I can refresh the data on the grid every 10 seconds. This timer will be on the client side and I'll need to be able to call the binding routines of the server side from the client.

Appreciate if you could provide input and point me at some useful telerik tips to implement these requirements.

Thanks & appreciate your response.
cha
Top achievements
Rank 1
 answered on 17 Mar 2011
3 answers
319 views
I have a telerik radgrid with editmode="Inplace" and  with custom images specified for cancel/insert/delete.  I have a button outside the grid that initiates the insert action. I am using this button instead of commanditem template displayed by the telerik grid.

I have these issues.

1.When I click the edit image for a row,  some kind of postback happens but it does not enter into edit mode.
2.When I click the delete image for a row, it asks a alert for delete confirmation and some kind of postback happens, but InquiryGrid_DeleteCommand is not fired.
3.When I click the insert button that is outside the form, it enteres into insert mode, and some of columns are editable,  but the images  displayed are incorrect.  I want to display same update/cancel images for both insert/edit mode. but the image displayed for insert is wrong and  missing image for cancel. Clicking on these images have no action.

If I change the ButtonType to "LinkButton" instead of "ImageButton"  all these actions works as expected.
What am I missing here ? Below is the code for my grid.
Appreciate your help.

<div>
            <telerik:RadGrid ID="InquiryGrid" runat="server" AllowPaging="false" AllowSorting="false"
            AutoGenerateColumns="false" ClientSettings-Scrolling-AllowScroll="true" ClientSettings-Scrolling-EnableVirtualScrollPaging="false"
            EnableEmbeddedSkins="false" EnableViewState="false" GridLines="none"  ImagesPath="Images/"   PagerStyle-AlwaysVisible="true" PagerStyle-Mode="NextPrevAndNumeric" PageSize="400"
            OnNeedDataSource="InquiryGrid_NeedDataSource"
            Skin="Gray" Height="100%"
            OnUpdateCommand="InquiryGrid_UpdateCommand"
            OnDeleteCommand="InquiryGrid_DeleteCommand"
            OnInsertCommand="InquiryGrid_InsertCommand" >
            <ClientSettings>
                <Scrolling AllowScroll="true" SaveScrollPosition="true" UseStaticHeaders="true" />
            </ClientSettings>
            <MasterTableView ClientDataKeyNames="inquiry_id" TableLayout="Fixed" EditMode="InPlace">
                <HeaderStyle Height="25px" />
                 <EditFormSettings>
                    <EditColumn UniqueName="EditCommandColumn" ButtonType="ImageButton"
                    CancelImageUrl="images/edit_cancel.gif"
                    UpdateImageUrl="images/edit_update.gif"
                    InsertImageUrl="images/edit_update.gif" EditText="Edit" InsertText="Insert" UpdateText="Update"
                    >
                    </EditColumn>
                 </EditFormSettings>               
                <columns>
                   <telerik:GridBoundColumn DataField="maturity_range" HeaderText="Maturity Range" SortExpression="maturity_range"
                        UniqueName="maturity_range">
                            <HeaderStyle width="100px" CssClass="th-inquiry-lastupdate_dt" />
                            <ItemStyle width="100px" CssClass="inquiry-lastupdate_dt" />                       
                    </telerik:GridBoundColumn>               
                   <telerik:GridBoundColumn DataField="active" HeaderText="Active ?" SortExpression="active"
                        UniqueName="active">
                            <HeaderStyle width="50px" CssClass="th-inquiry-lastupdate_dt" />
                            <ItemStyle width="50px" CssClass="inquiry-lastupdate_dt" />                       
                    </telerik:GridBoundColumn
                    <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"  EditImageUrl="images/edit.gif">
                    </telerik:GridEditCommandColumn>
                    <telerik:GridButtonColumn ConfirmText="Delete this inquiry?" ConfirmDialogType="RadWindow"
                        ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                        UniqueName="DeleteColumn" ImageUrl="images/delete.gif">
                    </telerik:GridButtonColumn>                   
                </columns>
            </MasterTableView>
            </telerik:RadGrid>
</div>
<br>
<div>
<asp:Button ID="btnAdd" runat="server" CssClass="pc-btn" OnClick="AddNew_Click" Text="Add New" />
</div>
 
 
    protected void AddNew_Click(object sender, EventArgs e)
        {
            InquiryGrid.MasterTableView.IsItemInserted = true;
            InquiryGrid.Rebind();
        }



cha
Top achievements
Rank 1
 answered on 17 Mar 2011
1 answer
97 views
Hello,

I am using Telerik Asynch upload control to upload multiple files.
version: 2010.3.1215.35

I have installed Flash player on local system and on server both.Please refer image [IMG] attached with this post.
whole scenario is same on server and on local, but it is working locally but not on server.

The issue that I am getting on server is, 
when i click upload it promprt for user login and after login the progress indicator never stops loading.

please respond as soon as possible and let us know the setting responsible for that.

Thanks in advance!
Genady Sergeev
Telerik team
 answered on 17 Mar 2011
1 answer
267 views
Dear Telerik Team,

I have a RadTabStrip inside a RadWindow. The RadWindow is set in fixed Width and the AutoSizeBehavior is set to Height. On the OnClientTabSelected event of the RadTabStrip element, I call autoSize() in order to reset the height of the window to fit its new content. I was expecting the window to stay on its fixed width, but despite of the Width restriction, the window's width is reset : the window become larger on every tab change.

Here is the code I use : 

Configuring the RadWindow : 
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableEmbeddedSkins="false">
       <Windows>
           <telerik:RadWindow ID="MyDialog" runat="server" Title="My Title"
               Width="970px" AutoSize="true" AutoSizeBehaviors="Height" ReloadOnShow="true"
               ShowContentDuringLoad="false" Behaviors="Move, Maximize" Modal="true" VisibleStatusbar="false" />
       </Windows>
   </telerik:RadWindowManager>

The opening is done using : 
function ShowProjectEditForm(id, rowIndex) {
                window.radopen("MyPage.aspx?IdItem=" + id, "MyDialog");
                return false;
            }

MyPage.aspx : 
<telerik:RadAjaxPanel EnableAJAX="true" runat="server" ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1">
    <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
 
        <script type="text/javascript">
            function GetRadWindow() {
                var oWindow = null;
                if (window.radWindow) oWindow = window.radWindow;
                else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
                return oWindow;
            }
 
            function autoSizeTheWindow(sender, args) {
                GetRadWindow().autoSize(true);
            }
        </script>
 
    </telerik:RadScriptBlock>
    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1"
        EnableEmbeddedSkins="False" SelectedIndex="0" ReorderTabsOnSelect="True"  ShowBaseLine="true" OnClientTabSelected="autoSizeTheWindow">
        <Tabs>
            <telerik:RadTab Text="Tab1" runat="server" id="Tab1">
            </telerik:RadTab>
            <telerik:RadTab Text="Tab2" runat="server" id="Tab2">
            </telerik:RadTab>
        </Tabs>
    </telerik:RadTabStrip>
    <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" Height="100%"
        Width="100%" BackColor="White">
        <telerik:RadPageView ID="PageView1" runat="server">
            [Many content goes here including content having Width="100%"]</telerik:RadPageView>
       <telerik:RadPageView ID="PageView2" runat="server">
            [Many content goes here including content having Width="100%"]</telerik:RadPageView>
</telerik:RadAjaxPanel>

When  I go from Tab1 to Tab2, the window grow, and grow, and grow ...

In other situations, the Height is set as fixed and the AutoSizeBehavior is set to Width and the same effect is produced.


Do you have already met the solution ?

Cheers,

S.F.
Georgi Tunev
Telerik team
 answered on 17 Mar 2011
1 answer
43 views
Hello,

I'm using the Telerik RadGrid in a declaritive data source mode. The grid makes a web service call to get it's data and perform sorting, filtering and pagination. I have added logic to the DataBinding event in javascript so that I can pass additional parameters to the web service method call. Everything works fine except for one oddity - clicking on the "last page" and the last numeric page button in the gird pagination controls never fire to make the web service call to get the last page. For example, I have a resultset with 33 item in it, and I'm displaying 10 items per page. The grid correctly displays 4 paging buttons, and page 4 sholuld have 3 items to render - but when I click on page 4 the grid does not call the web service. I haven't seen any threads on this - Is this a known issue?
Martin
Telerik team
 answered on 17 Mar 2011
1 answer
210 views
i am trying to sample the following demo code: (vb)
http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/dynamicajaxsettings/defaultcs.aspx?product=grid

everything looks ok when i apply the code to a single page aspx and ascx.  But when i try to put the aspx code in a master.page it throws the following error.  Object ref. not set to an instance.....for the ascx line:

RadAjaxManager.GetCurrent(Page).AjaxSettings.AddAjaxSetting(editButton, Me.Page.FindControl("DivExternalForm"), TryCast(Me.Page.FindControl("RadAjaxLoadingPanel1"), RadAjaxLoadingPanel))

 

 

 

 



subroutine:

 

 

Protected Sub RadGrid1_ItemCreated(ByVal sender As Object, ByVal e As GridItemEventArgs)

 

 

 

 

If TypeOf e.Item Is GridDataItem Then

 

 

 

Dim editButton As ImageButton = TryCast(TryCast(e.Item, GridDataItem)("EditColumn").Controls(0), ImageButton)

 

 

 

 

RadAjaxManager.GetCurrent(Page).AjaxSettings.AddAjaxSetting(editButton, Me.Page.FindControl("DivExternalForm"), TryCast(Me.Page.FindControl("RadAjaxLoadingPanel1"), RadAjaxLoadingPanel))

 

 

 

 

ElseIf TypeOf e.Item Is GridCommandItem Then

 

 

 

Dim insertButton As LinkButton = TryCast(TryCast(e.Item, GridCommandItem).FindControl("btnInitInsert"), LinkButton)

 

 

 

 

RadAjaxManager.GetCurrent(Page).AjaxSettings.AddAjaxSetting(insertButton, Me.Page.FindControl("ctl00_ContentPlaceHolder1_DivExternalForm"), TryCast(Me.Page.FindControl("RadAjaxLoadingPanel1"), RadAjaxLoadingPanel))

 

 

 

 

End If

 

 

 

End Sub

thanks
Doug

 

Radoslav
Telerik team
 answered on 17 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?