Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
122 views
Hi,


I am using the Telerik.Web.UI.dll and Telerik.Web.UI.Skins.dll with version number : 2012.3.1308.35 in my currently running application  but now we are updating the dll version to  2013.2.717.40 so I am getting an error at run time in RadGridView Control :

Error : I am getting the data-type conversion issue

Here is my code :
              <telerik:RadGrid OnNeedDataSource="rgrd_NeedDataSource" AlternatingItemStyle-HorizontalAlign="Left"
                            ItemStyle-HorizontalAlign="Left" runat="server" ID="rgrd" OnPreRender="rgrd_OnPreRender"
                            OnItemCommand="rgrd_ItemCommand" AllowPaging="True" Skin="WebBlue" Width="99%"
                            AutoGenerateColumns="false" GridLines="None" AllowSorting="True" PageSize="10"
                            OnItemDataBound="rgrd_OnItemDataBound">
                            <MasterTableView DataKeyNames="UserId" AutoGenerateColumns="False" Width="100%">
                                <NoRecordsTemplate>
                                    No Records
                                </NoRecordsTemplate>
                                <Columns>
                                    <telerik:GridBoundColumn Visible="false" UniqueName="IsEnable" DataField="IsEnable" />
                                    <telerik:GridBoundColumn  UniqueName="Name" DataField="UserName" />
                                </Columns>
                            </MasterTableView>
                            <HeaderStyle HorizontalAlign="Left" />
                        </telerik:RadGrid>
 protected void rgrd_OnPreRender(object source, EventArgs eventArgs)
        {
            var list= (List<User>) rgrd.DataSource;
            if (list=  != null && list= .Count > 0)
            {
                for (int index = 0; index < rgrd.Items.Count; index++)
                {
                    GridDataItem item = rgrd.Items[index];
                    if (item != null)
                    {
                        Boolean isEnable = Convert.ToBoolean(item["IsEnable"].Text); // Getting Error in this code
                    }
                }
            }
      }


"Boolean isEnable = Convert.ToBoolean(item["IsEnable"].Text);"
With old dll version I am getting here item["IsEnable"].Text ="True"
but with newer version of dll I am getting here item["IsEnable"].Text="&nbsp;"
so I do not understand What can I do in this case ?
Please Help.

Thanks,
Aditya

Princy
Top achievements
Rank 2
 answered on 29 Aug 2013
3 answers
123 views
Hello,


I am trying to set up a sample project binding the RadScheduler to a RadODataDataSource, but the RadScheduler is not getting any data from the oData service.

In VS2012 the RadScheduler "design time tool" is only able to Choose ODataSource and DataModelID into the Drop down boxes, from the RadODataDataSource. The remaining drop down boxes, like: DataKeyField, DataStartField, DataEndfield....etc. is not filled. Even if I hand code these values to connect to the RadODataSource, the Scheduler is not returning any data.

I have tested both Telerik.Web.UI 2013.2.717.40 and 2013.2.820.40.

To ensure that I am not totally misunderstood I also inserted a RadListBox using the same RadODataDataSource in the same .ascx contol, and this is working flawlessly both in design and run time returning "parts of the data" that the RadScheduler "were supposed to display".
(This trial module is cross domain and running in a DotNetNuke module)

1. Am I overlooking anything, or is the latest versions of RadScheduler not working with the RadODataDataSource ?

2. When using oData as feed for RadScheduler what limitations does the  readonly="True" pose for functionality ?

SwanB
Plamen
Telerik team
 answered on 29 Aug 2013
1 answer
125 views
Hi,
I am trying to create a new website using Telerik but I get the warning in subject.
See attached picture.
Why new web site is not supported?
Do I have to install additional/different components?
Dyanko
Telerik team
 answered on 29 Aug 2013
3 answers
131 views
Hi guys

I was trying to manually upload files and thought that IE uses the SL module for uploading files. I have read the same thing and when I checked I found that the IFrame is being used and I didnt add any js code to disable the silverlight. I was trying the exact manual upload sample in the demo.

Thanks
Shahi.
Shinu
Top achievements
Rank 2
 answered on 29 Aug 2013
2 answers
155 views
Hello Team,


        I have a paid dll of telerik controls so i have to ask that may i use this dll in my more than 1 projects or not and if not than what is the alternate?

Thanks & Regrads
Sunny
Sunny
Top achievements
Rank 1
 answered on 29 Aug 2013
