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

I am having issue with RadAJaxPanel below is the detail for the issue:
I have a Main RadAJaxPanel. In this i have some controls with validation group. On button ClientClick  when i Check
Page_ClientValidate("groupName") works correct. But In this Main RadAjaxPanel i have subRadAjaxPanle in this i have drop down. On selection change i have to call ajaxrequest of this sub radajaxpanel. After calling this subradAjaxPanel's AjaxRequest javascript Page_ClientValidate("groupName")  give worng result.

Please suggest any other option to this or i have doing some thing wrong.

Thanks,
Hemant
Iana Tsolova
Telerik team
 answered on 06 Sep 2011
3 answers
139 views
I am writing some C# code that transfers data from files into a database. I show the files to be processed in one list box and once processed I wish to transfer it from that listbox to another. Unfortunately it doesn't show any of the moves until after all the processing is completed. Can anyone show me what I am doing wrong?

<telerik:RadAjaxPanel ID="RP1" runat="server" Width="100%">
          
        <br />
        <table class="style2">
            <tr>
                <td align="center" width="33%">
                    <asp:Label ID="lblUpload" runat="server" ForeColor="#000099" Text="Uploaded" Visible="False"></asp:Label>
                </td>
                <td align="center" width="33%">
                     </td>
                <td align="center" width="33%">
                    <asp:Label ID="lblProcessed" runat="server" ForeColor="#000099" Text="Imported" Visible="False"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="center" valign="top" width="50%">
                    <telerik:RadListBox ID="UploadListBox" runat="server" Visible="False" Width="350px"
                        AllowDelete="True" TransferToID="ProcessedListBox">
                        <ButtonSettings TransferButtons="All"></ButtonSettings>
                    </telerik:RadListBox>
                </td>
                <td align="center" valign="top" width="50%">
                    <telerik:RadButton ID="RadButton1" runat="server" onclick="RadButton1_Click" 
                        Text="Transfer to Database">
                    </telerik:RadButton>
                </td>
                <td align="center" valign="top" width="50%">
                    <telerik:RadListBox ID="ProcessedListBox" runat="server" Visible="False" Width="350px">
                        <ButtonSettings TransferButtons="All"></ButtonSettings>
                    </telerik:RadListBox>
                </td>
            </tr>
        </table>
        </telerik:RadAjaxPanel>

C#

protected void RadButton1_Click(object sender, EventArgs e)
    {
        {
  
            int tcount = UploadListBox.Items.Count;
            if (tcount < 1)
            {
                lblMessage.Text= "You must have files to process.";
                return;
            }
            int increment = 100 / tcount;
            int completed = 0;
            string pfile;
            string[] fileparts;
            for (int i = 0; i < (tcount); i++)
            {
                string filetype;
                InitMstrVariables();
                InitFGVariables();
                InitTransactionSet();
                pfile = UploadListBox.Items[0].Value.ToString();
                fileparts = pfile.Split('_');
                MstrType = Right(fileparts[1], 1).ToUpper();
                Batch = Convert.ToInt32(fileparts[0]);
                MstrYearMonth = Convert.ToInt32(Left(fileparts[3], 6));
                DateCreated = StrToDate(fileparts[3]);
                filetype = Left(fileparts[1], 3);
                if (filetype == "834")
                {
                    DeleteBatch834();
                    ProcessFile834(pfile);
                }
                else if (filetype == "820")
                {
                    DeleteBatch820();
                    ProcessFile820(pfile);
                }
                var item = new Telerik.Web.UI.RadListBoxItem();
                item.Value = pfile;
                item.Text = pfile;
                UploadListBox.Transfer(UploadListBox.Items[0], UploadListBox, ProcessedListBox);
                File.Delete(filepath + pfile);
                completed = completed + increment;
            }
        }
    }


This is really bugging me. :)
Dimitar Terziev
Telerik team
 answered on 06 Sep 2011
5 answers
150 views
Hi,

