Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
98 views
Help me on this issue. Drop down of the page size with all values are populating very good but displaying behind of the popup.

Thank you 
Lakshman
Top achievements
Rank 1
 answered on 10 Jan 2012
1 answer
169 views
Hello All,
      i added one radgrid dynamically in asp.net application. in the radgrid i am using the form template to insert and update the record, i have three columns in the grid like Col1,Col2,Col3. all are the textbox columns. Col3 have one radimagebutton. if i click the radimagebutton it will open the radwindow and i pick some image after click ok button in the radwindow it will bind the value in Col3 textbox, this functionality is fine, but my question is

1. i entered some value in col1 and col2 textbox
2. after bind some image value in the Col3 textbox. col1 and col2 textbox values are gone because of postback
3. above scenario i handle in insert button through grid_itemCommand event, if i insert the form template all values are persist
4. but when i update that time i cannot able to persist the col1 and col2 values, col3 values are there
5. when i click the insert button in grid_itemcommand event the item will come as grideditformitem, so i can able to get the entered value using
GridEditFormItem item = (GridEditFormItem)e.Item;
string col1value=item.FindControl("Col1textboxid").Text;
and rebind to the corresponding textbox
6. when i click the update button in grid_itemcommand event the item will come as griddataitem, here i cannot find the control and cannot get the value, please tell me to persist the value

Kindly tell me how to resolve this issue
Andrey
Telerik team
 answered on 10 Jan 2012
1 answer
123 views
I have a listview that has gaps in the display (see attached). Why?
Here is the code displaying the listview

<telerik:RadListView ID="RadListView1" runat="server" AllowPaging="True" ItemPlaceholderID="PlaceHolder1"
    OnItemCreated="RadListView1_ItemCreated" DataKeyNames="id,filenameextension,typeAbbr,title" onneeddatasource="RadListView1_NeedDataSource" >
    <LayoutTemplate>
        <div class="RadListView RadListViewFloated RadListView_Windows7">
            <telerik:RadDataPager ID="RadDataPager1" runat="server" Skin="Sitefinity" PageSize="25"
                PagedControlID="RadListView1" BorderWidth="0" OnFieldCreated="RadDataPager1_FieldCreated">
                <Fields>
                    <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                    <telerik:RadDataPagerButtonField FieldType="Numeric" />
                    <telerik:RadDataPagerButtonField FieldType="NextLast" />
                    <telerik:RadDataPagerPageSizeField PageSizeText="Page size: " />
                    <telerik:RadDataPagerGoToPageField CurrentPageText="Page: " TotalPageText="of" SubmitButtonText="Go"
                        TextBoxWidth="15" />
                    <telerik:RadDataPagerTemplatePageField>
                        <PagerTemplate>
                            <div style="float: right">
                                <b>Total Number of Assets Found:
                                    <asp:Label runat="server" ID="TotalItemsLabel" Text="<%# Container.Owner.TotalRowCount%>" />
                                </b>
                            </div>
                        </PagerTemplate>
                    </telerik:RadDataPagerTemplatePageField>
                </Fields>
            </telerik:RadDataPager>
            <asp:PlaceHolder id="PlaceHolder1" runat="server" />
        </div>
    </LayoutTemplate>
    <ItemTemplate>
        <div style="float: left; width: 200px">
                <div class="myClass" style="border: 0px; white-space: normal; margin: 5px 5px 5px 5px; padding: 2px 2px 2px 2px; background: #eeeeee; text-align: center; width: 190px;">
                    <asp:HyperLink ID="HyperLink1" runat="server">
                        <telerik:RadBinaryImage ID="RadBinaryImage1" runat="server" AutoAdjustImageControlSize="False"
                            CssClass="myClass" ImageUrl='<%# Eval("thumbUrl") %>' ResizeMode="Fit" AlternateText="Click to view preview"
                            ToolTip="Click to view preview" Width="150px" Height="150px" />
                    </asp:HyperLink><br />
                <asp:CheckBox ID="chkImage" runat="server" style="float: left;"/><small><asp:HyperLink ID="lnkAsset1" runat="server" Visible="false" style="float: left;" >
                                    </asp:HyperLink><asp:HyperLink ID="lnkAsset2" runat="server" style="float: left;" Visible="false" >
                                    </asp:HyperLink><asp:HyperLink ID="lnkAsset3" runat="server" style="float: left;" >
                                    </asp:HyperLink></small>
                <asp:HiddenField ID="hiddenAssetId" Value='<%# Eval("id") %>' runat="server" />
            </div>
        </div>
    </ItemTemplate>
    <EmptyDataTemplate>
        No Assets Found
    </EmptyDataTemplate>