3 answers
838 views
Hi,
We are using RadGrid with ASP.NET. My grid has templated column with textbox. When the page loads, I am populating Templated column Textbox with the amount that comes from database. Not all rows will have amount. For example, if my grid has 10 rows, only 3 rows may have amount. So, when the page load on client side I have routine that checks for amount in textbox. If it is empty, then hides the row like this:
function GridCreated(sender, eventArgs) {
  //loop thru grid rows and hide the row
  var inputElem = MasterTable.get_dataItems()[i].findElement("txtBoxAmount");
   if (inputElem.value > 0)
      MasterTable.get_dataItems()[i].set_visible(true);
   else
      MasterTable.get_dataItems()[i].set_visible(false);
}
  
  
This code is working fine and hiding row. After all work is done, when the user clicks on 'Submit' button,
Then in my routine on server side, I need to check for visibility property and then get the amounts like this:
foreach (GridDataItem row in rgdAccounts.Items)
            {
                if (row.Visible)
                {//Account is part of the selected template (row is visible).
                    string value = ((TextBox)row.FindControl("txtBoxAmount")).Text;
                     if (value == "")
                        value = "0.00";
                    if (value != "0.00")
                        //Get the amount
           }
 }
  
This check for visibility is alwasy true, even though rows are hidden. So, from this what I understand is that
if rows are hidden on clientside using client side logic, when page gets posted, that won't be taken into
considertation on server side. 
I am not using 'NEED Datasource' event for binding, because for our
architecture, it will not suite to use it. So, I am binding the grid when ever is required. 
Please let me know how to take care of this situation.
  
Thanks,
Prathiba.
Princy
Top achievements
Rank 2
 answered on 29 Aug 2013
0 answers
69 views
I have a main page with a grid, where i open a radwindow  ( with windowmanager in the main page)
when i click on a row in the grid of the radwindow this one is closed and i put focus on a textbox in the parent page grid
To do this, i use RadAjaxManager AjaxRequest event and everything is ok
  protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
       {
           if (e.Argument == "Rebind")
           {
 
               RadGridreception.Rebind();
 
               // on place le focus sur le produit sans ean qui a été selected
 
           Int32 recepid   = indexdid(Session["eanmanque"].ToString());
if (recepid != null && recepid != -1)
               {
                   TextBox tb2 = RadGridreception.MasterTableView.Items[recepid].FindControl("tbqteBL") as TextBox;
                   tb2.Focus();
                   tb2.Attributes["onfocus"] = "javascript:this.select();";
                   Button2_Click(sender, e);
                  // afficheRWeanprob();
               }
 
           }
 
 
 
           else if (e.Argument == "nv1")
           {
 
               afficheRWlistcom();
              
 
           }
 
 
 
       }
 
 
 
       //pour lancer la popup
       protected void afficheRWlistcom()
       {
           RadWindow window2 = new RadWindow();
           window2.NavigateUrl = "RWliste_com_reception.aspx";
           window2.VisibleOnPageLoad = true;
           window2.Width = 1150;
           window2.Height = 700;
           window2.Modal = true;
           window2.Behaviors = WindowBehaviors.Close;
           window2.Visible = true;
           window2.AutoSize = false;
           window2.VisibleStatusbar = true;
           window2.DestroyOnClose = true;
           window2.EnableViewState = false;
      
          RadWindowManager1.EnableViewState = false;
           RadWindowManager1.Windows.Add(window2);
 
       }
On the Radwindow , i have a button to close this radwindow and send the arg: "nv1"
after  the closing i want to open directly a second radwindow :
else if (e.Argument == "nv1")
           {
 
               afficheRWlistcom();
              
 
           }
ajaxrequest is fired but nothing happens
Could you explain me
Thank you very much
Johann
Top achievements
Rank 1
 asked on 29 Aug 2013
1 answer
119 views
Hi,

     Im using Rad panelBar in my project.
   
    and i have multiple sql table.

    i want to show Radpanelbar item from My database.

   and also want to show sub item for Rad panelbar.

  my main aim is want to bind data from databse to Radpanelbar.


Regards,

P.Mugil
Boyan Dimitrov
Telerik team
 answered on 29 Aug 2013
1 answer
136 views
Hi support

Can this control be used to view ftp content.i have a requirement to connect radfileexplorer with ftp content but i cant find any demo or help document. Any input?
Ben
Princy
Top achievements
Rank 2
 answered on 29 Aug 2013
1 answer
97 views
Hello Telerik team.

   I'm using Radasynupload Telerik asp.net Q3 2012. When my page has vertical scroll, radasynupload overflow on page. It only happen in IE. I'm using WindowXP, IIS5
Here is my RadAsyncUpload declaration :

<telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" TemporaryFolder="TempUpload" InputSize="5"  Width="30px"><br>
                                        </telerik:RadAsyncUpload>
   I use firebug to view style and I see this :
.RadUpload .ruStyled .ruFileInput
        {
            opacity: 0;
            position: absolute;
            z-index: 1;
        }

   How can I fix position RadAsyncUpload  when scroll ?

Thanks for your helps.
Hristo Valyavicharski
Telerik team
 answered on 29 Aug 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?