Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
25 views
I have an image inside an anchor tag e.g.
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />

<telerik:RadEditor ID="RadEditor1" runat="server">

<Content>

<a href="#"><img src="clip_image004.jpg" /></a>

</Content>

</telerik:RadEditor>

In IE9 you can click on the "a" in the tag inspector and the correct property inspector will appear for the anchor tag, however for IE8 (or IE9 in compatibility mode), the property inspector displays the image properties instead of the anchor tag properties.

 

 

 

Rumen
Telerik team
 answered on 06 Sep 2011
2 answers
271 views
Hello,
Is there a way to set an exact width for template column?
Thank you.
Kiara
Top achievements
Rank 1
 answered on 06 Sep 2011
1 answer
62 views
Hi,

I have a radchart ( a bar chart ) and I disabled the legend because I do not need it but disabling it  creates extra space on the right ....see the image attached .... What do I have to do to center the plot ?


Seabus
Bartholomeo Rocca
Top achievements
Rank 1
 answered on 06 Sep 2011
1 answer
47 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
112 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
130 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
65 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
94 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
115 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
67 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?