</telerik:RadListView>
Richard
Top achievements
Rank 1
 answered on 10 Jan 2012
4 answers
65 views
Hi,

When using IE9 the editor sometimes inserts html in the parent window.
Try the following in your demo (ContentAreaMode='Div'):
1. Select all text in the editor (Ctrl-A)
2. Press delete to clear all text
3. Press the "Numbered List" toolbar menu item.

When doing this, and other cases to but this was an easy way to demonstrate the problem, the "1. " text is inserted at the top of the entire page!!!
This breaks our entire application...

Regards
Caesar
Andreas
Top achievements
Rank 1
 answered on 10 Jan 2012
2 answers
490 views
Here is what I am doing:

RadGrid has a GridButtonColumn. When column hyperlink is clicked (OnItemCommand) I do among other things Response.Wirte and it blows up inside Telerik client code with famous error:

Error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when ....

What is workaround for this? I believe it has to do something with making hyperlinks to do postback, right?

-Stan

Stan
Top achievements
Rank 1
 answered on 10 Jan 2012
4 answers
366 views

Once button on the form is clicked, the grid is groupped with something like:

GridGroupByExpression expression = new GridGroupByExpression();
            expression.SelectFields.Add(new GridGroupByField
            {
                FieldName = "orderNumber",
                HeaderText = "Order",
                FormatString = "<strong>{0}</strong>"
            });
            myGgrid.MasterTableView.GroupByExpressions.Add(expression);
        }

That works fine, but the groups cannot be collapsed or expanded (if I set GroupsDefaultExpanded="false" and they are collapsed by default). When group expand/collapse is clicked, the gird posts back  but that does not change grouping. Where would I look to fix it?
Stan
Top achievements
Rank 1
 answered on 10 Jan 2012
8 answers
138 views
We've got a scheduler that is inside of an ajax panel. People can hit next and previous to look at different schedule combinations. However, when a person clicks Print (which does an export), the next time they click Next or Previous to view another schedule, the scheduler changes it's width. It's like it goes to what it shrunk itself down to in order to fit on a page.

Here is a video: http://screencast.com/t/RiKad4nV4

Here is what I've got for the scheduler settings:
<telerik:RadScheduler ID="sched" SelectedDate="1/2/2000" runat="server" ShowHeader="false"
                    AllowDelete="false" AllowEdit="false" AllowInsert="false" FirstDayOfWeek="Sunday"
                    ReadOnly="true" SelectedView="WeekView" ShowAllDayRow="true" ShowViewTabs="false"
                    DataDescriptionField="Description" DataEndField="EndTime" DataStartField="StartTime"
                    DataSubjectField="Name" DataKeyField="Key" Height="100%" RowHeight="17px" ShowFooter="false"
                    OnClientNavigationCommand="NavigationCommand" Localization-AllDay="Online" Width="100%">
                    <WeekView ColumnHeaderDateFormat="ddd" ReadOnly="true" EnableExactTimeRendering="true" />
                    <ExportSettings OpenInNewWindow="true" FileName="Scheduler">
                        <Pdf PageTitle="Schedule" Author="Telerik" Creator="Telerik" Title="Schedule" PageHeight="8.5in"
                            PageWidth="11in" />
                    </ExportSettings>
                </telerik:RadScheduler>

Adam
Top achievements
Rank 1
 answered on 10 Jan 2012
1 answer
84 views
Hi,

I have copied the radRotator Pager Integration page from the examples. I have managed to get it to display my own images, but for some or other reason, the page numbers do not appear as they do in the example. In the example, they appear as numbers in little buttons, but mine show as plain text.

Please see the attached images.

Does anyone know what I am doing differently to the example? I also want the little buttons.


Thanks,
Pierre
Richard
Top achievements
Rank 1
 answered on 10 Jan 2012
5 answers
1.2K+ views
I tried the "borderstyle="none" but it didn't work. Thanks!
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
 answered on 10 Jan 2012
6 answers
189 views

When I try to switch between views on my scheduler I get the following Java error and the scheduler does not render, It works fine untill i switch between  day, week or month views.

as follows 

Microsoft JScript runtime error: '0._preInitialized' is null or not an object
Failes in the followin JS script

 

Telerik.Web.UI.RadScheduler._preInitialize=

function(_10d,_10e,_10f,_110,_111){

 

 

var _112=$("#"+_10d);

 

 

if(_112[0]._preInitialized==true&&!$telerik.isIE){

 

 

return;

 

}

 

line in bold is where the error happens.

I assume I must not have set somthing but just cant find it.

Julian

Plamen
Telerik team
 answered on 10 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?