Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
76 views
I am using telerik asp.net controls of version 2009.1.525.20 but its not supporting .net 4.0.
Is there any workaround for this...

Thanks
Mohit
Shinu
Top achievements
Rank 2
 answered on 14 Jul 2013
1 answer
77 views
Is there any templates in radcontrols asp.net ajax  to use my application
Shinu
Top achievements
Rank 2
 answered on 14 Jul 2013
2 answers
334 views
What is the best way to determine if the ItemDataBound is Master or Detail Table?

I am trying to conditionally format the detail table row, not cell.  This is based on a column that exists in both the Master and Detail tables.  The formatting is working, but it is formatting both the Master and the detail table.


I see this code, but cannot figure out how to determine if e.Item is Master or Detail table:
protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
    if (e.Item is GridDataItem)
    {
        GridDataItem dataItem = e.Item as GridDataItem;
        if (dataItem["Country"].Text == "Mexico")
            dataItem.CssClass = "MyMexicoRowClass";
    }
}


Or if there is a better way to do this?
Michael
Top achievements
Rank 1
 answered on 13 Jul 2013
1 answer
470 views
I am using an EntityDataSource with my RadGrid, and I have a HyperLinkColumn of integer values that needs to be filterable. My problem is that whenever a string is passed into the filter control, a SqlEntityException is thrown with the following message:

'filtertext' could not be resolved in the current scope or context. Make sure that all referenced
variables are in scope, that required schemas are loaded, and that namespaces are referenced correctly.
Near simple identifier, line 6, column 228.


So, I need a way to prevent the user from entering a string into the filter control. I was able to use a GridMaskedColumn in some cases, but in this particular case, the data in the column needs to be linked to another page, so I'm forced to use a HyperLinkColumn. Any thoughts?
Jayesh Goyani
Top achievements
Rank 2
 answered on 13 Jul 2013
3 answers
85 views
I have a rad chart showing bar graph. If max values on the Y-axis are 1 or 2, the bar does not occupy full height as shown in attached image (img2.png). Otherwise the bar is seen correctly as shown in image (img1.png). Is there a solution related to this behavior of chart?
Petar Kirov
Telerik team
 answered on 12 Jul 2013
2 answers
129 views
Hi Telerik Hi Community

How can I get the current selection by server side ?? For example if I click on an appointment to select it and when I click on a radbutton I would like to retrieve the selected appointment ... How can i do that ?

There is no method like. GetSelectedAppointment , GetCurrentSelection or something like that ?

Cheers

I'm waiting for your answer

Romain ;)
Romain
Top achievements
Rank 1
 answered on 12 Jul 2013
