Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
158 views
<telerik:GridDropDownColumn
              UniqueName="ISHUR" DataField="ISHUR" HeaderText="MyIshur" DropDownControlType="DropDownList"
                   DataSourceID="objdsIshur" ListTextField="Text" ListValueField="Key"/>


Hi All,
I have a radgrid that one of his columns is GridDropDownColumn 
I want to access the GridDropDownColumn in client side  and get the selected index when i move to edit mode.
Note that the DropDownControlType property is set to DropDownList and not to RadComboBox/
Thank,
Gerry

Tsvetoslav
Telerik team
 answered on 11 Mar 2011
1 answer
715 views
How would you use RadMaskTextBox to mask all but the last 4 digits of a credit card?

I want the Textbox to display as ####-####-####-1234.

Thanks in advance for your assistance.
Veli
Telerik team
 answered on 11 Mar 2011
3 answers
152 views
Hi
Do you have a sample of grid which has checkbox, textbox and combobox columns int it?
Thanks
Princy
Top achievements
Rank 2
 answered on 11 Mar 2011
2 answers
254 views
I was having issues with prometheus running when using a Master page... I have found a thread that states to remove the runat = server from the head tag and insert 
<script>var controlClientObject = <%= RadControl1.ClientID %></script>
below is how I have added it in my master page.
 

<

body style="margin: 0px;" runat=server>

<form id="frmMaster" >

<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true">

<Scripts>

<asp:ScriptReference Path="~/Scripts/setFooter.js" />

</Scripts>

</asp:ScriptManager>

<

script>var controlClientObject = <%= RadControl1.ClientID %></script>

<div id="Header">

Now I get the following error... Can someone please help me as to what I am missing?

Compiler Error Message: CS0103: The name 'RadControl1' does not exist in the current context

I have made sure everything is in the web config and I do have the dll in the bin folder... I am able to to run everything fine as long as I do not use a master page?

Thanks for the help
Gina

Peter
Telerik team
 answered on 11 Mar 2011
1 answer
67 views
Hi Sir / Madam,

I am using Hierarchical grid to display Master & Details information. I want page size as 10 and 5 respectively in MasterTableView and DetailTables. For uniqueness in entire application i would like to go with asp.net's skin file. I have written below listed code in Skin1.skin file

<telerik:RadGrid runat="server"  >
<MasterTableView  PageSize="10">
</MasterTableView>
</telerik:RadGrid>
<telerik:GridTableView  Width="100%" PageSize="5" runat="server">
</telerik:GridTableView>

But end result was not met my expectation. Both Master and Child tables displays 5 records per page.

If I use same settings in .aspx page instead of skin file, results are displayed as expected.

Could any one please help me in this regard. Thanks in advance.

Thanks,
Sumanth

 
Tsvetoslav
Telerik team
 answered on 11 Mar 2011
1 answer
122 views
I have a column named 'Unread' in my Rad grid. Please see the following aspx code.

<Telerik:RadGrid ID="MessageBoardRadGrid"  Width="100%" AllowSorting="True" PageSize="15" AllowPaging="True" 
              AllowMultiRowSelection="True" runat="server" Gridlines=Both  HeaderStyle-Font-Bold=true 
              AutoGenerateColumns="False"  >
               <PagerStyle Mode="NextPrevAndNumeric" />                  
               <MasterTableView DataKeyNames="Name" AutoGenerateColumns="false">
                   <Columns>                           
                       <Telerik:GridTemplateColumn  DataField="Unread" HeaderText="Unread" HeaderStyle-CssClass="gridheader">                    
                           <ItemTemplate>
                               <%# Formatter.StatusIcon( (Forum) Container.DataItem ) %>
                           </ItemTemplate>
                       </Telerik:GridTemplateColumn >

I am binding an image if there is an most resent update on the column.
Please find the code for the StatusIcon() method below.
if (forum.LastUserActivity < forum.MostRecentPostDate) 
        {
            icon = "forum_status_new_ln.gif";
            alt = ResourceManager.GetString("IconAlt_NewPosts");
        }

I want to make it a default sorted column to show the unread items first.
Kindly help me accomplishing this.
Princy
Top achievements
Rank 2
 answered on 11 Mar 2011
1 answer
105 views
Can you add a row of data programatically and aggregate it within the radgrid.  If so, how?

Example:

I have a grid with 2 columns.  One of these columns is a template that runs a function and delivers an output.  Within that function I need to manually add data that is not present in the sqldatasource to the grid and use it when performing aggregate functions. 

ColumnA - ColumnB
1 - MyFunction(1) - adds new row (1, B)and returns A to column B.  
2 - MyFunction(2) - May return just A

Grid should look like
1 - A
1 - B
2 - A
Count 3

Even though SQLDataSource only returns
1 - AB
2 - A

Of course the function is more complex than the example above and I only need details on adding the row of data to the grid so that it can be aggregated.  Thanks

Tsvetoslav
Telerik team
 answered on 11 Mar 2011
2 answers
58 views
Hi there,


I used to have a child window which referenced a js function (let's say MyFunc) on parent by using window.opener.MyFunc().
I changed to radopen and window.opener.MyFunc() does not work now.
I first thought it was due that child is not exactly a different window so I just used MyFunc() but it still does not work.
So, how can I reference a js function on opener in child window which was opened with radopen?

Thank you so much,


Javier Andrés Cáceres Alvis
Shinu
Top achievements
Rank 2
 answered on 11 Mar 2011
1 answer
115 views
hi,

I am using   the following paging style <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle> on radgrid.
If I enter the maximum number in the number of record fields and click "Change" though I see all the records, the paging panel disappears.

Looks like a bug in Radgrid. Any help?

Kind Regards
Princy
Top achievements
Rank 2
 answered on 11 Mar 2011
1 answer
70 views
Dear all
We have recently encountered a very serious issue with the previous vesion of the radupload for ASP.NET and statusmanger in particular. I can consistently simulate the error, I was just wondering if anyone has seen this in the latest version as well.

When two web users are uploading at the same time, the user that starts an upload after another user has one in process will for a couple of seconds see the file and filename of the other user that is being uploaded, after which it changes to display the correct file that he is busy uploading. After about 50% completion, both users will get an error message that their upload has failed.

I can consistently simulate this, with more users it becomes even more obvious as you first see for a couple of seconds all the files being uploaded by the other users before it will display the status of your file, after which all uploads will fail.

Is there anyone out there that can confirm this behaviour, or confirm that this has been fixed in the new releases of this component?
Tonie Venter
Top achievements
Rank 1
 answered on 11 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?