I am having problems developing using RadGrid in DotNetNuke, some of the CSS effects just do not work. e.g. I have a RadGrid that allows users to drag and drop columns to Group pane to create  data grouping, while users drag the column, some cursor should show up, right? In DotNetNuke, nothing happens,  but the drag and drop still works.

I posted this to DotNetNuke forum, but they don't seem to know much about using RadGrid, I thought I might try my luck here.

Thanks
Tsvetina
Telerik team
 answered on 06 Sep 2011
1 answer
87 views
I have a tab strip on the aspx.  Code behind on that page allows me to open items from a grid that's on one of those tabs.  As the user opens items, the first time an "Open Tests" tab gets dynamically added to the tab strip and a child tab gets added to that new tab for the item they opened.  Additional opened tests get their own child tabs.  I'm allowing up to 5 to keep resources under control.  Each of these tabs gets its own page view in the multipage and the content is set to an ascx so that each new child tab has the same controls, just with the data for the record they opened.

On that ascx is a "Close" button.  Click event on this button is this:

protected void ButtonClose_Click(object sender, EventArgs e)
{
    RadTabStrip rts = (RadTabStrip)this.Parent.FindControl("rtsDQEApplication");
    RadTab currentTab = rts.InnermostSelectedTab;
 
    if (currentTab != null)
    {
        IRadTabContainer owner = currentTab.Owner;
        owner.Tabs.Remove(currentTab);
        RadMultiPage rmp = (RadMultiPage)this.Parent.FindControl("rmpDQEApplication");
        rmp.PageViews.RemoveAt(rmp.SelectedIndex);
    }
}

Thing is, you have to click the "Close" button twice to remove the tab.  I put a breakpoint on the first line so that I could debug this code and what happens is, the user clicks the close button on an open child tab and it jumps to the code and I can F11 all the way through.  Everything goes fine, but when it returns to the form, the tab is still there.  Click the button again and it removes without going back to the breakpoint again.

If you do anything else in between, like click "Close" then change to a different tab and come back, it still wants you to click it twice.

Something's going on where the tabstrip itself isn't refreshing until the second click of the button; some sort of "timing of the postbacks" issue.  Any ideas?
Dimitar Terziev
Telerik team
 answered on 06 Sep 2011
2 answers
109 views
Hello Dear Sir or Madam

I have a RadGrid on a site called: http://portal.recris.info
I have this site's admin site, under the URL: http://admin.recris.info

In the admin site, the users are manipulating the database, inserting, editing and deleting records.
In the RadGrid i mentioned earlier on portal.recris.info, I entered 4 image columns, in which I want to show the images, stored in the admin site.
For example in the database, there is a record with the Ship_photo1 field with the value: ~/images/accidents/Mega Bay - Ship-2-3.jpg, the Ship_Photo_2: ~/images/accidents/Jellyfish.jpg

I want these images to be seen in the portal.recris.info site.

I have the following code behind:

Protected Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs)
 
           If TypeOf e.Item Is GridDataItem Then
               Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
 
               Dim strImageUrl1 As String = item.GetDataKeyValue("Ship_Photo_1").ToString()
               DirectCast(item("Ship_Photo_1").Controls(16), Image).ImageUrl = "http://admin.recris.info/" + strImageUrl1.Replace("~/", "")
 
               Dim strImageUrl As String = item.GetDataKeyValue("Ship_Photo_2").ToString()
               DirectCast(item("Ship_Photo_2").Controls(17), Image).ImageUrl = "http://admin.recris.info/" + strImageUrl.Replace("~/", "")
 
               Dim strImageUrl2 As String = item.GetDataKeyValue("Accident_Photo_1").ToString()
               DirectCast(item("Accident_Photo_1").Controls(18), Image).ImageUrl = "http://admin.recris.info/" + strImageUrl2.Replace("~/", "")
 
               Dim strImageUrl3 As String = item.GetDataKeyValue("Accident_Photo_2").ToString()
               DirectCast(item("Accident_Photo_2").Controls(19), Image).ImageUrl = "http://admin.recris.info/" + strImageUrl3.Replace("~/", "")
 
           End If
 
       End Sub


