Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
141 views
I have a RadGrid with a MasterTableView and the Insert/Cancel of such are either LinkButtons or PushButtons which are ugly. I want to make them look like the default RadButtons that I am using across the rest of the site. Right now my only solution is to use screenshots. Is there a better built-in way to do so?
Princy
Top achievements
Rank 2
 answered on 22 Jul 2014
6 answers
311 views
 hi

in ASP.NET AJAX (NOT SilverLight or ... Just For ASP.NET ajax):
How can I drag n drop multiple gridview rows to Treeview node?
How can I  drag n drop between  gridview and treeview?
Please Help me.
thanks

Shinu
Top achievements
Rank 2
 answered on 22 Jul 2014
1 answer
241 views
Is there a way to extend the Group Sizes option to the decimals?  Based on my testing, it doesn't appear to work with the decimals.  Deal with small numbers all the time and for readability it would be great to see something like this:

1.000 343 234 345

Just curious if there is a way to accomplish this.

Thanks,

Richard
Princy
Top achievements
Rank 2
 answered on 22 Jul 2014
11 answers
533 views
HAI  All,


how to write the code when i click on Update button it will show one RadAlert box saved sucessfully if i click on ok button it will redirect to some other page with some id
see this code once 
ASPX:
 
   <cc1:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true" AutoSize="true" CenterIfModal="true" Modal="true">
          </cc1:RadWindowManager>
 
C#:
 
RadWindowManager1.RadAlert("You have Updated the item successfully!", 250, 150, "", "", "");


if i click on "ok" button in radalert it will redirect to some other page like 
 Response.Redirect("ItemDetails.aspx?ItemID={0}", intItemId);
Shinu
Top achievements
Rank 2
 answered on 22 Jul 2014
5 answers
320 views
Hi,
I change column in radgid dynamically in ItemDataBound but when i export the data in to excel i am getting the default value from table:

protected void EmplReqGrid_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
if (e.Item is GridDataItem)
{
GridDataItem item = (GridDataItem)e.Item;
string ddlTerm = ((DataRowView)e.Item.DataItem)["TERMID"].ToString().Trim();
if (ddlTerm == "F")
item.Cells[4].Text = "Fall";
else
item.Cells[4].Text = "Spring";
}
}

Instead of showing "Fall" or "Spring" after I exporting grid to excel  it shows "F" or "S".

Please help me.
Thanks so much.
Shinu
Top achievements
Rank 2
 answered on 22 Jul 2014
3 answers
114 views
Hi.  I just need something to get me started.

Please see the attachment for a picture of the data from an SQL data source, and the simple chart I'm trying to build. 

What goes inside the <telerik:RadHtmlChart /> to bind the fields and achieve the basic format shown?

I can repackage the data somewhat to make binding easier if that's needed.

Can you help?

Thanks.
Ed
Top achievements
Rank 1
 answered on 22 Jul 2014
8 answers
1.7K+ views
With a "plain" ASP control, I could write something like <asp:TextBox ... onChange="Test('Hello World')" />
With a Telerik RadInput control, I cannot pass parameters to my events <Telerik:RadTextBox ... ClientEvents-OnValueChanged="Test(<Cannot send parameters>)" />

In the above simple example, one could get around this limitation any number of ways.  However, in a more complex application, this causes a real problem.

I have a user control which has, among other things, a dynamically created TextBox or RadInput control (the exact flavour of input control varies depending on properties passed to the user control).  Think of my user control as my own Input control, containing common input funcionality that we use in our application.

One of the things this user control does is handle database lookups that occur when focus is lost on a field.  The OnChange event is called, passing a number of parameters (input IDs, lookup options, etc) to a JavaScript function, which ultimately calls other JavaScript functions, web methods, callback functions, and possibly AJAX postbacks.  When the input control is a TextBox, everything works fine.  But since Telerik RadInput controls use their own client events, and because those events do not allow me to pass parameters to the JavaScript, it does not work.

A typical page on our application might contain 20-100+ of these controls, each control requires different parameters to be sent to the JavaScript function handling the OnChange event, and the input controls inside the user control are created dynamically, all of which makes it very impractical to try and "work around" this issue by using hidden fields or global variables, etc.