2 answers
164 views
When inserting an html document from the code behind, if we switch between design mode and html mode, radeditor modifies the html undesirably.  This even happens when content filter is set to none.  If we insert the html by hand (copy paste into html mode, this doesn't happen).  It seems to strip away the inner text of the head tag, and then when switched back to design mode, shows bullet points.  I've attached pictures to show the issue.  We are using cnn.com as a test, and we append the date to the beginning of the text (oddly this text doesn't show up in the html text section).  

http://imgur.com/a/nrtIE

1: First time it is displayed, everything is fine (those spaces are okay)
2: switch to html mode, we see there is nothing between header
3. Switch back to design mode, there are now bullet points?!? (these are not show in the html mode)
4. Copy and paste the html by hand
5. Displays fine (can switch back and forth no problem). 

Any ideas?  
Kristopher
Top achievements
Rank 1
 answered on 12 Jul 2013
6 answers
165 views
Hello,

I have a custom form template in my RadGrid that closes fine right after opening (clicking on edit), but will not close after selecting an item in a combobox within the form (which is set to autopostback="true"). There are multiple linked comboboxes being used in the form, a form decorator and ajaxmanager with the RadGrid registered to the manager updating itself. I assume this is an issue with the ajax controls being used, but it does not appear obvious that there is any reason why the editform is not being collapsed after an autopostback.  My project implements code very similar to the demo here -> http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/templateformupdate/defaultcs.aspx.

Thank you for any input
Andrew
Top achievements
Rank 1
 answered on 12 Jul 2013
0 answers
99 views

 I have a javascript for a nested grid which was working fine until I decided to use RadTabStrip.

The Jquery Code:

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"> </script>
<script type="text/javascript" src="http://code.jquery.com/ui/1.10.3/jquery-ui.js">     </script>
 <script type="text/javascript">
   function collapseExpand(obj) {
    var gvObject = document.getElementById(obj);
    var imageID = document.getElementById('image' + obj);

    if (gvObject.style.display == "none") {
        gvObject.style.display = "inline";
        imageID.src = "~/ims/Images/bullet_toggle_minus.jpg";
    }
    else {
        gvObject.style.display = "none";
        imageID.src = "~/ims/Images/bullet_toggle_plus.jpg";
    }
}
</script>
</asp:content>

RadTab Script:

<telerik:RadTabStrip ID="RadTabStrip1" runat="server">
<Tabs> 
<telerik:RadTab  runat="server" Text="tab1">
<TabTemplate>
<telerik:RadGrid ID="GridView1" runat="server" AutoGenerateColumns="False" 
    BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" 
    CellPadding="3" GridLines="Horizontal" OnItemDataBound="RadGrid2_ItemDataBound" >
<MasterTableView DataKeyNames="id1">
<Columns>
<telerik:GridTemplateColumn>
<ItemTemplate>
<a href="javascript:collapseExpand('id1_<%# Eval("id1") %>');">
<img id="imageSubId_<%# Eval("id1") %>" alt="Click to show/hide orders" border="0" src="Images/bullet_toggle_plus.jpg" />
</a>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="id1" HeaderText="ID"/>
<telerik:GridTemplateColumn>
<ItemTemplate>
            <tr>
            <td colspan="100%">
            <div id="id1_<%# Eval("id1") %>" style="display: none; position: relative; left: 25px;">
            <telerik:RadGrid ID="GridView2" runat="server" AutoGenerateColumns="false" CellPadding="4" ForeColor="#333333" 
                    GridLines="None" >
            <MasterTableView >
                    <Columns>
                    <telerik:GridBoundColumn DataField="fname" HeaderText="First Name" />
                    <telerik:GridBoundColumn DataField="mname" HeaderText="Middle Name" />
                    <telerik:GridBoundColumn DataField="lname" HeaderText="Last Name" />
                    <telerik:GridTemplateColumn>
                    <ItemTemplate>
                    <asp:CheckBox ID="checkselect" runat="server" />
                    </ItemTemplate>
                    <HeaderTemplate>
                    <asp:Button ID="Button4" runat="server" Text="Remove"  CommandName="Split"  />
                    </HeaderTemplate>
                    </telerik:GridTemplateColumn>
                    </Columns>
                    </MasterTableView >
             </telerik:RadGrid>
             </div>
             </td>
             </tr>
 </ItemTemplate>
 </telerik:GridTemplateColumn>
 </Columns>
 </MasterTableView>
 </telerik:RadGrid>
 </TabTemplate>
 </telerik:RadTab>
 </Tabs>
 </telerik:RadTabStrip>

This code is working fine without tabs.

Also, I think the problem is with the RadTabStrip rather than JavaScript. I tested it numerously without using RadTabStrip and its working fine. As soon as I attach radtabstrip its behaving like this.

Can someone help me with this?

Thanks.

John
Top achievements
Rank 1
 asked on 12 Jul 2013
2 answers
114 views
When I save off text from the RadEditor, it saves it into html formatting. Is there a way within RadEditor that I can define how to save specific elements? 

I would like to replace the <p>, <br>,<strong>, and <em> tags (possibly others as well) with something else. I realize this is possible through something like a string.replace, but I'm wondering if there is also a way within RadEditor itself.

For instance, this is the output that RadEditor currently provides:
<ol>
    <li>numbered list one</li>
    <li>numbered list two</li>
</ol>
<ul>
    <li>bullet list one</li>
    <li>bullet list two</li>
</ul>
<p><strong>bold word</strong><br />
<br />
<em>italics word</em></p>

and this is what I would like it to be:
<ol>
    <li>numbered list one</li>
    <li>numbered list two</li>
</ol>
<ul>
    <li>bullet list one</li>
    <li>bullet list two</li>
</ul>
& #013;
& #013;
<span style="font-weight:bold">bold word</span>
& #013;
& #013;
<span style="font-style:italic">italics word</span>
Bryan
Top achievements
Rank 1
 answered on 12 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?