and the following code at the .aspx file:

<telerik:GridImageColumn DataImageUrlFields="Ship_Photo_1"
                        HeaderText="Ship Photo 1" ImageAlign="Left" ImageHeight=""
                        ImageWidth="150px" UniqueName="Ship_Photo_1" AllowFiltering="False">
                    </telerik:GridImageColumn>
                    <telerik:GridImageColumn DataImageUrlFields="Ship_Photo_2"
                        HeaderText="Ship Photo 2" ImageAlign="Left" ImageHeight=""
                        ImageWidth="150px" UniqueName="Ship_Photo_2" AllowFiltering="False">
                    </telerik:GridImageColumn>
 
                    <telerik:GridImageColumn DataImageUrlFields="Accident_Photo_1"
                        HeaderText="Accident Photo 1" ImageAlign="Left" ImageHeight=""
                        ImageWidth="150px" UniqueName="Accident_Photo_1" AllowFiltering="False">
                    </telerik:GridImageColumn>
 
                    <telerik:GridImageColumn DataImageUrlFields="Accident_Photo_2"
                        HeaderText="Accident Photo 2" ImageAlign="Left" ImageHeight=""
                        ImageWidth="150px" UniqueName="Accident_Photo_2" AllowFiltering="False">
                    </telerik:GridImageColumn>

but it seems not working as expected.
At the portal.recris.info site, looking at the image properties, (from the browser's properties) I have the following:
http://portal.recris.info/images/ships/1162125%20Aiolos%201.jpg
but I need to be: http://admin.recris.info/images/ships/1162125%20Aiolos%201.jpg

Can you please take a look at the code, and tell me where I did the mistake?

Yours 
Velissarios Housos
vhousos@gmail.com


Velissarios
Top achievements
Rank 1
 answered on 06 Sep 2011
1 answer
140 views
Hi,

I was wondering if it is possible to reload a RadComboBox client side?

I basiicaly need to reload the contents of the comobox during the OnClientClose event of my RadManagerManager.

I appreciate your help.

Thanks
Shinu
Top achievements
Rank 2
 answered on 06 Sep 2011
2 answers
86 views
Hi there,
is it somehow possible to navigate to a grid row by typing the letter it begins with?

Best regards.
Ferdinand
Top achievements
Rank 1
 answered on 06 Sep 2011
3 answers
115 views
Hi there,

my query is about RadDateTimePicker.

Is there way to change the TimePicker layout to look something like following

12 PM    12 AM
1   PM     1  AM
2   PM     2 AM

Please suggest ASAP.

Thank you
Marin
Telerik team
 answered on 06 Sep 2011
2 answers
131 views

Hi,

I need to export radgrid to CSV and Excel as well as print .One particular column of the grid is a  datetime column .But in the grd_DataBound event I am changing the value of that field to either Y or null for business purpose(e.Item.Cells[4].Text = "Y";).

 This is only for showing to the user and the column is bound to datetime field.

 While exporting CSV exports the Y or null but excel exports the date time value. While print also I am getting Y or null value.

Could anybody please suggest a way to show cell text i.e. ‘Y’ in Excel also …?

grd.ExportSettings.ExportOnlyData = true;
  
        grd.ExportSettings.IgnorePaging = true;
  
        grd.ExportSettings.Excel.Format = Telerik.Web.UI.GridExcelExportFormat.ExcelML;
  
        grd.ExportSettings.OpenInNewWindow = true;


Regards,
Soumya

 

Winni
Top achievements
Rank 1
 answered on 06 Sep 2011
1 answer
101 views
  Hi
            Have 2 dll's in project telerik.webcontrols and telerik.web.ui  and i upgrade telerik.web.UI to latest version . Before upgradation both dll working fine simultaneously but when i upgrade the telerik.web.ui radcombobox of type telerik,webcontrols when i want to select item from dropdownlist last item of list get selected only and also mouse over effect is not working.
  
Princy
Top achievements
Rank 2
 answered on 06 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
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?