Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
154 views

    I always thought it was a pretty poor and lazy design decision to have the rad filter menu contain run-on gobbledygook like "GreaterThanOrEqualTo" displayed to the user. And now looking at the Metro skin, it seems Telerik has taken this to a whole new level of poor design by having all-caps stuff like "GREATERTHANOREQUALTO". Now, I'm sure there are folks out there (likely those who think Visual studio 2012 is beautiful) who believe this is great and represents the evolution of UI design. But for the rest of us who aren't as advanced in the design world, would it be possible to provide a simple way of presenting users with a normal, or better yet "classic", interface which doesn't look like the result of a developer whose keyboard is malfunctioning? Phrases have spaces in them. Its how human language has developed over the course of hundreds of thousands of years. Why change now?
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
 answered on 28 Oct 2013
2 answers
207 views
I am using ajaxloadingpanel with Metrotouch skin. It is not refreshing properly. It just show full blue when it does the ajax. I tried transperency, interval but still not doing the dot dot dot running icon in the middle which is suppose to and does rarely sometimes. See attached screenshots. When click on grouping buttons or edit
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadGrid1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1"></telerik:AjaxUpdatedControl>
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="RadGrid2">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid2"></telerik:AjaxUpdatedControl>
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Metro" Transparency="100">
        </telerik:RadAjaxLoadingPanel
, this is what happens. What may the issue? Added code as well.
Vijaianand
Top achievements
Rank 1
 answered on 28 Oct 2013
3 answers
129 views
Hi All!

I have an editable RadGrid with a SQL Server 2008 back end.  I can successfully update values except when updating one field that is UNIQUE NOT NULL. 

When I insert a new item I can populate this field with no issue.

I have checked the update script in SQL Server Management Studio, and it updated the entry correctly.

Can anyone please advise me?

Thanks,
Mark
Mark
Top achievements
Rank 1
 answered on 28 Oct 2013
1 answer
150 views
I can't figure this out.  I have a RadComboBox inside a GridTemplateColumn with Items for commands.  When a command is selected from the DropDownList it posts back.
protected void gvTransactionsCommandList_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
        {
            RadComboBox myBox = (RadComboBox)sender;
            if (myBox != null && !string.IsNullOrEmpty(myBox.SelectedValue.Trim()))
            {
                GridDataItem item = (GridDataItem)myBox.NamingContainer;
                RadGrid grid = (RadPane1.FindControl("gvTransactions") as RadGrid);
                gvTransactions.MasterTableView.Items[item.ItemIndex].Selected = true;
                (grid.MasterTableView.GetItems(GridItemType.CommandItem)[0] as GridCommandItem).FireCommandEvent(myBox.SelectedValue, string.Empty);
            }
        }

This Fires the selected command. Which is processed by this code.

protected void gvTransactions_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
        {
            switch (e.CommandName)
            {
                case "InitInsert":
                    gvTransactions.SetInsertControl("UserControls/TransactionDetails.ascx");
                    break;
                case "RowClick":
                    gvTransactions.SetUpdateControl("UserControls/TransactionDetails.ascx", e);
                    break;
                case "ViewProcess":
                    gvTransactions.SetUpdateControl("UserControls/TransactionDetails.ascx", e);
                    break;
                case "PerformInsert":
                    UserControl userControl = gvTransactions.GetInsertControl(e);
                    break;
                case "PerformUpdate":
                    DataTable dtOld = StoredProcedure.ReturnData("spPeople_AppointmentManager_Get", "@TransactionID", gvTransactions.GetKeyValue(e));
                    UserControl userUpdateControl = gvTransactions.GetUpdateControl(e);
 
                    gvTransactions.CloseUpdateControl(e);
                    break;
                case "PerformDelete":
                    StoredProcedure.RunCommand("spPeople_AppointmentManager_Delete", "@AcademicID", gvTransactions.GetKeyValue(e));
                    gvTransactions.CloseUpdateControl(e);
                    break;
            }
        }

This code is sent here to bind the UserControl appropriate for the selected command.

public static void SetUpdateControl(this RadGrid control, string userControlName, GridCommandEventArgs e)
        {
            control.MasterTableView.EditFormSettings.EditFormType = GridEditFormType.WebUserControl;
            control.MasterTableView.EditFormSettings.UserControlName = userControlName;
            control.MasterTableView.EditFormSettings.EditColumn.UniqueName = "EditFormControl";
            control.MasterTableView.Items[e.Item.ItemIndex].Edit = true;
            control.MasterTableView.Rebind();
        }

The Error Comes at this line where it states "invalid index".  The e.Item.ItemIndex is -1.
control.MasterTableView.Items[e.Item.ItemIndex].Edit = true;

The issue is when I use the "FireCommandEvent" function, it doesn't set the ItemIndex. 

How do I fix this?
HSD
Top achievements
Rank 1
 answered on 28 Oct 2013
1 answer
104 views
I've got some conditional logic to hide items (row) on item databound. When I do this, the rows are successfully hidden but the item count is not adjusted to reflect this.

If there any way to only count visible rows for the item count?
Brian
Top achievements
Rank 1
 answered on 28 Oct 2013