Please consider either making the "built in" OnChange handlers work in RadInput, or expanding upon your own client events to allow us to send parameters to the method.

Thanks.
Princy
Top achievements
Rank 2
 answered on 22 Jul 2014
1 answer
155 views
Hi,
How can I add a GridTemplateColumn in my grid with label and tooltip and take the data from a field of my object

I tried something like 
<telerik:GridTemplateColumn UniqueName="Bt1" DataField="Field1">
                           <ItemTemplate>
                               <asp:Label Text='<%#Eval("Field1") %>' runat="server"></asp:Label>
                           </ItemTemplate>
                       </telerik:GridTemplateColumn>

<telerik:RadClientDataSource ID="RadClientDataSource1" runat="server" AllowBatchOperations="true">     
       <ClientEvents OnDataParse="LoadImageGrid" OnChange="LoadBigMap" />
       <DataSource>
           <WebServiceDataSourceSettings>
               <Select Url="load_map.asmx/GetHomeData" RequestType="Post" DataType="JSON" ContentType="application/json; charset=utf-8" />
           </WebServiceDataSourceSettings>
       </DataSource>
       <Schema>
           <Model>
               <telerik:ClientDataSourceModelField FieldName="Field1" DataType="String" />
               <telerik:ClientDataSourceModelField FieldName="Field2" DataType="String" />
              ...
           </Model>
       </Schema>  
   </telerik:RadClientDataSource>

But it doesn't show any text..
and I have no idea how to add a tooltip

If I try with
<telerik:GridBoundColumn UniqueName="Bt1" DataField="Field1" HeaderText="BT1" AllowFiltering="false">                       
                      </telerik:GridBoundColumn>

it works but still I don't have the tooltip

Thanks
Marin
Telerik team
 answered on 21 Jul 2014
2 answers
138 views
I'm having a hard time understanding what I might be doing wrong here. Firebug is throwing an error in this piece of code:

b.RadComboBox.prototype._getOffsetParentOffset=function(f){var d=0;
var e=0;
var h=a(f.offsetParent);
if(h.css("position")!="static"){var g=h.offset();
d=g.top;

There's more code, but I figured this was enough for you to determine where this problem is. Firebug is throwing the following:

TypeError: g is null

And it's trying to use it on that last line. What's going on? Thanks.

Edit:
Thought I'd add more about my setup. The particular RadComboBox that throws this exception is a RadComboBox+RadTreeView. I'm using an AjaxManager to ajaxify most of the controls (including this one) one the page. Once I use another control using the RadComboBox+RadTreeView throws this error, but as long as I only use the RadComboBox+RadTreeView it seems to work.
Dimitar Terziev
Telerik team
 answered on 21 Jul 2014
3 answers
190 views
Hi,

I've got the RadPersistenceManager working, saving my RadTabStrip.  However, looking at the XML (and confirmed here) the only attribute of the entire RadTabStrip that is persisted, despite almost 1K of XML, is an integer indicating the 0-based index of the Selected tab.

<Name>SelectedIndices</Name>
<Value Type="System.Collections.Generic.List`1[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]">
  <ArrayOfString>
    <string>4</string>
  </ArrayOfString>
</Value>

I suppose that's useful in some cases but what seems to me to be much more useful is to persist the order of the tabs. I have tab reordering enabled and, having done so, I thought it would be natural to add the RadTabStrip to the RadPersistenceManager's PersistenceSettings and reload that tab order when the page is reloaded.  (E.g. enabling users to reorder the tabs how they prefer.)

However, obviously because the tab order is not saved, when I reload the tab strip the tabs are restored in their default order, but the tab that is now Selected is potentially some other tab entirely because they've been un-reordered.

I have two requests:

1) When saving a RadTabStrip, the RadPersistenceManager should save both the Selected tab AND the tabs' order.
2) When saving a RadTabStrip, the RadPersistenceManager should save the Selected tab's name, or other unique identifier, instead of overloading its index as a unique ID.  Restoring the Selected tab by its index is less than useless if you allow tab reordering.

In fact, I would dump the persistence of the Selected tab altogether, if it's only going to be done by index.  It's meaningless in the context of reordering tabs.

Thanks,
~Jeff
Jeff
Top achievements
Rank 1
 answered on 21 Jul 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?