Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
138 views
I have a radgrid with edit form as a popup.
Rdgrid allows multiple popup forms to appear when clicked on rows to edit.
I have 'multipleRowEdit' set to false

How to restrict only one modal popup at a time?
Shinu
Top achievements
Rank 2
 answered on 07 Feb 2013
1 answer
113 views
Hello All

I am using telerik asp.net filter control (http://demos.telerik.com/aspnet-ajax/filter/examples/overview/defaultcs.aspx). I have a requirement where i would like to remove items from filters like let suppose i am filtering on order table it displays orderid, ordername and ordertype the same will be displayed in result grid, it is working. Now if i remove items from grid(columns) like i remove orderid from filters also. I can remove item from grid however can anyone help me how can i remove the item from the filter.

Thanks
Angel Petrov
Telerik team
 answered on 07 Feb 2013
2 answers
90 views
Dear,
please i want to change or delete the node default image by XML ( every node have its own image)

BTW 
the default image like in the attached photo.

best regards.
Plamen
Telerik team
 answered on 07 Feb 2013
3 answers
76 views
Hi

Am new to telerik,  Can someone help to solve the below scenario?

 I have radgrid, in that each row contains the check box and by selecting the checkbox, want to edit the certain column in that row.
Shinu
Top achievements
Rank 2
 answered on 07 Feb 2013
1 answer
75 views
hi all
on the top of my grid view is a combo box , and it is changing the style of my grid. i don't know how did it come in my grid?
how can i remove it?
in this image u can see it :  Img      => the combo box with "Default" text....
when i press the combo box i see all of the telerik style name. how can i remove it?
this is my code :
<telerik:RadGrid OnItemCreated="RadGrid1_ItemCreated" ID="RadGrid1" runat="server"
        AllowPaging="True" Width="800px" DataSourceID="SqlDataSource1"
             AutoGenerateColumns="False" CellSpacing="0" GridLines="None" Skin="Metro">
        <ClientSettings>
            <Selecting AllowRowSelect="true"></Selecting>
            <ClientEvents OnRowDblClick="RowDblClick"></ClientEvents>
        </ClientSettings>
        <MasterTableView ClientDataKeyNames="sid" CommandItemDisplay="Top"
            DataKeyNames="sid" PageSize="12" Width="100%">
            <CommandItemSettings ExportToPdfText="Export to PDF" />
            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"
                Visible="True">
            </RowIndicatorColumn>
            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"
                Visible="True">
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridBoundColumn DataField="sid" HeaderText="sid" ReadOnly="True"
                    SortExpression="sid" UniqueName="sid" Visible="False">
                    <HeaderStyle Font-Bold="True" Font-Names="Tahoma" ForeColor="#08AFEE" />
                    <ItemStyle Font-Bold="False" Font-Names="Tahoma" Font-Size="10pt" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Descr" HeaderText="نمایش"
                    SortExpression="Descr" UniqueName="Descr">
                    <HeaderStyle Font-Bold="True" Font-Names="Tahoma" ForeColor="#08AFEE" />
                    <ItemStyle Font-Bold="False" Font-Names="Tahoma" Font-Size="10pt" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Descr1" HeaderText="کارگردان"
                    SortExpression="Descr1" UniqueName="Descr1">
                    <HeaderStyle Font-Bold="True" Font-Names="Tahoma" ForeColor="#08AFEE" />
                    <ItemStyle Font-Bold="False" Font-Names="Tahoma" Font-Size="10pt" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="duration" HeaderText="مدت اجرا"
                    SortExpression="duration" UniqueName="duration">
                    <HeaderStyle Font-Bold="True" Font-Names="Tahoma" ForeColor="#08AFEE" />
                    <ItemStyle Font-Bold="False" Font-Names="Tahoma" Font-Size="10pt" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="saloonName" HeaderText="سالن"
                    SortExpression="saloonName" UniqueName="saloonName">
                    <HeaderStyle Font-Bold="True" Font-Names="Tahoma" ForeColor="#08AFEE" />
                    <ItemStyle Font-Bold="False" Font-Names="Tahoma" Font-Size="10pt" />
                </telerik:GridBoundColumn>
                <telerik:GridTemplateColumn UniqueName="TemplateEditColumn">
                    <ItemTemplate>
                        <asp:HyperLink ID="EditLink" runat="server" Text="       " CssClass="buy"
                            Height="35px" Width="34px" ></asp:HyperLink>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
            </Columns>
            <EditFormSettings>
               
            </EditFormSettings>
            <CommandItemTemplate>
                <a href="#" onclick="return ShowInsertForm();"></a>
            </CommandItemTemplate>
        </MasterTableView>
        <PagerStyle Mode="NumericPages" />
        <FilterMenu EnableImageSprites="False">
        </FilterMenu>
    </telerik:RadGrid>
Eyup
Telerik team
 answered on 07 Feb 2013
11 answers
1.5K+ views
I am trying to bind radgrid to datasource null on page load .but the grid is not showing up.
I want the grid Headers to show even if there is no Data.
below is the used HTML Code

 

<telerik:RadGrid ID="rdgDepartment" runat="server" AutoGenerateColumns="False" Width="100%"

 

 

GridLines="None" Skin="Office2007" AllowFilteringByColumn="True"

 

 

AllowPaging="True" AllowSorting="True">

 

 

<HeaderContextMenu EnableTheming="True">

 

 

<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

 

 

</HeaderContextMenu>

 

 

<PagerStyle Mode="NextPrevNumericAndAdvanced" AlwaysVisible="true" />

 

 

<MasterTableView EnableNoRecordsTemplate=true ShowHeadersWhenNoRecords=true >

 

 

<NoRecordsTemplate>

 

 

<div style="width: 300px;">

 

There are no records to display

</div>

 

 

</NoRecordsTemplate>

 

 

<Columns>

 

 

<telerik:GridBoundColumn DataField="DISCIP_CODE" HeaderText="Discipline Code(Staging)"

 

 

UniqueName="DISCIP_CODE">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="DISCIP_NAME" HeaderText="Discipline Name(Staging)"

 

 

UniqueName="DISCIP_NAME">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="SORT_ORDER" HeaderText="Discipline Sort Order(Staging)"

 

 

UniqueName="SORT_ORDER">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="DEPT_CODE" HeaderText="Discipline Code(PTR)"

 

 

UniqueName="DEPT_CODE">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="DEPT_DESC" HeaderText="Discipline Name(PTR)"

 

 

UniqueName="DISP_NAME">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="DEPT_SORT_ID" HeaderText="Discipline Sort Order(PTR)"

 

 

UniqueName="DISP_ORDER">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="STATUS" HeaderText="STATUS" UniqueName="STATUS">

 

 

</telerik:GridBoundColumn>

 

 

</Columns>

 

 

</MasterTableView>

 

 

<ClientSettings AllowDragToGroup="True">

 

 

<Selecting AllowRowSelect="True" />

 

 

<Scrolling AllowScroll="true" SaveScrollPosition="true" UseStaticHeaders="True" ScrollHeight="250px" />

 

 

</ClientSettings>

 

 

<ExportSettings>

 

 

<Pdf FontType="Subset" PaperSize="Letter" />

 

 

<Excel Format="ExcelML" FileExtension=".xls" />

 

 

<Csv ColumnDelimiter="Colon" RowDelimiter="NewLine" />

 

 

</ExportSettings>

 

 

<FilterMenu EnableTheming="True">

 

 

<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

 

 

</FilterMenu>

 

 

</telerik:RadGrid>

 

Shinu
Top achievements
Rank 2
 answered on 07 Feb 2013
1 answer
84 views
I am attempting to use the Template Manager in the scenario where the user wants to open a template rather than insert it...
- The user has abandoned some existing editor content which would to be cleared and a new template opens.   Is there an event with some confirmation  which would handle this?

Cheers.


Rumen
Telerik team
 answered on 07 Feb 2013
1 answer
59 views
Hello,

I'm attempting to do a client side binding for my radgrid but after calling my webmethod, i get a server 500 error.

I have followed everything that was said in your online tutorial video. 

I have made sure that I had an empty function for OnCommand.

The function that I call to return the data to apply to the grid returns a datatable, I have tried to modify the function to return a list and it does the same issue.

What could be the cause of such error?

Thank you again,
Radoslav
Telerik team
 answered on 07 Feb 2013
1 answer
110 views
I want to get the row count after the  NeedDataSource event (after rebind client side).
How can I do this from client side.
Please help
Shinu
Top achievements
Rank 2
 answered on 07 Feb 2013
5 answers
191 views
Hi there,

I'm  using radEditor and found annoying error that must be solved.
What happened was the user wanted to paste HTML content from google finance to radEditor.
And it triggered javascript error, object not found in Internet Explorer 8.
For more details, I enclosed the google finance content at the end of this page.

After tiring and restless debugging, much testing, I still couldn't suppress the javascript error.
I use the onerror syntax to capture all javascript error, but it doesn't work.
window.onerror = function () {
    alert("Error captured");
}

Finally, I found the culprit. The image tag has javascript onload event. Thus I use the following crude code to replace the onload event.
This works for future use, but it sill doesn't solve the issue when the user pasted the content.
function OnClientPasteHtml(sender, args) {
    alert("OnPaste");
    var value = args.get_value();
    alert(value);
    value = value.replace(/ on/g, " _on");
    args.set_value(value);
}

In fact, I tried to paste the google finance content, I received the same javsacript error in this page.
I tried to use OnClientCommandExecuting radEditor client event, hoping I can modiy the clipboard content before it's being paste into radEditor. But the args.get_value() returns empty.

My questions,
1. How to suppress all javascript error in radEditor?
2. How to modify the clipboard content before it's being paste to radEditor. OnClientPasteHtml is too late.

Thank you.




http://www.google.com/finance

Huffington Deal Raises Question: What Site Will Be Sold Next?
By EVELYN M. RUSLI In agreeing to buy The Huffington Post for $315 million, AOL is putting what appears to be a significant premium on the ability to attract and build a community of readers.
Can the Huffington Post save AOL?  
Newspaper stocks jump on content hopes  
Market Chart
12,161.63 +69.48 (0.57%)
1,319.05 +8.18 (0.62%)
2,783.99 +14.69 (0.53%)
Rumen
Telerik team
 answered on 07 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?