6 answers
252 views
<EditFormSettings EditFormType="Template">
<FormTemplate>
......
Active:
<
asp:CheckBox ID="CheckBox11" runat="server" Checked='<%# Eval("active") == DBNull.Value? false: Convert.ToBoolean(Eval("active")) %>' />

    protected void RadGrid1_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
    {
       

        if (e.CommandName == RadGrid.InitInsertCommandName)
        {

            GridEditCommandColumn editColumn = (GridEditCommandColumn)RadGrid1.MasterTableView.GetColumn("EditCommandColumn");

           editColumn.Visible = false;

           GridEditableItem editedItem = e.Item as GridEditableItem;

            e.Canceled = true;
            //Prepare an IDictionary with the predefined values 

            System.Collections.Specialized.ListDictionary newValues = new System.Collections.Specialized.ListDictionary();

            //set initial checked state for the checkbox on init insert 

            newValues["active"] = true;

            //Insert the item and rebind 

            e.Item.OwnerTableView.InsertItem(newValues);

        }

        else if (e.CommandName == RadGrid.RebindGridCommandName && e.Item.OwnerTableView.IsItemInserted)
        {

            e.Canceled = true;

        }

        else
        {

            GridEditCommandColumn editColumn = (GridEditCommandColumn)RadGrid1.MasterTableView.GetColumn("EditCommandColumn");

            if (!editColumn.Visible)

                editColumn.Visible = true;

        }


protected void ObjectDataSource1_Inserting(object sender, ObjectDataSourceMethodEventArgs e)
 
{
 
e.InputParameters["active"] = ??????
 
}

 

Somehow when I tried to save the value of checkbox after click in edit mode or insert mode. It won't take that value. Please help.

Thanks

Q
Top achievements
Rank 1
 answered on 28 Oct 2013
2 answers
142 views
Hello!
i have attached my code below.


 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
        <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
        <UpdatedControls>
       <telerik:AjaxUpdatedControl ControlID="panel1" />
      <telerik:AjaxUpdatedControl ControlID="samplediv" />
        </UpdatedControls>
        </telerik:AjaxSetting>
        </AjaxSettings>
       <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="Timer1" >
        <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="samplediv" />
        <telerik:AjaxUpdatedControl ControlID="ajaxbtn" />
        </UpdatedControls>
        </telerik:AjaxSetting>
        </AjaxSettings>
        </telerik:RadAjaxManager>
        <br />
         <asp:Panel ID="panel1" runat="server">
        <asp:Timer ID="Timer1" runat="server" Interval="2000" ontick="Timer1_Tick" Enabled="false">
        </asp:Timer></asp:Panel>
        <div id="samplediv" runat="server" style="border:solid 1px grey;height:180px;width:250px;overflow:scroll;" />  
<telerik:RadCodeBlock ID="radblk" runat="server">
 <script type="text/javascript">
function chattext()
{
    var ajaxmagr = $find("<%=RadAjaxManager1.ClientID%>");
    alert(ajaxmagr);
    ajaxmagr.ajaxRequest("chat");
}

</script>       
        </telerik:RadCodeBlock>


cs code..


protected void Timer1_Tick(object sender, EventArgs e)
    {
        string s = "chattext();";
        RadScriptManager.RegisterStartupScript(this, this.GetType(), "s", s, true);
    }
    protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
    {
        if (e.Argument == "chat")
        {
            
            samplediv.InnerHtml += " sample text <br/>";
           
        }
    }






i want to call a js funtion in timer tick.  but i got ajaxmgr as null in js alert.
whats wrong in my code? 

thanks.
priya.

Prashant Nandha
Top achievements
Rank 1
 answered on 28 Oct 2013
2 answers
66 views
Hello there,

Here is the code I'm using to redirect the user to a new page:

<telerik:RadButton ID="buttonProcessing" runat="server" ButtonType="LinkButton" Text="Modify" SingleClick="true" NavigateUrl='the web address goes here' SingleClickText="Please wait..." />

On any version of FireFox it works very well, however on IE9 the button launches the refresh of the current page.

Do you have any idea why this behavior?

I'm using Telerik.Web.UI v.4.0.30319

Thanks in advance!
Titus
Top achievements
Rank 1
 answered on 28 Oct 2013
0 answers
87 views
In Q3 2013 there are changes in the RadSplitter related to HTML5 validation. They include specific selectors, which affect the content inside the control.

This issue will be fixed in the upcoming 2013 Q3 SP1 release of RadControls for ASP.NET AJAX.

For the time being the problem can be avoided via both of the following steps: 

  1. We had to remove cellpadding and cellspacing attributes. The following styles are the correct CSS equivalent of the HTML attributes and should be added in the problematic page:
    .RadSplitter {
        border-spacing: 0;
    }
    .rsPane,
    .rspPaneHorizontal {
        padding: 0;
    }
  2. The CSS class rsHTML5ValidationFixer affects the stylization of the splitter's content. The appearance of the content will be fixed after removing this class, however the page will no longer pass HTML5 validation. This can be achieved by placing the following JavaScript code after the ScriptManager control:
    Sys.Application.add_load(function() {
        var $ = $telerik.$;
      
        $(".rsHTML5ValidationFixer").removeClass("rsHTML5ValidationFixer");
    });
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 28 Oct 2013
5 answers
510 views
I have an application that is using the 2.0 framework and we have tried to use the AsyncUpload.  It works fine on local host but not when it is moved to our test environment.  When we run it we get the error 
System.Exception: RadAsyncUpload does not have permission to write files in the TemporaryFolder. In Medium Trust scenarios, the TemporaryFolder should be a subfolder of the Application Path

I have set the tempory folder to be located in a folder called Filemanger that the original Radupload used with no issues.  I have give Authenticated  user full controll and tried giving everyone full control, which I don't want to do, and still get this error.  I have set UseApplicationPoolImpersonation to true and still the same error.


Also since this is an internal app it has full trust in IIS 
Wired_Nerve
Top achievements
Rank 2
 answered on 28 Oct 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?