Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
257 views
Hi,
 I have a radgrid with static headers, column resizing enabled and scrolling enabled. Everything works fine until I resize any of column. When I resize any of columns, GridTableView get resized and a gap comes between scroll bar & gridtableview. I don't want gridtableview to get resized but others columns should be resized accordingly (which is behaviour with non-static headers).
Thanks,
Mahesh
Pavlina
Telerik team
 answered on 28 Jun 2012
1 answer
208 views
Hi Everyone,

I have my RadListView as below:

telerik:RadListView ID="rlvContentDisplay" runat="server"

        AllowPaging="True"

        AllowSorting="True"

        BorderStyle="None"

        GridLines="None"   

        DataKeyNames="PropertyID"

        ItemPlaceholderID="DashboardPlaceHolder"

        OnItemDataBound="rlvContent_ItemDataBound"

        OnNeedDataSource="rlvContent_NeedDataSource"

        ItemCommand = "rlvContent_ItemCommand"

        Width="100%">

        <LayoutTemplate>

<div id="assetIndex">

     <div class="expand"></div>

     <div id="DashboardPlaceHolder" runat="server"></div>            

     <telerik:RadDataPager ID="rdpContent" CssClass="dashboardPaginate" runat="server"PagedControlID="rlvContentDisplay" PageSize="15" BorderStyle="None" Width="700"EnableEmbeddedSkins="false" Skin="RadSkin">

               <Fields>

                 <telerik:RadDataPagerPageSizeField PageSizeText="Results per page" />

                 <telerik:RadDataPagerGoToPageField CurrentPageText="Page:"TotalPageText="of" SubmitButtonText="" TextBoxWidth="25" />

                  <telerik:RadDataPagerButtonField FieldType="NextLast" />

                  <telerik:RadDataPagerButtonField FieldType="Numeric" />  

                  <telerik:RadDataPagerButtonField FieldType="FirstPrev" />

                </Fields>

                </telerik:RadDataPager>

            </div>

           </LayoutTemplate>   

        <ItemTemplate>

            <div id="contentHold_<%# Convert.ToString(DataBinder.Eval(Container.DataItem, "id"))%>" class="asset max">

                <div>

                    <div class="summary imageContainer toggleDetail" alt="toggle"onclick="toggleDetail(this, <%# Convert.ToString(DataBinder.Eval(Container.DataItem, "id"))%>)"></div>

                    <div class="summary lineContainer">

                           <div id="galleryImageBox" class="galleryImageBox"runat="server">

                            <asp:HyperLink ID="headlineLink" runat="server"><asp:ImageID="storyThumb" runat="server" CssClass="storyThumb" /></asp:HyperLink>

                           </div>

                           <div class="galleryInfoContainer">

                                  <asp:Literal ID="litHeadlineLink" runat="server"></asp:Literal>

                            <div id="abstract_<%#Convert.ToString(DataBinder.Eval(Container.DataItem, "id"))%>" class="detail itemAbstract">

                                <asp:Literal runat="server" ID="litAbstract" />

                            </div>

                                  <div class="byline">By <asp:Literal runat="server"ID="litAuthorInfo" /></div>

                                 

                           </div>

                    </div>

                    <div class="summary sectionContainer"><asp:Literal runat="server"ID="litSectionInfo" /></div>

                    <div class="summary metaContainer">

                        <div class="datetime"><asp:Literal runat="server"ID="litDateStamp" /></div>

                        <span class="fontRed"><asp:Literal runat="server" ID="litMinsAgo"/></span>

                           <div class="user"><asp:Literal runat="server" ID="litLastUser"/></div>                       

                        <div class="status redText"><asp:Literal ID="litStatus"runat="server" Visible="true" /></div>                       

                    </div>

                </div>

            </div>

           

            <div class="asset hrule"></div>

            <div id="asset_<%# Convert.ToString(DataBinder.Eval(Container.DataItem, "id"))%>" class="detail">

                <div style="background-color:#f1f1f1; padding:10px">

                               <asp:Literal ID="litAssetsSlider" runat="server" />

                               <div id="emptyAsset" class="emptyAsset" runat="server"visible="false">

                                      <div class="largeMessage">You have no assets.</div>

                                      <telerik:RadButton ID="btnAddAlbum" runat="server"AutoPostBack="False" BackColor="transparent" ButtonType="LinkButton"UseSubmitBehavior="False"

                                             Text="Add Asset" Title="Add an asset for this Story" EnableEmbeddedSkins="false"

                            Skin="RadSkin" />

                               </div>

                </div>

                     </div>

           

        </ItemTemplate>

    </telerik:RadListView>


In my code behind:

I am binding and changin the value of litSectionInfo as below:

 protected void rlvContent_ItemDataBound(object sender, RadListViewItemEventArgs e)
        {
System.Web.UI.WebControls.Literal litSectionInfo = (System.Web.UI.WebControls.Literal)e.Item.FindControl("litSectionInfo");
                    if (litSectionInfo != null)
                    {
                        LoadStoryKeyValuePairs(thisStory.Metadata.item);
                        if (ArticleKeyValuePairs.ContainsKey("ssts"))
                        {
                            char[] delimiterChars = { '/' };
                            string[] ssts = ArticleKeyValuePairs["ssts"].ToString().Split(delimiterChars, StringSplitOptions.RemoveEmptyEntries);
                            if (ssts.Length > 0)
                            {                                
                                litSectionInfo.Text = char.ToUpper(ssts[0][0]) + ssts[0].Substring(1);
                            }
                        }                       
                        if (thisStory.Handling.publishto != null && thisStory.Handling.publishto.ssts != null)
                        {
                            string sitename = "";
                            if (siteTypes.ContainsKey(thisStory.siteid) && siteTypes[thisStory.siteid][0].ToLower() == "blog")
                            {
                                sitename = siteTypes[thisStory.siteid][1];
                            }
                            else
                            {
                                sitename = thisStory.Handling.publishto.ssts.section;
                            }
                            if (sitename != null) {  litSectionInfo.Text = char.ToUpper(sitename[0]) + sitename.Substring(1); }
                        }
}          }

My Literal control inside the listview displays info correctly.
I have a combobox which holds values section ASC and Section DESC.

How can I sort based on the literal control column data that is displayed in the radlistview?

what value do i need to pass for the expression.FieldName,(example for id, right now i am passing expression.FieldName ="Id", this works because Id is the dataitem ).

Someone please help me figure out this,

Thanks in advance for your help.


Sakshi
Top achievements
Rank 1
 answered on 28 Jun 2012
3 answers
102 views
Hi,
In my project i open a Rad Editor on click of a button in new popup window.
when i re-size the popup window  the size of rad editor also get extend and act strange.
For reference look at the screenshot attached.
The problem persist in IE 7,8,9.
But works fine in mozilla.

Thanks
Sandeep
Rumen
Telerik team
 answered on 28 Jun 2012
1 answer
184 views

Hello,

I have a problem with RadEditor Image Manager, the problem is that the preview is not working right, I don't know what is missing me to configure, as you can see in the image that I attach you, it appears a red X instead of the image, when I insert the image it seems the same, only the red X, so I'm not able to insert the image... So when I open the image in the editor, I don't have problem I can see the image.

I have been many days trying to solve this, I hope you can help me, even I hope I can explain you the problem.

Thanks in advance.

Rumen
Telerik team
 answered on 28 Jun 2012
1 answer
46 views
I was pointed to this article by a colleague while researching purchase of RadSpell for our project but before we make the decision we'd like to make sure this is feasible and with the right Package (Ajax? mvc?) for our needs.

We have a shared and distributed hosting infrastructure and our spell-check requirements require not just spell checking on the web controls in UI but also before we even load the page or pop up the grid with lists. We need to run spell check at the app tier (n-tier fashion) by running a check on some database tables. We have WCF services on the application tier that we hope can reference the appropriate radspell dll and process the spell checking before loading the grid to display.

> Is this feasible? i.e. having radspell dll and referencing API on the app tier...
> and if yes then how - which package is appropriate for our web and app tier needs and in a multi-tenant hosted environment we want to minimize the impact of putting libraries on server. Any recommendations would be greatly appreciated. 
> We also need the ajax controls on web project - can we get by with the same package or do we have to purchase different products?

TIA!
G.
Rumen
Telerik team
 answered on 28 Jun 2012
4 answers
102 views
Hi,
I have a RadGridview, while displays stock data.
Now, I have list which list which holds Customized Stock List.
At this point i want to display this Customized stock List under relevant stock data row.
I'had approached in design time and did the work,but thing is that [+] Symbol is appearing for all the rows. But i need for only those stock rows which has cutomized list.
I've approached this tutorial. But this is displaying [+] symbol for each row and not able to display relevant data, its displaying raw data. 

Once Please look into the Issue.
protected void AddDetailsTable()
        {
            GridTableView gvCylinderList = new GridTableView(gridMapModel);
            gvCylinderList.Name = "gvCylinderList";
            gvCylinderList.AutoGenerateColumns = false;
            gridMapModel.MasterTableView.DetailTables.Add(gvCylinderList);
            GridBoundColumn clName = new GridBoundColumn();
            clName.DataField = "Name";
            clName.HeaderText = "Name";
            gvCylinderList.Columns.Add(clName);
 
            gridMapModel.DetailTableDataBind+=new GridDetailTableDataBindEventHandler(gridMapModel_DetailTableDataBind);
        }

