Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
173 views
Hi all,
i have placed rad controls(RadTextBox, RadComboBox, etc) inside the asp panel, i am sending instance of asp panel to an other page and finding controls on that page can any one told me or send me a sample code that how can i find RadContols inside asp panel
Elliott
Top achievements
Rank 2
 answered on 10 Jan 2012
1 answer
251 views
Hi friends,
in our application we are using RadGrid and RadToolBar 
radToolBar having buttons like Create,Edit,Delete,Preview
here preview button is for display the selected record 's details in other page using Window.Open();


when i select a single record in radGrid,we are going to enable Edit,Delete,Preview  buttons in Radtoolbar.Otherwise these buttons will be disable mode.


 i am going to select a record by checking a check box in radGrid and will click on Preview button.Now the data will be displayed in Other widow(here i am using Window.Open() to daisplay record)
when i close the popup window which has displayed using Window.Open(), all the buttons in Radtollbar goes to disable mode...
For enable and disable buttons in Toolbar i am using a javascript function like selectAll().
This function will be exeuted when i select a record in RadGrid.

Now how can i call this function on closing popup window

observe the attachments for more clarification...


Richard
Top achievements
Rank 1
 answered on 10 Jan 2012
0 answers
98 views
Hi,

I am writing some tests in IE around our RadTreeView using WatiN. It's great for navigating the tree and expanding nodes but I am having some trouble raising our XML defined context menus via right click.

I've tried simulating a right click using
private void ContextClick(Element span)
{
            NameValueCollection eventProps = new NameValueCollection();
            eventProps.Add("button", "2");
            span.FireEvent("onmousedown", eventProps);
}
where span is the Span DOM element that contains the relevant node name. To my mind this should simulate the user right clicking on the node. All I see happening though is that the node is highlighted yellow. Anything to do with not havign a cursor/mouse position?

I've check the client-side API and I can see a function for making the Context menu disappear but I can't find anything I can call on the page to make it appear. Is there anything like this or can anyone think of a way of simulating a right mouse click on a node using server side code?

Many thanks in advance...
Andy
Top achievements
Rank 1
 asked on 10 Jan 2012
2 answers
120 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
197 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
158 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
83 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
541 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
428 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
184 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?