Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
71 views
I have to render 3 chart on page. Everything is working fine except IE9, where sometimes it shows chart with wrong information of sometimes without any values. If I delete temporary files Ctrl + Shift + Delete & Ctrl+F5 the window its comes up with correct window.
It perfectly works 1st time, but if I try to fetch values for some other parameter its fails. 
Please help.
Danail Vasilev
Telerik team
 answered on 03 Jun 2014
1 answer
226 views
Hi,
I have a report in radgrid with grouping on basis of one field. The screen shot for the grid is attached. Now when i export the grid to PDF, group header column also gets exported leaving blank columns which are not required.
Also i cannot set the width of the headers when exporting to PDF. I have searched for may threads but of no help.
Any help would be appreciated.

Thanks
Anshul
Princy
Top achievements
Rank 2
 answered on 03 Jun 2014
2 answers
106 views
I have a RadGrid on my page displaying a list of search results from my database. Some of these results have associated files which I provide a download link for, and some don't.

For the results that don't have an associated file I want to hide the link in that row only. I can do that, I've found, using this code in the ItemDataBound event:

if (e.Item is Telerik.Web.UI.GridDataItem)
{
    if (!((bool)((DataRowView)e.Item.DataItem).Row["IsElectronic"]))
    {
        ((Telerik.Web.UI.GridDataItem)e.Item)["colDownload"].Visible = false;
    }
}

The problem is that by setting the GridDataItem's Visible property I'm effectively collapsing that column for that row, moving everything out of alignment with the grid headers. Instead, I'd like to do something to empty the contents of the cell, or change just that cell to a different column type, or something similar?
Adrian
Top achievements
Rank 1
 answered on 03 Jun 2014
2 answers
205 views
Hi, how do I get a handle to the RadDatePicker, within the context of a div.
my code snippet looks like this:
                    <div id="div123">
                      <telerik:RadDatePicker ID="txtSomeDate" runat="server" CausesValidation="True">
                      </telerik:RadDatePicker>
                    </div>

The command :
var somedate = $find("<%=txtSomeDate.ClientID %>");
returns me the datepicker.

However, I have a requirement where I need to get a handle to this datepicker which is within the div "div123" only.
This is because I have this datepicker within a user control and this user control could be embedded multiple times in the same page.

I tried $find("<%=txtSomeDate.ClientID %>",div123) but it returns null.

Any clues on how to get this working?

Thanks
Suchitra
 




Suchitra
Top achievements
Rank 1
 answered on 03 Jun 2014
7 answers
176 views
Hi I want to extend RadAsyncUpload control to meet our
custom validation need. However, I am experiencing two issues here.

1.  RadAsyncUpload contains two controls, one is
textbox and other is a button to invoke file explorer. However, to show error
how can I only target the textbox and not the button? Say for example, I want
to change only textbox border color when its invalid (and not the button)

 

2.  In extended control’s PreRender,  when I change CssClass attribute of the
control  if control is invalid, the change doesn't reflect on the control, but when I change the CssClass attribute before
the condition (if valid), the change takes effect. So looks like I can’t change the style
attribute after first load, which is very strange. However, I am not sure why
this is happening

Hope someone can help me with this.

Thanks
Shinu
Top achievements
Rank 2
 answered on 03 Jun 2014
5 answers
251 views
Hi,

When i add a field  programmatically:

Button1_Click:

PivotGridColumnField _row = new PivotGridColumnField();
_row.DataField = "[Account].[Accounts]";
_row.UniqueName = "[Account].[Accounts]";
this.RadPivotGrid1.Fields.Add(_row);

when i interact with him, it raises an error:

Uncaught Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: Value cannot be null.
Parameter name: fieldInfo

what is the issue ?

sorry my poor english.
AlefSan
Top achievements
Rank 1
 answered on 02 Jun 2014
3 answers
228 views
I am trying to get a site to work with a free screen reader (NVDA). I am making the fields more accessable by setting the AssociatedControlID of the asp:Labels to the associated fields. This technique works well for RadTextBoxes, but so far, it has not worked (NVDA will not read the label when the focus is on field) for any RadComboBoxes. Here is what the label / RadComboBox combo looks like:

<asp:Label ID="lblPAddrPreStreetDir" runat="server" EnableViewState="False" meta:resourcekey="lblPAddrPreStreetDirResource1" Text="Pre-Street <br>Direction:" AssociatedControlID="ddlPPreStDir"></asp:Label>