Above Snippet for programatically adding the row.
protected void gridMapModel_DetailTableDataBind(object sender, GridDetailTableDataBindEventArgs e)
       {
           GridDataItem item = (GridDataItem)e.DetailTableView.ParentItem;
 
           switch (e.DetailTableView.Name)
           {
               case "gvCylinderList":
                   int mapModelId = Convert.ToInt32(item.GetDataKeyValue("MapModelId"));
                   VesselService vs = new VesselService();
                   List<MapModelCylinder> lst =  GetMapModelCylinderList(vs.GetMapModelsCylinder(mapModelId));
                   if (lst.Count > 0)
                   {
                       e.DetailTableView.DataSource = lst;
                   }
                       break;
           }
       }

In the above I'm binding the Detail Table View. But its now working properly. Kindly assist me in fixing. 
Pavlina
Telerik team
 answered on 28 Jun 2012
6 answers
843 views
What we're trying to do is block all keyboard input into the combobox. Currently, when the user presses a key, it will attempt to index to the first person that has a name beginning with that letter despite MarkFirstMatch being set to false. When I create a new page and use this against the combobox:

$("input[name='cboSelection']").keydown(function (event) {
         event.preventDefault();
         return false;
     });
});

It works fine, as it should. The problem is that as soon as I add it to a master page, it stops working. We can't find anything that might directly conflict with it such as another keydown event, but it APPEARS to be a hierarchical problem. For instance, when I set an AlertBox to fire on the keydown event, what happens is that the combobox makes the selection THEN my event handler fires. When we don't use a master page, it happens the other way around; my event handler fires, then the combobox makes the selection

In the Silverlight version of the control, there's a property that disables keyboard input, but I have not found anything with the AJAX control that is comparable. Any insight or solutions would be appreciated. Thanks.
Jeremy
Top achievements
Rank 1
 answered on 28 Jun 2012
1 answer
120 views
Hi, I have trouble with updating excel-like radgrid on my end. After updating telerik binaries from 2010 to 2012, it gives me this error:
NullReferenceException was unhandled by user code.

on this line:
textBox.ReadOnly = true;

textBox becomes null for some reason.

// Attach the event handlers to the client side events of the TextBoxes.
        foreach (GridDataItem item in RadGrid1.MasterTableView.Items)
        {
            if (item is GridDataItem)
            {
                columnsCount = 0;
                for (int i = 2; i < RadGrid1.MasterTableView.RenderColumns.Length; i++)
                {
                    GridColumn column = RadGrid1.MasterTableView.RenderColumns[i];
                    TextBox textBox = (item[column.UniqueName].Controls[0]) as TextBox;
                    if (textBox != null)
                    {
                        textBox.Attributes.Add("ondblclick", "cellDoubleClickFunction('" + textBox.ClientID + "');");
                        textBox.Attributes.Add("onclick", "cellClick('" + textBox.ClientID + "');");
                    }
                    if (i == 2)
                    {
                        textBox.ReadOnly = true;
                        textBox.Attributes.Add("class", "readOnly");
                    }
                    columnsCount++;


The type of column is Telerik.Web.UI.GridColumn {Telerik.Web.UI.GridBoundColumn}.
However compiling same code with telerik 2012 binaries, it becomes Telerik.Web.UI.GridColumn {Telerik.Web.UI.GridNumericColumn}. I'm not sure if it's really releated with the problem, since I'm new to telerik.

You can get the file in Here from code library and same problem occurs after updating telerik binaries. Any help will be appreciated.
Pavlina
Telerik team
 answered on 28 Jun 2012
9 answers
668 views
Hi,

I'm using RadButtons and would like to turn off the rounded corners and make the buttons look more like RadDocks with corners turned off and the RadToolBar, am I missing a property somewhere or is this going to be a CSS fudge?

<telerik:RadButton ID="uxCancelButton" runat="server" CausesValidation="False"  UseSubmitBehavior="false"
 Text="Cancel" OnClientClicked="CloseAdhocPopup" AutoPostBack="False"  >
<Icon PrimaryIconCssClass="rbCancel" PrimaryIconLeft="6px"></Icon>
</telerik:RadButton>

Regards,

Jon

Bozhidar
Telerik team
 answered on 28 Jun 2012
4 answers
287 views
I am using custom advanced form to maintain appointment. The database thorows an exception if the validation fails. The validation is complex that I cannot bring it to the client side. Currently the application shows "Server error in '/<app>' Application" with the error message returned by the database. How can I catch the exception and show in RadAlert? Any help is appreciated.

Thanks, E.Z.
Plamen
Telerik team
 answered on 28 Jun 2012
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?