<telerik:RadComboBox ID="ddlPPreStDir" runat="server" AutoCompleteMode="SuggestAppend" DropDownStyle="DropDownList" meta:resourcekey="ddlPPreStDirResource1" TabIndex="2" Width="100px" CausesValidation="False" MarkFirstMatch="True">
                                                <Items>
                                                    <telerik:RadComboBoxItem meta:resourcekey="ListItemResource1" Text="None" runat="server"></telerik:RadComboBoxItem>
                                                    <telerik:RadComboBoxItem meta:resourcekey="ListItemResource2" Text="EAST" Value="E" runat="server"></telerik:RadComboBoxItem>
                                                    <telerik:RadComboBoxItem meta:resourcekey="ListItemResource3" Text="NORTH" Value="N" runat="server"></telerik:RadComboBoxItem>
                                                    <telerik:RadComboBoxItem meta:resourcekey="ListItemResource4" Text="NORTH EAST" Value="NE" runat="server"></telerik:RadComboBoxItem>
                                                    <telerik:RadComboBoxItem meta:resourcekey="ListItemResource5" Text="NORTH WEST" Value="NW" runat="server"></telerik:RadComboBoxItem>
                                                    <telerik:RadComboBoxItem meta:resourcekey="ListItemResource6" Text="SOUTH" Value="S" runat="server"></telerik:RadComboBoxItem>
                                                    <telerik:RadComboBoxItem meta:resourcekey="ListItemResource7" Text="SOUTH EAST" Value="SE" runat="server"></telerik:RadComboBoxItem>
                                                    <telerik:RadComboBoxItem meta:resourcekey="ListItemResource8" Text="SOUTH WEST" Value="SW" runat="server"></telerik:RadComboBoxItem>
                                                    <telerik:RadComboBoxItem meta:resourcekey="ListItemResource9" Text="WEST" Value="W" runat="server"></telerik:RadComboBoxItem>
                                                </Items>
                                            </telerik:RadComboBox>
Dimitar Terziev
Telerik team
 answered on 02 Jun 2014
3 answers
109 views
I followed the instructions here to auto resize my columns, but this doesn't appear to work if ShowHeader = false.  

http://www.telerik.com/help/aspnet-ajax/grid-gridcolumn-resizetofit.html.  

If ShowHeader = false, it looks like it resizes the columns so that the whole table is 100% of the screen, ore maybe even a bit more.  Is there a workaround for this?  Could I hide the header row on the client side after running resizeToFit()?


Jarod
Top achievements
Rank 1
 answered on 02 Jun 2014
2 answers
253 views
i use RadMediaPlayer in my project and i want in playlist add both audio and video. my code is: SqlConnection con = new SqlConnection(System.Web.Configuration.WebConfigurationManager.ConnectionStrings["conection"].ConnectionString);
SqlCommand cmd = new SqlCommand("SELECT Extension,Detail,Link,Title,Folder,Pic FROM [TblQuality] WHERE mId=@mId", con);
cmd.Parameters.AddWithValue("@mId", QSi);
SqlDataReader dr;
MediaPlayerFile file;
using (con)
{
con.Open();
dr = cmd.ExecuteReader();
while (dr.Read())
{
if (!dr.GetString(2).ToLower().EndsWith(".rar") || !dr.GetString(2).ToLower().EndsWith(".zip"))
{
//new media
if (dr.GetString(2).ToLower().EndsWith(".mp3"))
{
file = new MediaPlayerAudioFile()
{
Poster = string.Format("~/Management/images/Music_img/{0}/{1}", dr.GetString(4), dr.GetString(5)),
Path = string.Format("~/Cnt/Music/{0}/{1}", dr.GetString(4), dr.GetString(2)),
Title = string.Format("{0}.{1} - {2}", dr.GetString(3), dr.GetString(0), dr.GetString(1))
};
RadMP1MusicDown.Playlist.Add(file);
}
else
{
file = new MediaPlayerVideoFile()
{
Poster = string.Format("~/Management/images/Music_img/{0}/{1}", dr.GetString(4), dr.GetString(5)),
Path = string.Format("~/Cnt/Music/{0}/{1}", dr.GetString(4), dr.GetString(2)),
Title = string.Format("{0}.{1} - {2}", dr.GetString(3), dr.GetString(0), dr.GetString(1))
};
RadMP1MusicDown.Playlist.Add(file);
}
}
}
dr.Close();
cmd.Cancel();
}but when load page, media play are only in audio mode or video mode.if first item is mp3 and second is mp4 when video play mediaplayer don't show video only play sound.can help me fix this?
-------------------------------------
hgh system MediaSpace
Konstantin Dikov
Telerik team
 answered on 02 Jun 2014
6 answers
269 views
Hi All,

I am using entitydatasource for bind the grid. it is working fine.
but i need to insert without primary key because our primary key id generated using oracle sequence. we have some auto created column using Trigger. but when i am trying to insert it is asking all columns.
how we can insert selected columns instead of all columns?
Please help ASAP. it is very urgent.

Thanks in Advance,
S.Dhamodharan.
Radoslav
Telerik team
 answered on 02 Jun 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?